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