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