]> git.deb.at Git - deb/packages.git/blobdiff - templates/html/show.tmpl
templates/html/show.tmpl: Add experimental tabbing for content
[deb/packages.git] / templates / html / show.tmpl
index fd10281c57e2e4d5f1aa481c3e3a4497ff2b1ce3..1f12d7c0ad188558cb11594053cb5d4735f31e5f 100644 (file)
@@ -1,4 +1,5 @@
 [% 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 } );
@@ -53,7 +54,7 @@
 <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>
   <h3>Maintainer:</h3>
   [%- FOREACH maintainers -%]
        <a href="mailto:[% mail %]">[% name | html %]</a>
-       (<a href="[% ddpo_url _ mail %]" title="An overview over the maintainter's packages and uploads">QA Page</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>
-       (<a href="[% ddpo_url _ mail %]" title="An overview over the maintainter's packages and uploads">QA Page</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 -%]
@@ -143,6 +144,11 @@ Do not install it on a normal Debian system.</p>
 </div>
 [% END %]
 
+<div id="ptablist">
+</div>
+
+[% IF desc %]
+<div id="pdesctab">
 <div id="pdesc">
 [% UNLESS is_virtual %]
        [% IF desc.short %]
@@ -183,9 +189,11 @@ Do not install it on a normal Debian system.</p>
     <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 %]
@@ -239,7 +247,7 @@ Do not install it on a normal Debian system.</p>
   [%- END %]
 [% END %]
 
-[% FOREACH downloads %]
+[% FOREACH d IN downloads %]
   [% IF loop.first -%]
     <div id="pdownload">
     <h2>Download [% pkg %]</h2>
@@ -250,11 +258,12 @@ Do not install it on a normal Debian system.</p>
   [%- 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 %]&nbsp;kB</td><td class="size">[% instsize %]&nbsp;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 %]&nbsp;kB</td><td class="size">[% d.instsize %]&nbsp;kB</td>
 <td>
 [% IF contents_avail %]
   [<a href="[% make_url(filelist_url) | uri %]">list of files</a>]
@@ -293,3 +302,5 @@ Do not install it on a normal Debian system.</p>
   [%- END %]
 [% END %]
 
+<script type="text/javascript">init_tab_list("ptablist")</script>
+