From 76d919e03a54bb7d13289a7a308cdfb0d1eea6a7 Mon Sep 17 00:00:00 2001 From: Gerfried Fuchs Date: Fri, 20 Aug 2010 11:15:11 +0200 Subject: [PATCH] apply nomeata's screenshot patch (closes: #262617) --- static/packages.css.sed.in | 4 ++++ templates/config.tmpl | 2 ++ templates/html/show.tmpl | 3 +++ 3 files changed, 9 insertions(+) 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) %]