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