From 058db44300c769533fcac662d9b9b88b588ce988 Mon Sep 17 00:00:00 2001 From: Frank Lichtenheld Date: Tue, 11 Sep 2007 14:27:45 +0200 Subject: [PATCH] Packages::Page: Support homepage field Superseeds the old, stupid url field. Also display it in html/show.tmpl --- lib/Packages/Page.pm | 2 +- templates/html/show.tmpl | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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 %]

-- 2.39.2