X-Git-Url: https://git.deb.at/?a=blobdiff_plain;f=templates%2Fhtml%2Fshow.tmpl;h=1a7ca12af399148d4952d9f4c9dbef494448812e;hb=cfb85910aaeef59209d75dc3bae9fe514f591828;hp=4a51464f68fefb8496fe3eb7a181de7f33c22c54;hpb=2ec757bb58907b15c43548be5601d4f2b8c7caac;p=deb%2Fpackages.git diff --git a/templates/html/show.tmpl b/templates/html/show.tmpl index 4a51464..1a7ca12 100644 --- a/templates/html/show.tmpl +++ b/templates/html/show.tmpl @@ -6,12 +6,7 @@ keywords = "$suite, $archive, $section, $subsection, $version" print_search_field = 'packages' search_field_values = { - keywords => '', searchon => is_source ? 'sourcenames' : 'names', - arch => 'any', - suite => 'all', - section => 'all', - exact => 0 } navigation = [ { prefix=>'Distribution:', title=>'Overview over this suite', url=>make_url('/'), name=>suite }, { prefix=>'Section:', title=>'All packages in this section', url=>make_url("$subsection/"), name=>subsection }, @@ -28,7 +23,6 @@ [%- END -%] [%- '' IF loop.last -%] [% END %] - [% IF src %]
@@ -47,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" %]
@@ -69,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 %] @@ -128,13 +125,13 @@ Do not install it on a normal Debian system.

[% ' [' _ arch_str _ ']' IF arch_str %] [%- IF !is_old_pkgs -%]
[% desc -%] - [%- IF providers.size > 0 -%] + [%- IF providers.pkgs.size > 0 -%] [% '
also a ' IF providers.also %]virtual package provided by - [%- IF providers.pkgs.size < 11 -%] - [% FOREACH provider IN providers.pkgs %][% provider %][% ', ' UNLESS loop.last %][% END %] - [%- ELSE -%] - [% providers.pkgs.size %] packages - [% END %] + [% js_id = name %] + [% FOREACH provider IN providers.pkgs %][% provider %][% ', ' UNLESS loop.last %][% END %] + [% IF providers.pkgs.size > 10 %] + + [% END %] [% END %]
[% END %] @@ -239,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 %]