]> git.deb.at Git - deb/packages.git/blob - templates/html/show.tmpl
show.tmpl: In the experimental nag, link to the changelog
[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', 'cvs' ],
68                 [ 'svn', 'Subversion', 'subversion' ],
69                 [ 'bzr', 'bzr', 'bzr' ],
70                 [ 'darcs', 'Darcs', 'darcs' ],
71                 [ 'arch', 'arch', 'tla' ],
72                 [ 'git', 'Git', 'git-core' ], ];
73    FOREACH vcs IN known_vcs;
74         vcs_id = vcs.0; vcs_name = vcs.1; vcs_pkg = vcs.2;
75         vcs_info = page.get_newest("vcs-$vcs_id");
76         SET vcs_info = page.get_newest("x-vcs-$vcs_id") UNLESS vcs_info;
77         IF vcs_info; %]
78 <p>Debian Package Repository (<acronym title="Version Control System">VCS</acronym>:
79 <a href="[% make_url(vcs_pkg,'','source','') %]">[% vcs_name %]</a>):<br> <a href="[% vcs_info %]" class="pvcslink">[% vcs_info %]</a></p>
80 [% END; END %]
81
82 [% IF src %]
83   <p>Download Source Package <a href="[% src.url %]">[% src.pkg %]</a>:
84   [% FOREACH src.downloads %]
85     [% '<ul>' IF loop.first %]
86     <li><a href="[% server _ path %]">[[% name %]]</a></li>
87     [% '</ul>' IF loop.last %]
88   [% END %]
89   [% IF src.downloads.size == 0 %]
90   Not found
91   [% END %]
92 [% END %]
93
94 [% IF maintainers.size == 1 -%]
95   <h3>Maintainer:</h3>
96   [%- FOREACH maintainers -%]
97         <a href="mailto:[% mail %]">[% name | html %]</a>
98         (<a href="[% ddpo_url _ mail %]" title="An overview over the maintainter's packages and uploads">QA Page</a>)
99   [%- END -%]
100 [%- ELSE -%]
101   <h3>Maintainers:</h3>
102   [%- FOREACH maintainers -%]
103     [%- '<ul>' IF loop.first -%]
104         <li><a href="mailto:[% mail %]">[% name | html %]</a>
105         (<a href="[% ddpo_url _ mail %]" title="An overview over the maintainter's packages and uploads">QA Page</a>)
106         </li>
107     [%- '</ul>' IF loop.last -%]
108   [%- END -%]
109 [%- END %]
110
111 [% url = page.get_newest('url');
112    IF url %]
113 <h3>External Resources:</h3>
114 <p>Homepage: <a href="[% url | uri %]">[% url | html %]</a></p>
115 [% END %]
116
117 </div> <!-- end pmoreinfo -->
118 [% END %]
119
120 [% IF suite == "experimental" || subsection == "debian-installer" %]
121 <div class="pconstantnag">
122 [% IF suite == "experimental" %]
123 [% changelog_link = 'changelog';
124    changelog_link = "<a href='$changelogs_url$files.changelog.path'>changelog</a>" %] 
125 <h2>Experimental package</h2>
126 <p>Warning: This package is from the <strong>experimental</strong> distribution.
127 That means it is likely unstable or buggy, and it may even cause data loss.
128 Please be sure to consult the [% changelog_link %] and other possible documentation before
129 using it.</p>
130 [% END %]
131 [% IF subsection == "debian-installer" %]
132 <h2>debian-installer udeb package</h2>
133 <p>Warning: This package is intended for the use in building
134 <a href="http://www.debian.org/devel/debian-installer">debian-installer</a> images only.
135 Do not install it on a normal Debian system.</p>
136 [% END %]
137 </div>
138 [% END %]
139
140 <div id="pdesc">
141 [% UNLESS is_virtual %]
142         [% IF desc.short %]
143         <h2>[% desc.short %]</h2>
144         <p>[% desc.long %]
145         [% END %]
146 [% ELSE %]
147         <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>
148 [% END %]
149 </div> <!-- end pdesc -->
150
151 [% FOREACH tag IN tags %]
152   [% IF loop.first -%]
153     <div id="ptags"><p>
154     <a href="[% tags_url %]edit.html?pkg=[% pkg | uri %]">Tags</a>:
155   [%- END %]
156   [% facet = tag.0;
157      facet_name = debtags_voc.$facet;
158      tag_id = "$tag.0::$tag.1";
159      tag_name = debtags_voc.$tag_id;
160    %]
161   [% facet_name _ ': ' UNLESS old_facet && facet == old_facet %]
162   [% IF tag_name %]
163    <a href="/about/debtags#[% string2id(tag_id) %]">[% tag_name %]</a>[% ', ' UNLESS loop.last %]
164   [% ELSE %]
165   [% tag_id %][% ', ' UNLESS loop.last %]
166   [% END %]
167   [% old_facet = facet %]
168   [% IF loop.last -%]
169     </p>
170     </div> <!-- end ptags -->
171   [%- END %]
172 [% END %]
173
174 [% FOREACH providers %]
175   [% IF loop.first %]<div id="pdeps"><h2>Packages providing [% pkg %]</h2><dl>[% END %]
176     <dt>[% IF available %]<a href="[% make_url(name,'','source','') %]">[% name %]</a>[% ELSE %][% name %][% END %]</dt>
177     <dd>[% desc %]</dd>
178   [% '</dl></div>' IF loop.last %]
179 [% END %]
180
181 [% FOREACH binaries %]
182   [% IF loop.first %]<div class="pdesc">The following binary packages are built from this source package:<dl>[% END %]
183     <dt>[% IF available %]<a href="[% make_url(name,'','source','') %]">[% name %]</a>[% ELSE %][% name %][% END %]</dt>
184     <dd>[% desc %]</dd>    
185   [% '</dl></div>' IF loop.last %]
186 [% END %]
187
188 [% FOREACH relations %]
189   [% IF loop.first -%]
190     <div id="pdeps">
191     <h2>Other Packages Related to [% pkg %]</h2>
192
193     <table id="pdeplegend" summary="legend"><tr>
194     [% IF is_source %]
195     <td><img src="/Pics/adep.gif" alt="[adep]" width="16" height="16">= build-depends</td>
196     <td><img src="/Pics/idep.gif" alt="[idep]" width="16" height="16">= build-depends-indep</td>
197     [% ELSE %]
198     <td><img src="/Pics/dep.gif" alt="[dep]" width="16" height="16">= depends</td>
199     <td><img src="/Pics/rec.gif" alt="[rec]" width="16" height="16">= recommends</td>
200     <td><img src="/Pics/sug.gif" alt="[sug]" width="16" height="16">= suggests</td>
201     [% END %]
202     </tr></table>
203   [%- END %]
204
205   <ul class="ul[% id %]">
206   [% FOREACH terms %]
207     [% '<li>' UNLESS is_old_pkgs %]
208     [% FOREACH alternatives %]
209       [% '<dl>' IF loop.first %]
210       <dt>[% IF loop.first %]<img class="hidecss" src="/Pics/[% id %].gif" alt="[[% id %]]">[% ELSE %]or [% END %]
211         [% IF suite %]<a href="[% make_url(name,'','suite',suite,'source','') %]">[% name %]</a>[% ELSE %][% name %][% END %]
212         [% ' (' _ version _ ')' IF version %]
213         [% ' [' _ arch_str _ ']' IF arch_str %]</dt>
214       [%- IF !is_old_pkgs -%]
215         <dd>[% desc -%]
216         [%- IF providers.pkgs.size > 0 -%]
217           [% '<br>also a ' IF providers.also %]virtual package provided by
218           [% js_id = name %]
219             <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>
220         [% IF providers.pkgs.size > 10 %]
221         <script type="text/javascript">init_toggle_elem("[% js_id %]","[% providers.pkgs.size %] providing packages")</script>
222         [% END %]
223         [% END %]
224         </dd>
225       [% END %]
226       [% '</dl>' IF loop.last %]
227     [% END %]
228   [% END %]
229   </ul>
230
231   [% IF loop.last -%]
232     </div> <!-- end pdeps -->
233   [%- END %]
234 [% END %]
235
236 [% FOREACH downloads %]
237   [% IF loop.first -%]
238     <div id="pdownload">
239     <h2>Download [% pkg %]</h2>
240     
241     <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.">
242     <caption class="hidecss">Download for all available architectures</caption>
243     <tr><th>Architecture</th>[% '<th>Version</th>' IF versions.multiple %]<th>Package Size</th><th>Installed Size</th><th>Files</th></tr>
244   [%- END %]
245
246 <tr>
247 [% download_url = pkg _ '/' _ arch _ '/download'
248    filelist_url = pkg _ '/' _ arch _ '/filelist' %]
249 <th><a href="[% make_url(download_url) | uri %]">[% arch %]</a></th>
250 [% '<td>' _ version _ '</td>' IF versions.multiple %]
251 <td class="size">[% pkgsize %]&nbsp;kB</td><td class="size">[% instsize %]&nbsp;kB</td>
252 <td>
253 [% IF contents_avail %]
254   [<a href="[% make_url(filelist_url) | uri %]">list of files</a>]
255 [% ELSE %]
256   no current information
257 [% END %]
258 </td>
259 </tr>
260
261   [% IF loop.last -%]
262     </table>
263
264     </div> <!-- end pdownload -->
265   [%- END %]
266 [% END %]
267
268 [% FOREACH srcfiles %]
269   [% IF loop.first -%]
270     <div id="pdownload">
271     <h2>Download [% pkg %]</h2>
272     
273     <table summary="Download information for the files of this source package">
274     <tr><th>File</th><th>Size (in kB)</th><th>md5sum</th></tr>
275   [%- END %]
276
277 <tr>
278 <td><a href="[% server _ path %]">[% filename %]</a></td>
279 <td>[% size %]</td>
280 <td class="md5sum">[% md5sum %]</td>
281 </tr>
282
283   [% IF loop.last -%]
284     </table>
285
286     </div> <!-- end pdownload -->
287   [%- END %]
288 [% END %]
289