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 },
[%- END -%]
[%- '</div>' IF loop.last -%]
[% END %]
-</div>
[% IF src %]
<div id="psource">
[% 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 %]</h1>
+[%- PROCESS marker text=section IF section && section != main_section %]
+[%- PROCESS marker text='essential' IF page.get_newest('essential') == 'yes' %]</h1>
[% IF suite == "experimental" || subsection == "debian-installer" %]
<div class="pconstantnag">
[% UNLESS is_virtual %]
<div id="pdesc">
-<h2>[% desc.short %]</h2>
-<p>[% desc.long %]
+[% IF desc.short %]
+ <h2>[% desc.short %]</h2>
+ <p>[% desc.long %]
+[% END %]
</div> <!-- end pdesc -->
[% END %]
[% ' [' _ arch_str _ ']' IF arch_str %]</dt>
[%- IF !is_old_pkgs -%]
<dd>[% desc -%]
- [%- IF providers.size > 0 -%]
+ [%- IF providers.pkgs.size > 0 -%]
[% '<br>also a ' IF providers.also %]virtual package provided by
- [%- IF providers.pkgs.size < 11 -%]
- [% FOREACH provider IN providers.pkgs %]<a href="[% make_url(provider,'','suite',suite,'source','') %]">[% provider %]</a>[% ', ' UNLESS loop.last %][% END %]
- [%- ELSE -%]
- <a href="[% make_url(name,'','suite',suite,'source','') %]">[% providers.pkgs.size %] packages</a>
- [% END %]
+ [% js_id = name %]
+ <span id="js_[% js_id %]" class="p_js_elem"></span> <span id="html_[% js_id %]">[% FOREACH provider IN providers.pkgs %]<a href="[% make_url(provider,'','suite',suite,'source','') %]">[% provider %]</a>[% ', ' UNLESS loop.last %][% END %]</span>
+ [% IF providers.pkgs.size > 10 %]
+ <script type="text/javascript">init_toggle_elem("[% js_id %]","[% providers.pkgs.size %] providing packages")</script>
+ [% END %]
[% END %]
</dd>
[% END %]
[%- END %]
[% IF src -%]
See the <a href="[% pts_url _ src.pkg | uri %]">developer information for [% pkg %]</a>.
+[% ELSIF is_source %]
+See the <a href="[% pts_url _ pkg | uri %]">developer information for [% pkg %]</a>.
[%- 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 %]
+<p>Homepage: <a href="[% url | uri %]">[% url | html %]</a></p>
+[% 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; %]
+<p>Repository for Debian package: <a href="[% vcs_info %]" class="pvcslink">[% vcs_info %]</a> (<acronym title="Version Control System">VCS</acronym>: [% vcs_name %])</p>
+[% END; END %]
+
</p>
<p>Search for <a href="[% (is_source ? src_search_url : search_url) _ pkg | uri %]">other versions of [% pkg %]</a></p>
</div> <!-- end pmoreinfo -->