From: Gerfried Fuchs Date: Fri, 20 Aug 2010 09:15:11 +0000 (+0200) Subject: apply nomeata's screenshot patch (closes: #262617) X-Git-Url: https://git.deb.at/w?p=deb%2Fpackages.git;a=commitdiff_plain;h=76d919e03a54bb7d13289a7a308cdfb0d1eea6a7 apply nomeata's screenshot patch (closes: #262617) --- diff --git a/static/packages.css.sed.in b/static/packages.css.sed.in index ca44350..18a8b3b 100644 --- a/static/packages.css.sed.in +++ b/static/packages.css.sed.in @@ -40,6 +40,10 @@ h1 { margin-left: 1em; margin-right: 1em; } +#screenshot { + display: block; + text-align: center; +} #pmoreinfo { font-size: smaller; margin-left: 1em; diff --git a/templates/config.tmpl b/templates/config.tmpl index 85c52f7..aa1dee5 100644 --- a/templates/config.tmpl +++ b/templates/config.tmpl @@ -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', diff --git a/templates/html/show.tmpl b/templates/html/show.tmpl index e680b1c..c03f50e 100644 --- a/templates/html/show.tmpl +++ b/templates/html/show.tmpl @@ -63,6 +63,9 @@ [% UNLESS is_virtual %]

[% g('Links for %s', pkg) %]

+[% IF screenshots_url && screenshots_thumb_url && !is_source %] +Screenshot +[% END %]

[% g('%s Resources:', organisation) %]