[% PROCESS 'config/archive_layout.tmpl' %]
+[% PROCESS 'config/mirrors.tmpl' %]
+[%- nav_arr = [ { prefix=>'Distribution:', title=>'Overview over this suite', url=>make_url('/','','source',''), name=>suite }, ];
+ nav_arr.push( { title => 'Source packages', url=>make_url('/'), name=>'Source' } ) IF is_source;
+ nav_arr.push( { prefix=>'Section:', title=>'All packages in this section', url=>make_url("$subsection/"), name=>subsection } );
+ nav_arr.push( { prefix=>'Package:', name=>pkg } ); -%]
[%- PROCESS 'html/head.tmpl'
title_tag = ( is_source ? "Details of source package $pkg in $suite"
: "Details of package $pkg in $suite" )
search_field_values = {
searchon => is_source ? 'sourcenames' : 'names',
}
- 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 },
- { prefix=>'Package:', name=>pkg } ]
+ navigation = nav_arr
-%]
<!-- show.tmpl -->
[% PROCESS 'html/menu.inc' %]
<ul>
<li><a href="[% (is_source ? src_bugs_url : bugs_url) _ pkg | uri %]">Bug Reports</a></li>
-[% IF src -%]
+[% IF src.pkg -%]
<li><a href="[% pts_url _ src.pkg | uri %]">Developer Information (PTS)</a></li>
[% ELSIF is_source %]
<li><a href="[% pts_url _ pkg | uri %]">Developer Information (PTS)</a></li>
[% END %]
</ul>
+[% vcs_link = page.get_newest("vcs-browser") %]
[% #FIXME: should this only be used for the PTS?
- known_vcs = [ [ 'cvs', 'CVS' ],
- [ 'svn', 'Subversion' ],
- [ 'bzr', 'bzr' ],
- [ 'darcs', 'Darcs'],
- [ 'arch', 'arch' ] ];
+ known_vcs = [ [ 'cvs', 'CVS', 'cvs' ],
+ [ 'svn', 'Subversion', 'subversion' ],
+ [ 'bzr', 'bzr', 'bzr' ],
+ [ 'darcs', 'Darcs', 'darcs' ],
+ [ 'arch', 'arch', 'tla' ],
+ [ 'git', 'Git', 'git-core' ],
+ [ 'hg', 'Hg', 'mercurial' ], ];
FOREACH vcs IN known_vcs;
- vcs_id = vcs.0; vcs_name = vcs.1;
+ vcs_id = vcs.0; vcs_name = vcs.1; vcs_pkg = vcs.2;
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>Debian Package Repository (<acronym title="Version Control System">VCS</acronym>: [% vcs_name %]):<br> <a href="[% vcs_info %]" class="pvcslink">[% vcs_info %]</a></p>
-[% END; END %]
+<p>Debian Package Repository (<acronym title="Version Control System">VCS</acronym>:
+<a href="[% make_url(vcs_pkg,'','source','') %]">[% vcs_name %]</a>):<br> <a href="[% vcs_info %]" class="pvcslink">[% vcs_info %]</a></p>
+[% IF vcs_link %]
+<p>Debian Package Repository (Browsable):<br> <a href="[% vcs_link %]" class="pvcslink">[% vcs_link %]</a></p>
+[% END; END; END %]
[% IF src %]
<p>Download Source Package <a href="[% src.url %]">[% src.pkg %]</a>:
<h3>Maintainer:</h3>
[%- FOREACH maintainers -%]
<a href="mailto:[% mail %]">[% name | html %]</a>
+ (<a href="[% ddpo_url _ mail %]" title="An overview over the maintainer's packages and uploads">QA Page</a>)
[%- END -%]
[%- ELSE -%]
<h3>Maintainers:</h3>
[%- FOREACH maintainers -%]
[%- '<ul>' IF loop.first -%]
- <li><a href="mailto:[% mail %]">[% name | html %]</a></li>
+ <li><a href="mailto:[% mail %]">[% name | html %]</a>
+ (<a href="[% ddpo_url _ mail %]" title="An overview over the maintainer's packages and uploads">QA Page</a>)
+ </li>
[%- '</ul>' IF loop.last -%]
[%- END -%]
[%- END %]
[% IF suite == "experimental" || subsection == "debian-installer" %]
<div class="pconstantnag">
[% IF suite == "experimental" %]
+[% changelog_link = 'changelog';
+ changelog_link = "<a href='$changelogs_url$files.changelog.path'>changelog</a>" %]
<h2>Experimental package</h2>
<p>Warning: This package is from the <strong>experimental</strong> distribution.
That means it is likely unstable or buggy, and it may even cause data loss.
-Please be sure to consult the changelog and other possible documentation before
+Please be sure to consult the [% changelog_link %] and other possible documentation before
using it.</p>
[% END %]
[% IF subsection == "debian-installer" %]
</div>
[% END %]
+<div id="ptablist">
+</div>
+
+[% IF desc %]
+<div id="pdesctab">
<div id="pdesc">
[% UNLESS is_virtual %]
[% IF desc.short %]
<div id="ptags"><p>
<a href="[% tags_url %]edit.html?pkg=[% pkg | uri %]">Tags</a>:
[%- END %]
- [% IF tag.1 %]
- <a href="/about/debtags#[% string2id(tag.0) %]">[% tag.1 %]</a>[% ', ' UNLESS loop.last %]
+ [% facet = tag.0;
+ facet_name = debtags_voc.$facet;
+ tag_id = "$tag.0::$tag.1";
+ tag_name = debtags_voc.$tag_id;
+ %]
+ [% facet_name _ ': ' UNLESS old_facet && facet == old_facet %]
+ [% IF tag_name %]
+ <a href="/about/debtags#[% string2id(tag_id) %]">[% tag_name %]</a>[% ', ' UNLESS loop.last %]
[% ELSE %]
- [% tag.0 %][% ', ' UNLESS loop.last %]
+ [% tag_id %][% ', ' UNLESS loop.last %]
[% END %]
+ [% old_facet = facet %]
[% IF loop.last -%]
</p>
</div> <!-- end ptags -->
<dd>[% desc %]</dd>
[% '</dl></div>' IF loop.last %]
[% END %]
+</div> <!-- pdesctab -->
+[% END %]
[% FOREACH binaries %]
- [% IF loop.first %]<div class="pdesc">The following binary packages are built from this source package:<dl>[% END %]
+ [% IF loop.first %]<div id="pbinaries">The following binary packages are built from this source package:<dl>[% END %]
<dt>[% IF available %]<a href="[% make_url(name,'','source','') %]">[% name %]</a>[% ELSE %][% name %][% END %]</dt>
<dd>[% desc %]</dd>
[% '</dl></div>' IF loop.last %]
[%- END %]
[% END %]
-[% FOREACH downloads %]
+[% FOREACH d IN downloads %]
[% IF loop.first -%]
<div id="pdownload">
<h2>Download [% pkg %]</h2>
[%- END %]
<tr>
-[% download_url = pkg _ '/' _ arch _ '/download'
- filelist_url = pkg _ '/' _ arch _ '/filelist' %]
-<th><a href="[% make_url(download_url) | uri %]">[% arch %]</a></th>
-[% '<td>' _ version _ '</td>' IF versions.multiple %]
-<td class="size">[% pkgsize %] kB</td><td class="size">[% instsize %] kB</td>
+[% download_url = pkg _ '/' _ d.arch _ '/download'
+ filelist_url = pkg _ '/' _ d.arch _ '/filelist' %]
+<th><a href="[% make_url(download_url) | uri %]">[% d.arch %]</a>
+[%- SET a = d.archive; IF mirrors.$a.unofficial_port %] <strong>(unofficial port)</strong>[% END %]</th>
+[% '<td>' _ d.version _ '</td>' IF versions.multiple %]
+<td class="size">[% d.pkgsize %] kB</td><td class="size">[% d.instsize %] kB</td>
<td>
[% IF contents_avail %]
[<a href="[% make_url(filelist_url) | uri %]">list of files</a>]
[%- END %]
[% END %]
+<script type="text/javascript">init_tab_list("ptablist")</script>
+