]> git.deb.at Git - deb/packages.git/commitdiff
Use versioned screenshots on binary package pages
authorPaul Wise <pabs@debian.org>
Thu, 14 Oct 2010 15:17:14 +0000 (23:17 +0800)
committerGerfried Fuchs <rhonda@debian.at>
Tue, 9 Nov 2010 19:33:18 +0000 (20:33 +0100)
templates/config.tmpl
templates/html/show.tmpl

index aa1dee5f3fcf536de220f42bcd5b603c4e0f2b08..4d24e05b74a8bd566bdc84ca3aadbd15e18c3aa1 100644 (file)
@@ -24,7 +24,7 @@
    cn_help_url = project_homepage _ 'intro/cn'
    patch_tracking_url = 'http://patch-tracker.debian.org/package'
    screenshots_url = 'http://screenshots.debian.net/package/'
-   screenshots_thumb_url = 'http://screenshots.debian.net/thumbnail/'
+   screenshots_thumb_url = 'http://screenshots.debian.net/thumbnail-with-version/'
    logo = {
        url => project_homepage,
         src => '/Pics/openlogo-nd-25.png',
index e86af33a9c5342981f4de2886e785a3c0a9af784..ebbba777fb86e0d39bd39ab8bfd7a5f471d2447a 100644 (file)
@@ -64,7 +64,7 @@
 <div id="pmoreinfo">
 <h2>[% g('Links for %s', pkg) %]</h2>
 [% IF screenshots_url && screenshots_thumb_url && !is_source %]
-<a id="screenshot" href="[% screenshots_url _ pkg %]"><img src="[% screenshots_thumb_url _ pkg %]" alt="Screenshot" border="0"/></a>
+<a id="screenshot" href="[% screenshots_url _ pkg %]"><img src="[% "$screenshots_thumb_url/$pkg/$version" %]" alt="Screenshot" border="0"/></a>
 [% END %]
 <h3>[% g('%s Resources:', organisation) %]</h3>
 <ul>