From: Frank Lichtenheld Date: Tue, 11 Sep 2007 12:27:45 +0000 (+0200) Subject: Packages::Page: Support homepage field X-Git-Url: https://git.deb.at/w?a=commitdiff_plain;h=058db44300c769533fcac662d9b9b88b588ce988;p=deb%2Fpackages.git Packages::Page: Support homepage field Superseeds the old, stupid url field. Also display it in html/show.tmpl --- diff --git a/lib/Packages/Page.pm b/lib/Packages/Page.pm index 96ee156..946a5a4 100644 --- a/lib/Packages/Page.pm +++ b/lib/Packages/Page.pm @@ -95,7 +95,7 @@ sub is_virtual { } our @TAKE_NEWEST = qw( description description-md5 essential priority section subsection tag - archive source source-version url ); + archive source source-version url homepage ); our @STORE_ALL = qw( version source source-version installed-size size filename md5sum sha1 sha256 task origin bugs suite archive section ); diff --git a/templates/html/show.tmpl b/templates/html/show.tmpl index 7107d53..aa3435f 100644 --- a/templates/html/show.tmpl +++ b/templates/html/show.tmpl @@ -117,6 +117,7 @@ [%- END %] [% url = page.get_newest('url'); + url = page.get_newest('homepage'); IF url %]

External Resources:

Homepage: [% url | html %]