]> git.deb.at Git - deb/packages.git/commitdiff
apply nomeata's screenshot patch (closes: #262617)
authorGerfried Fuchs <rhonda@debian.at>
Fri, 20 Aug 2010 09:15:11 +0000 (11:15 +0200)
committerGerfried Fuchs <rhonda@debian.at>
Fri, 20 Aug 2010 09:15:11 +0000 (11:15 +0200)
static/packages.css.sed.in
templates/config.tmpl
templates/html/show.tmpl

index ca44350e58f79e78809cf6b1dd470f5d65cb7b8c..18a8b3ba87d101b8582086692738dc4676673766 100644 (file)
@@ -40,6 +40,10 @@ h1 {
        margin-left: 1em;
        margin-right: 1em;
 }
+#screenshot {
+        display: block;
+        text-align: center;
+}
 #pmoreinfo { 
              font-size: smaller;
              margin-left: 1em;
index 85c52f790939478b2a4304fe598865b407938114..aa1dee5f3fcf536de220f42bcd5b603c4e0f2b08 100644 (file)
@@ -23,6 +23,8 @@
    policy_url = 'http://www.debian.org/doc/debian-policy/'
    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/'
    logo = {
        url => project_homepage,
         src => '/Pics/openlogo-nd-25.png',
index e680b1cc8c800546f612400d7c8e478cefbb2d15..c03f50e3f92472e2ed555373a3cb811deeef3729 100644 (file)
@@ -63,6 +63,9 @@
 [% UNLESS is_virtual %]
 <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>
+[% END %]
 <h3>[% g('%s Resources:', organisation) %]</h3>
 <ul>
 <li><a href="[% (is_source ? src_bugs_url : bugs_url) _ pkg %]">[% g('Bug Reports') %]</a></li>