From: djpig Date: Thu, 29 Nov 2007 17:23:32 +0000 (+0100) Subject: html/show.tmpl: Fix download URLs if arch was already specified X-Git-Url: https://git.deb.at/w?a=commitdiff_plain;h=caf2204c5d9b7aa274a36720baec3e2384515e04;p=deb%2Fpackages.git html/show.tmpl: Fix download URLs if arch was already specified Reported by James Vega on IRC. --- diff --git a/templates/html/show.tmpl b/templates/html/show.tmpl index b6179f9..275ccc3 100644 --- a/templates/html/show.tmpl +++ b/templates/html/show.tmpl @@ -280,9 +280,9 @@ [%- END %] -[% download_url = pkg _ '/' _ d.arch _ '/download' - filelist_url = pkg _ '/' _ d.arch _ '/filelist' %] -[% d.arch %] +[% download_url = pkg _ '/download' + filelist_url = pkg _ '/filelist' %] +[% d.arch %] [%- SET a = d.archive; IF mirrors.$a.unofficial_port %] [% g('(unofficial port)') %][% END %] [% vnorm = d.version.replace( '\+b\d+$', '' ); vlatest = version.replace( '\+b\d+$', '' ); vup = vnorm.replace( '-[^-]+$', '' ); vuplatest = vlatest.replace( '-[^-]+$', '' ); @@ -297,7 +297,7 @@ [% g('%s kB', num.format_number(d.pkgsize,1)) %][% g('%s kB', d.instsize) %] [% IF d.contents_avail %] - [[% g('list of files') %]] + [[% g('list of files') %]] [% ELSE %] [% g('no current information') %] [% END %]