]> git.deb.at Git - deb/packages.git/blob - templates/html/show.tmpl
2be807156bee8bb0144325822c5cf0f96491c02b
[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    SET url = page.get_newest('homepage') IF page.get_newest('homepage');
119    IF url %]
120 <h3>External Resources:</h3>
121 <ul>
122 <li><a href="[% url | uri %]">Homepage</a> [[% extract_host(url) %]]</li>
123 </ul>
124 [% END %]
125
126 [% FOREACH sim IN similar %]
127         [% IF loop.first %]
128         <h3>Similar packages:</h3>
129         <ul>
130         [% END %]
131         <li><a href="/[% sim %]">[% sim %]</a></li>
132         [% '</ul>' IF loop.last %]
133 [% END %]
134
135 </div> <!-- end pmoreinfo -->
136 [% END %]
137
138 [% IF suite == "experimental" || subsection == "debian-installer" %]
139 <div class="pconstantnag">
140 [% IF suite == "experimental" %]
141 [% changelog_link = 'changelog';
142    changelog_link = "<a href='$changelogs_url$files.changelog.path'>changelog</a>" %] 
143 <h2>Experimental package</h2>
144 <p>Warning: This package is from the <strong>experimental</strong> distribution.
145 That means it is likely unstable or buggy, and it may even cause data loss.
146 Please be sure to consult the [% changelog_link %] and other possible documentation before
147 using it.</p>
148 [% END %]
149 [% IF subsection == "debian-installer" %]
150 <h2>debian-installer udeb package</h2>
151 <p>Warning: This package is intended for the use in building
152 <a href="http://www.debian.org/devel/debian-installer">debian-installer</a> images only.
153 Do not install it on a normal Debian system.</p>
154 [% END %]
155 </div>
156 [% END %]
157
158 <div id="ptablist">
159 </div>
160
161 [% IF desc %]
162 <div id="pdesctab">
163 <div id="pdesc">
164 [% UNLESS is_virtual %]
165         [% IF desc.$desclang.short %]
166         <h2>[% desc.$desclang.short %]</h2>
167         <p>[% desc.$desclang.long %]
168         [% END %]
169 [% ELSE %]
170         <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>
171 [% END %]
172 </div> <!-- end pdesc -->
173
174 [% FOREACH tag IN tags %]
175   [% IF loop.first -%]
176     <div id="ptags"><p>
177     <a href="[% tags_url %]edit.html?pkg=[% pkg | uri %]">Tags</a>:
178   [%- END %]
179   [% facet = tag.0;
180      facet_name = debtags_voc.$facet;
181      tag_id = "$tag.0::$tag.1";
182      tag_name = debtags_voc.$tag_id;
183    %]
184   [% facet_name _ ': ' UNLESS old_facet && facet == old_facet %]
185   [% IF tag_name %]
186    <a href="/about/debtags#[% string2id(tag_id) %]">[% tag_name %]</a>[% ', ' UNLESS loop.last %]
187   [% ELSE %]
188   [% tag_id %][% ', ' UNLESS loop.last %]
189   [% END %]
190   [% old_facet = facet %]
191   [% IF loop.last -%]
192     </p>
193     </div> <!-- end ptags -->
194   [%- END %]
195 [% END %]
196
197 [% FOREACH providers %]
198   [% IF loop.first %]<div id="pdeps"><h2>Packages providing [% pkg %]</h2><dl>[% END %]
199     <dt>[% IF available %]<a href="[% make_url(name,'','source','') %]">[% name %]</a>[% ELSE %][% name %][% END %]</dt>
200     <dd>[% desc %]</dd>
201   [% '</dl></div>' IF loop.last %]
202 [% END %]
203 </div> <!-- pdesctab -->
204 [% END %]
205
206 [% FOREACH binaries %]
207   [% IF loop.first %]<div id="pbinaries">The following binary packages are built from this source package:<dl>[% END %]
208     <dt>[% IF available %]<a href="[% make_url(name,'','source','') %]">[% name %]</a>[% ELSE %][% name %][% END %]</dt>
209     <dd>[% desc %]</dd>    
210   [% '</dl></div>' IF loop.last %]
211 [% END %]
212
213 [% FOREACH relations %]
214   [% IF loop.first -%]
215     <div id="pdeps">
216     <h2>Other Packages Related to [% pkg %]</h2>
217
218     <table id="pdeplegend" summary="legend"><tr>
219     [% IF is_source %]
220     <td><img src="/Pics/adep.gif" alt="[adep]" width="16" height="16">= build-depends</td>
221     <td><img src="/Pics/idep.gif" alt="[idep]" width="16" height="16">= build-depends-indep</td>
222     [% ELSE %]
223     <td><img src="/Pics/dep.gif" alt="[dep]" width="16" height="16">= depends</td>
224     <td><img src="/Pics/rec.gif" alt="[rec]" width="16" height="16">= recommends</td>
225     <td><img src="/Pics/sug.gif" alt="[sug]" width="16" height="16">= suggests</td>
226     [% END %]
227     </tr></table>
228   [%- END %]
229
230   <ul class="ul[% id %]">
231   [% FOREACH terms %]
232     [% '<li>' UNLESS is_old_pkgs %]
233     [% FOREACH alternatives %]
234       [% '<dl>' IF loop.first %]
235       <dt>[% IF loop.first %]<img class="hidecss" src="/Pics/[% id %].gif" alt="[[% id %]]">[% ELSE %]or [% END %]
236         [% IF suite %]<a href="[% make_url(name,'','suite',suite,'source','') %]">[% name %]</a>[% ELSE %][% name %][% END %]
237         [% ' (' _ version _ ')' IF version %]
238         [% ' [' _ arch_str _ ']' IF arch_str %]</dt>
239       [%- IF !is_old_pkgs -%]
240         <dd>[% desc -%]
241         [%- IF providers.pkgs.size > 0 -%]
242           [% '<br>also a ' IF providers.also %]virtual package provided by
243           [% js_id = name %]
244             <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>
245         [% IF providers.pkgs.size > 10 %]
246         <script type="text/javascript">init_toggle_elem("[% js_id %]","[% providers.pkgs.size %] providing packages")</script>
247         [% END %]
248         [% END %]
249         </dd>
250       [% END %]
251       [% '</dl>' IF loop.last %]
252     [% END %]
253   [% END %]
254   </ul>
255
256   [% IF loop.last -%]
257     </div> <!-- end pdeps -->
258   [%- END %]
259 [% END %]
260
261 [% FOREACH d IN downloads %]
262   [% IF loop.first -%]
263     <div id="pdownload">
264     <h2>Download [% pkg %]</h2>
265     
266     <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.">
267     <caption class="hidecss">Download for all available architectures</caption>
268     <tr><th>Architecture</th>[% '<th>Version</th>' IF versions.multiple %]<th>Package Size</th><th>Installed Size</th><th>Files</th></tr>
269   [%- END %]
270
271 <tr>
272 [% download_url = pkg _ '/' _ d.arch _ '/download'
273    filelist_url = pkg _ '/' _ d.arch _ '/filelist' %]
274 <th><a href="[% make_url(download_url) | uri %]">[% d.arch %]</a>
275 [%- SET a = d.archive; IF mirrors.$a.unofficial_port  %] <strong>(unofficial port)</strong>[% END %]</th>
276 [% vnorm = d.version.replace( '\+b\d+$', '' ); vlatest = version.replace( '\+b\d+$', '' );
277    vup = vnorm.replace( '-[^-]+$', '' ); vuplatest = vlatest.replace( '-[^-]+$', '' );
278    IF vnorm == vlatest;
279         version_class = 'vcurrent';
280    ELSIF vup == vuplatest;
281         version_class = 'volder';
282    ELSE;
283         version_class = 'vold';
284    END %]
285 [% "<td class='$version_class'>$d.version</td>" IF versions.multiple %]
286 <td class="size">[% d.pkgsize %]&nbsp;kB</td><td class="size">[% d.instsize %]&nbsp;kB</td>
287 <td>
288 [% IF d.contents_avail %]
289   [<a href="[% make_url(filelist_url) | uri %]">list of files</a>]
290 [% ELSE %]
291   no current information
292 [% END %]
293 </td>
294 </tr>
295
296   [% IF loop.last -%]
297     </table>
298
299     </div> <!-- end pdownload -->
300   [%- END %]
301 [% END %]
302
303 [% FOREACH srcfiles %]
304   [% IF loop.first -%]
305     <div id="pdownload">
306     <h2>Download [% pkg %]</h2>
307     
308     <table summary="Download information for the files of this source package">
309     <tr><th>File</th><th>Size (in kB)</th><th>md5sum</th></tr>
310   [%- END %]
311
312 <tr>
313 <td><a href="[% server _ path %]">[% filename %]</a></td>
314 <td>[% size %]</td>
315 <td class="md5sum">[% md5sum %]</td>
316 </tr>
317
318   [% IF loop.last -%]
319     </table>
320
321 [% FOREACH vcs IN known_vcs;
322         vcs_id = vcs.0; vcs_name = vcs.1; vcs_pkg = vcs.2;
323         vcs_info = page.get_newest("vcs-$vcs_id");
324         SET vcs_info = page.get_newest("x-vcs-$vcs_id") UNLESS vcs_info;
325         IF vcs_info; %]
326 <dl>
327 <dt>Debian Package Source Repository (<acronym title="Version Control System">VCS</acronym>: <a href="[% make_url(vcs_pkg,'','source','') %]">[% vcs_name %]</a>)</dt>
328 <dd><a href="[% vcs_info %]" class="pvcslink">[% vcs_info %]</a></dd>
329 [% IF vcs_link %]
330 <dt>Debian Package Source Repository (Browsable)</dt><dd><a href="[% vcs_link %]" class="pvcslink">[% vcs_link %]</a></dd>
331 [% END %]
332 </dl>
333 [% END; END %]
334
335     </div> <!-- end pdownload -->
336   [%- END %]
337 [% END %]
338
339 [%# <script type="text/javascript">init_tab_list("ptablist")</script> %]
340
341 [%- PROCESS 'html/foot.tmpl' -%]