From 25e5281f713a5872790b648c8ed83509ee6a4c9a Mon Sep 17 00:00:00 2001 From: Frank Lichtenheld Date: Fri, 24 Nov 2006 01:33:24 +0000 Subject: [PATCH] Experimental support for url and vcs-*. Not sure if the latter really belongs to p.d.o or if using it in the PTS should be enough. The former is only used for source packages as many binary packages include the url in the description, too --- templates/html/show.tmpl | 32 ++++++++++++++++++++++++++++---- 1 file changed, 28 insertions(+), 4 deletions(-) diff --git a/templates/html/show.tmpl b/templates/html/show.tmpl index b092924..1a7ca12 100644 --- a/templates/html/show.tmpl +++ b/templates/html/show.tmpl @@ -23,7 +23,6 @@ [%- END -%] [%- '' IF loop.last -%] [% END %] - [% IF src %]
@@ -42,7 +41,8 @@ [% END %] [%- PROCESS marker text=archive IF archive && archive != main_archive %] [%- PROCESS marker text=subsection IF subsection == 'non-US' and archive != 'non-US' %] -[%- PROCESS marker text=section IF section && section != main_section %] +[%- PROCESS marker text=section IF section && section != main_section %] +[%- PROCESS marker text='essential' IF page.get_newest('essential') == 'yes' %] [% IF suite == "experimental" || subsection == "debian-installer" %]
@@ -64,8 +64,10 @@ Do not install it on a normal Debian system.

[% UNLESS is_virtual %]
-

[% desc.short %]

-

[% desc.long %] +[% IF desc.short %] +

[% desc.short %]

+

[% desc.long %] +[% END %]

[% END %] @@ -234,7 +236,29 @@ View the copyright filedeveloper information for [% pkg %]. +[% ELSIF is_source %] +See the developer information for [% pkg %]. [%- END %] +[% # use url only for source packages + # otherwise we have too often two home page links + url = page.get_newest('url'); + IF is_source && url %] +

Homepage: [% url | html %]

+[% END %] +[% #FIXME: should this only be used for the PTS? + known_vcs = [ [ 'cvs', 'CVS' ], + [ 'svn', 'Subversion' ], + [ 'bzr', 'bzr' ], + [ 'darcs', 'Darcs'], + [ 'arch', 'arch' ] ]; + FOREACH vcs IN known_vcs; + vcs_id = vcs.0; vcs_name = vcs.1; + vcs_info = page.get_newest("vcs-$vcs_id"); + SET vcs_info = page.get_newest("x-vcs-$vcs_id") UNLESS vcs_info; + IF vcs_info; %] +

Repository for Debian package: [% vcs_info %] (VCS: [% vcs_name %])

+[% END; END %] +

Search for other versions of [% pkg %]

-- 2.39.2