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