]> git.deb.at Git - deb/packages.git/blob - templates/html/show.tmpl
html/show.tmpl: Always use <ul> for Maintainers
[deb/packages.git] / templates / html / show.tmpl
1 [% PROCESS 'config/archive_layout.tmpl' %]
2 [% PROCESS 'config/mirrors.tmpl' %]
3 [%- nav_arr = [ { prefix=>'Distribution:', title=>'Overview over this suite', url=>make_url('/','','source',''), name=>suite }, ];
4     nav_arr.push( { title => 'Source packages', url=>make_url('/'), name=>'Source' } ) IF is_source;
5     nav_arr.push( { prefix=>'Section:', title=>'All packages in this section', url=>make_url("$subsection/"), name=>subsection } );
6     nav_arr.push( { prefix=>'Package:', name=>pkg } ); -%]
7 [% desclang = 'en';
8    SET desclang = lang IF desc.$lang.long %]
9 [%- PROCESS 'html/head.tmpl'
10    title_tag = ( is_source ? "Details of source package $pkg in $suite"
11                            : "Details of package $pkg in $suite" )
12    description = desc.$desclang.short
13    keywords = "$suite, $archive, $section, $subsection, $version"
14    print_search_field = 'packages'
15    search_field_values = { 
16                           searchon => is_source ? 'sourcenames' : 'names',
17                          }
18   navigation = nav_arr
19 -%]
20 <!-- show.tmpl -->
21 [% PROCESS 'html/menu.inc' %]
22 [% FOREACH s IN suites %]
23    [% '<div id="pothers">' IF loop.first %]
24    [%- IF s == suite -%]
25      [% PROCESS menuitem name=s url='' %]
26    [%- ELSE -%]
27      [% PROCESS menuitem name=s url=make_url(pkg,'','suite',s) %]
28    [%- END -%]
29    [%- '</div>' IF loop.last -%]
30 [% END %]
31
32 [% IF src %]
33 <div id="psource">
34 [% PROCESS menuitem prefix='Source:' title='Source package building this package' url=make_url(src.pkg,'','source','source') name=src.pkg %]
35 </div>
36 [% END %]
37
38 [%- PROCESS 'html/messages.tmpl' -%]
39
40 [% IF is_virtual %]
41 <h1>Virtual Package: [% pkg %]
42 [% ELSIF is_source %]
43 <h1>Source Package: [% pkg %] ([% version %])
44 [% ELSE %]
45 <h1>Package: [% pkg %] ([% versions.short %])
46 [% END %]
47 [%- PROCESS marker text=archive IF archive && archive != main_archive %]
48 [%- PROCESS marker text=section IF section && section != main_section %]
49 [%- PROCESS marker text='essential' IF page.get_newest('essential') == 'yes' %]</h1>
50
51 [% UNLESS is_virtual %]
52 <div id="pmoreinfo">
53 <h2>Links for [% pkg %]</h2>
54 <h3>Debian Resources:</h3>
55 <ul>
56 <li><a href="[% (is_source ? src_bugs_url : bugs_url) _ pkg | uri %]">Bug Reports</a></li>
57
58 [% IF src.pkg -%]
59 <li><a href="[% pts_url _ src.pkg | uri %]">Developer Information (PTS)</a></li>
60 [% ELSIF is_source %]
61 <li><a href="[% pts_url _ pkg | uri %]">Developer Information (PTS)</a></li>
62 [%- END %]
63
64 [% IF files && (!archive or archive == main_archive or archive == 'security') %]
65 <li><a href="[% changelogs_url _ files.changelog.path %]">Debian Changelog</a></li>
66 <li><a href="[% changelogs_url _ files.copyright.path %]">Copyright File</a></li>
67 [% END %]
68 </ul>
69
70 [% vcs_link = page.get_newest("vcs-browser") %]
71 [% #FIXME: should this only be used for the PTS?
72    known_vcs = [ [ 'cvs', 'CVS', 'cvs' ],
73                 [ 'svn', 'Subversion', 'subversion' ],
74                 [ 'bzr', 'bzr', 'bzr' ],
75                 [ 'darcs', 'Darcs', 'darcs' ],
76                 [ 'arch', 'arch', 'tla' ],
77                 [ 'git', 'Git', 'git-core' ],
78                 [ 'hg', 'Hg', 'mercurial' ], ];
79    FOREACH vcs IN known_vcs;
80         vcs_id = vcs.0; vcs_name = vcs.1; vcs_pkg = vcs.2;
81         vcs_info = page.get_newest("vcs-$vcs_id");
82         SET vcs_info = page.get_newest("x-vcs-$vcs_id") UNLESS vcs_info;
83         IF vcs_info; %]
84 <p>Debian Package Repository (<acronym title="Version Control System">VCS</acronym>:
85 <a href="[% make_url(vcs_pkg,'','source','') %]">[% vcs_name %]</a>):<br> <a href="[% vcs_info %]" class="pvcslink">[% vcs_info %]</a></p>
86 [% IF vcs_link %]
87 <p>Debian Package Repository (Browsable):<br> <a href="[% vcs_link %]" class="pvcslink">[% vcs_link %]</a></p>
88 [% END; END; END %]
89
90 [% IF src %]
91   <p>Download Source Package <a href="[% src.url %]">[% src.pkg %]</a>:
92   [% FOREACH src.downloads %]
93     [% '<ul>' IF loop.first %]
94     <li><a href="[% server _ path %]">[[% name %]]</a></li>
95     [% '</ul>' IF loop.last %]
96   [% END %]
97   [% IF src.downloads.size == 0 %]
98   Not found
99   [% END %]
100 [% END %]
101
102 [% IF maintainers.size == 1 -%]
103   <h3>Maintainer:</h3>
104 [%- ELSE -%]
105   <h3>Maintainers:</h3>
106 [%- END %]
107 [%- FOREACH maintainers -%]
108   [%- '<ul>' IF loop.first -%]
109         <li><a href="mailto:[% mail %]">[% name | html %]</a>
110         (<a href="[% ddpo_url _ mail %]" title="An overview over the maintainer's packages and uploads">QA Page</a>)
111         </li>
112   [%- '</ul>' IF loop.last -%]
113 [%- END -%]
114
115 [% url = page.get_newest('url');
116    url = page.get_newest('homepage');
117    IF url %]
118 <h3>External Resources:</h3>
119 <p>Homepage: <a href="[% url | uri %]">[% url | html %]</a></p>
120 [% END %]
121
122 [% FOREACH sim IN similar %]
123         [% IF loop.first %]
124         <h3>Similar packages:</h3>
125         <ul>
126         [% END %]
127         <li><a href="/[% sim %]">[% sim %]</a></li>
128         [% '</ul>' IF loop.last %]
129 [% END %]
130
131 </div> <!-- end pmoreinfo -->
132 [% END %]
133
134 [% IF suite == "experimental" || subsection == "debian-installer" %]
135 <div class="pconstantnag">
136 [% IF suite == "experimental" %]
137 [% changelog_link = 'changelog';
138    changelog_link = "<a href='$changelogs_url$files.changelog.path'>changelog</a>" %] 
139 <h2>Experimental package</h2>
140 <p>Warning: This package is from the <strong>experimental</strong> distribution.
141 That means it is likely unstable or buggy, and it may even cause data loss.
142 Please be sure to consult the [% changelog_link %] and other possible documentation before
143 using it.</p>
144 [% END %]
145 [% IF subsection == "debian-installer" %]
146 <h2>debian-installer udeb package</h2>
147 <p>Warning: This package is intended for the use in building
148 <a href="http://www.debian.org/devel/debian-installer">debian-installer</a> images only.
149 Do not install it on a normal Debian system.</p>
150 [% END %]
151 </div>
152 [% END %]
153
154 <div id="ptablist">
155 </div>
156
157 [% IF desc %]
158 <div id="pdesctab">
159 <div id="pdesc">
160 [% UNLESS is_virtual %]
161         [% IF desc.$desclang.short %]
162         <h2>[% desc.$desclang.short %]</h2>
163         <p>[% desc.$desclang.long %]
164         [% END %]
165 [% ELSE %]
166         <p>This is a <em>virtual package</em>. See the <a href="[% policy_url %]">Debian policy</a> for a <a href="[% policy_url %]ch-binary.html#s-virtual_pkg">definition of virtual packages</a>.</p>
167 [% END %]
168 </div> <!-- end pdesc -->
169
170 [% FOREACH tag IN tags %]
171   [% IF loop.first -%]
172     <div id="ptags"><p>
173     <a href="[% tags_url %]edit.html?pkg=[% pkg | uri %]">Tags</a>:
174   [%- END %]
175   [% facet = tag.0;
176      facet_name = debtags_voc.$facet;
177      tag_id = "$tag.0::$tag.1";
178      tag_name = debtags_voc.$tag_id;
179    %]
180   [% facet_name _ ': ' UNLESS old_facet && facet == old_facet %]
181   [% IF tag_name %]
182    <a href="/about/debtags#[% string2id(tag_id) %]">[% tag_name %]</a>[% ', ' UNLESS loop.last %]
183   [% ELSE %]
184   [% tag_id %][% ', ' UNLESS loop.last %]
185   [% END %]
186   [% old_facet = facet %]
187   [% IF loop.last -%]
188     </p>
189     </div> <!-- end ptags -->
190   [%- END %]
191 [% END %]
192
193 [% FOREACH providers %]
194   [% IF loop.first %]<div id="pdeps"><h2>Packages providing [% pkg %]</h2><dl>[% END %]
195     <dt>[% IF available %]<a href="[% make_url(name,'','source','') %]">[% name %]</a>[% ELSE %][% name %][% END %]</dt>
196     <dd>[% desc %]</dd>
197   [% '</dl></div>' IF loop.last %]
198 [% END %]
199 </div> <!-- pdesctab -->
200 [% END %]
201
202 [% FOREACH binaries %]
203   [% IF loop.first %]<div id="pbinaries">The following binary packages are built from this source package:<dl>[% END %]
204     <dt>[% IF available %]<a href="[% make_url(name,'','source','') %]">[% name %]</a>[% ELSE %][% name %][% END %]</dt>
205     <dd>[% desc %]</dd>    
206   [% '</dl></div>' IF loop.last %]
207 [% END %]
208
209 [% FOREACH relations %]
210   [% IF loop.first -%]
211     <div id="pdeps">
212     <h2>Other Packages Related to [% pkg %]</h2>
213
214     <table id="pdeplegend" summary="legend"><tr>
215     [% IF is_source %]
216     <td><img src="/Pics/adep.gif" alt="[adep]" width="16" height="16">= build-depends</td>
217     <td><img src="/Pics/idep.gif" alt="[idep]" width="16" height="16">= build-depends-indep</td>
218     [% ELSE %]
219     <td><img src="/Pics/dep.gif" alt="[dep]" width="16" height="16">= depends</td>
220     <td><img src="/Pics/rec.gif" alt="[rec]" width="16" height="16">= recommends</td>
221     <td><img src="/Pics/sug.gif" alt="[sug]" width="16" height="16">= suggests</td>
222     [% END %]
223     </tr></table>
224   [%- END %]
225
226   <ul class="ul[% id %]">
227   [% FOREACH terms %]
228     [% '<li>' UNLESS is_old_pkgs %]
229     [% FOREACH alternatives %]
230       [% '<dl>' IF loop.first %]
231       <dt>[% IF loop.first %]<img class="hidecss" src="/Pics/[% id %].gif" alt="[[% id %]]">[% ELSE %]or [% END %]
232         [% IF suite %]<a href="[% make_url(name,'','suite',suite,'source','') %]">[% name %]</a>[% ELSE %][% name %][% END %]
233         [% ' (' _ version _ ')' IF version %]
234         [% ' [' _ arch_str _ ']' IF arch_str %]</dt>
235       [%- IF !is_old_pkgs -%]
236         <dd>[% desc -%]
237         [%- IF providers.pkgs.size > 0 -%]
238           [% '<br>also a ' IF providers.also %]virtual package provided by
239           [% js_id = name %]
240             <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>
241         [% IF providers.pkgs.size > 10 %]
242         <script type="text/javascript">init_toggle_elem("[% js_id %]","[% providers.pkgs.size %] providing packages")</script>
243         [% END %]
244         [% END %]
245         </dd>
246       [% END %]
247       [% '</dl>' IF loop.last %]
248     [% END %]
249   [% END %]
250   </ul>
251
252   [% IF loop.last -%]
253     </div> <!-- end pdeps -->
254   [%- END %]
255 [% END %]
256
257 [% FOREACH d IN downloads %]
258   [% IF loop.first -%]
259     <div id="pdownload">
260     <h2>Download [% pkg %]</h2>
261     
262     <table summary="The download table links to the download of the package and a file overview. In addition it gives information about the package size and the installed size.">
263     <caption class="hidecss">Download for all available architectures</caption>
264     <tr><th>Architecture</th>[% '<th>Version</th>' IF versions.multiple %]<th>Package Size</th><th>Installed Size</th><th>Files</th></tr>
265   [%- END %]
266
267 <tr>
268 [% download_url = pkg _ '/' _ d.arch _ '/download'
269    filelist_url = pkg _ '/' _ d.arch _ '/filelist' %]
270 <th><a href="[% make_url(download_url) | uri %]">[% d.arch %]</a>
271 [%- SET a = d.archive; IF mirrors.$a.unofficial_port  %] <strong>(unofficial port)</strong>[% END %]</th>
272 [% vnorm = d.version.replace( '\+b\d+$', '' ); vlatest = version.replace( '\+b\d+$', '' );
273    vup = vnorm.replace( '-[^-]+$', '' ); vuplatest = vlatest.replace( '-[^-]+$', '' );
274    IF vnorm == vlatest;
275         version_class = 'vcurrent';
276    ELSIF vup == vuplatest;
277         version_class = 'volder';
278    ELSE;
279         version_class = 'vold';
280    END %]
281 [% "<td class='$version_class'>$d.version</td>" IF versions.multiple %]
282 <td class="size">[% d.pkgsize %]&nbsp;kB</td><td class="size">[% d.instsize %]&nbsp;kB</td>
283 <td>
284 [% IF d.contents_avail %]
285   [<a href="[% make_url(filelist_url) | uri %]">list of files</a>]
286 [% ELSE %]
287   no current information
288 [% END %]
289 </td>
290 </tr>
291
292   [% IF loop.last -%]
293     </table>
294
295     </div> <!-- end pdownload -->
296   [%- END %]
297 [% END %]
298
299 [% FOREACH srcfiles %]
300   [% IF loop.first -%]
301     <div id="pdownload">
302     <h2>Download [% pkg %]</h2>
303     
304     <table summary="Download information for the files of this source package">
305     <tr><th>File</th><th>Size (in kB)</th><th>md5sum</th></tr>
306   [%- END %]
307
308 <tr>
309 <td><a href="[% server _ path %]">[% filename %]</a></td>
310 <td>[% size %]</td>
311 <td class="md5sum">[% md5sum %]</td>
312 </tr>
313
314   [% IF loop.last -%]
315     </table>
316
317     </div> <!-- end pdownload -->
318   [%- END %]
319 [% END %]
320
321 <script type="text/javascript">init_tab_list("ptablist")</script>
322
323 [%- PROCESS 'html/foot.tmpl' -%]