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