From caf2204c5d9b7aa274a36720baec3e2384515e04 Mon Sep 17 00:00:00 2001 From: djpig Date: Thu, 29 Nov 2007 18:23:32 +0100 Subject: [PATCH] html/show.tmpl: Fix download URLs if arch was already specified Reported by James Vega on IRC. --- templates/html/show.tmpl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 %] -- 2.39.2