]> git.deb.at Git - deb/packages.git/blob - templates/html/show.tmpl
The Big, the Fat and the Ugly commit ;)
[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                           keywords => '',
10                           searchon => is_source ? 'sourcenames' : 'names',
11                           arch => 'any',
12                           suite => 'all',
13                           section => 'all',
14                           exact => 0
15                          }
16   navigation = [ { prefix=>'Distribution:', title=>'Overview over this suite', url=>make_url('/'), name=>suite },
17                  { prefix=>'Section:', title=>'All packages in this section', url=>make_url("$subsection/"), name=>subsection },
18                  { prefix=>'Package:', name=>pkg } ]
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 </div>
32
33 [% IF src %]
34 <div id="psource">
35 [% PROCESS menuitem prefix='Source:' title='Source package building this package' url=make_url(src.pkg,'','source','source') name=src.pkg %]
36 </div>
37 [% END %]
38
39 [%- PROCESS 'html/messages.tmpl' -%]
40
41 [% IF is_virtual %]
42 <h1>Virtual Package: [% pkg %]
43 [% ELSIF is_source %]
44 <h1>Source Package: [% pkg %] ([% version %])
45 [% ELSE %]
46 <h1>Package: [% pkg %] ([% versions.short %])
47 [% END %]
48 [%- PROCESS marker text=archive IF archive && archive != main_archive %]
49 [%- PROCESS marker text=subsection IF subsection == 'non-US' and archive != 'non-US' %]
50 [%- PROCESS marker text=section IF section && section != main_section %]</h1>
51
52 [% IF suite == "experimental" || subsection == "debian-installer" %]
53 <div class="pconstantnag">
54 [% IF suite == "experimental" %]
55 <h2>Experimental package</h2>
56 <p>Warning: This package is from the <strong>experimental</strong> distribution.
57 That means it is likely unstable or buggy, and it may even cause data loss.
58 Please be sure to consult the changelog and other possible documentation before
59 using it.</p>
60 [% END %]
61 [% IF subsection == "debian-installer" %]
62 <h2>debian-installer udeb package</h2>
63 <p>Warning: This package is intended for the use in building
64 <a href="http://www.debian.org/devel/debian-installer">debian-installer</a> images only.
65 Do not install it on a normal Debian system.</p>
66 [% END %]
67 </div>
68 [% END %]
69
70 [% UNLESS is_virtual %]
71 <div id="pdesc">
72 <h2>[% desc.short %]</h2>
73 <p>[% desc.long %]
74 </div> <!-- end pdesc -->
75 [% END %]
76
77 [% FOREACH tag IN tags %]
78   [% IF loop.first -%]
79     <div id="ptags"><p>
80     <a href="[% tags_url %]edit.html?pkg=[% pkg | uri %]">Tags</a>:
81   [%- END %]
82   [% tag %][% ', ' UNLESS loop.last %]
83   [% IF loop.last -%]
84     </p>
85     </div> <!-- end ptags -->
86   [%- END %]
87 [% END %]
88
89 [% FOREACH providers %]
90   [% IF loop.first %]<div id="pdeps"><h2>Packages providing [% pkg %]</h2><dl>[% END %]
91     <dt>[% IF available %]<a href="[% make_url(name,'','source','') %]">[% name %]</a>[% ELSE %][% name %][% END %]</dt>
92     <dd>[% desc %]</dd>
93   [% '</dl></div>' IF loop.last %]
94 [% END %]
95
96 [% FOREACH binaries %]
97   [% IF loop.first %]<div class="pdesc">The following binary packages are built from this source package:<dl>[% END %]
98     <dt>[% IF available %]<a href="[% make_url(name,'','source','') %]">[% name %]</a>[% ELSE %][% name %][% END %]</dt>
99     <dd>[% desc %]</dd>    
100   [% '</dl></div>' IF loop.last %]
101 [% END %]
102
103 [% FOREACH relations %]
104   [% IF loop.first -%]
105     <div id="pdeps">
106     <h2>Other Packages Related to [% pkg %]</h2>
107
108     <table id="pdeplegend" summary="legend"><tr>
109     [% IF is_source %]
110     <td><img src="/Pics/adep.gif" alt="[adep]" width="16" height="16">= build-depends</td>
111     <td><img src="/Pics/idep.gif" alt="[idep]" width="16" height="16">= build-depends-indep</td>
112     [% ELSE %]
113     <td><img src="/Pics/dep.gif" alt="[dep]" width="16" height="16">= depends</td>
114     <td><img src="/Pics/rec.gif" alt="[rec]" width="16" height="16">= recommends</td>
115     <td><img src="/Pics/sug.gif" alt="[sug]" width="16" height="16">= suggests</td>
116     [% END %]
117     </tr></table>
118   [%- END %]
119
120   <ul class="ul[% id %]">
121   [% FOREACH terms %]
122     [% '<li>' UNLESS is_old_pkgs %]
123     [% FOREACH alternatives %]
124       [% '<dl>' IF loop.first %]
125       <dt>[% IF loop.first %]<img class="hidecss" src="/Pics/[% id %].gif" alt="[[% id %]]">[% ELSE %]or [% END %]
126         [% IF suite %]<a href="[% make_url(name,'','suite',suite,'source','') %]">[% name %]</a>[% ELSE %][% name %][% END %]
127         [% ' (' _ version _ ')' IF version %]
128         [% ' [' _ arch_str _ ']' IF arch_str %]</dt>
129       [%- IF !is_old_pkgs -%]
130         <dd>[% desc -%]
131         [%- IF providers.size > 0 -%]
132           [% '<br>also a ' IF providers.also %]virtual package provided by
133           [%- IF providers.pkgs.size < 11 -%]
134             [% FOREACH provider IN providers.pkgs %]<a href="[% make_url(provider,'','suite',suite,'source','') %]">[% provider %]</a>[% ', ' UNLESS loop.last %][% END %]
135           [%- ELSE -%]
136             <a href="[% make_url(name,'','suite',suite,'source','') %]">[% providers.pkgs.size %] packages</a>
137           [% END %]
138         [% END %]
139         </dd>
140       [% END %]
141       [% '</dl>' IF loop.last %]
142     [% END %]
143   [% END %]
144   </ul>
145
146   [% IF loop.last -%]
147     </div> <!-- end pdeps -->
148   [%- END %]
149 [% END %]
150
151 [% FOREACH downloads %]
152   [% IF loop.first -%]
153     <div id="pdownload">
154     <h2>Download [% pkg %]</h2>
155     
156     <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.">
157     <caption class="hidecss">Download for all available architectures</caption>
158     <tr><th>Architecture</th>[% '<th>Version</th>' IF versions.multiple %]<th>Package Size</th><th>Installed Size</th><th>Files</th></tr>
159   [%- END %]
160
161 <tr>
162 [% download_url = pkg _ '/' _ arch _ '/download'
163    filelist_url = pkg _ '/' _ arch _ '/filelist' %]
164 <th><a href="[% make_url(download_url) | uri %]">[% arch %]</a></th>
165 [% '<td>' _ version _ '</td>' IF versions.multiple %]
166 <td class="size">[% pkgsize %]&nbsp;kB</td><td class="size">[% instsize %]&nbsp;kB</td>
167 <td>
168 [% IF contents_avail %]
169   [<a href="[% make_url(filelist_url) | uri %]">list of files</a>]
170 [% ELSE %]
171   no current information
172 [% END %]
173 </td>
174 </tr>
175
176   [% IF loop.last -%]
177     </table>
178
179     </div> <!-- end pdownload -->
180   [%- END %]
181 [% END %]
182
183 [% FOREACH srcfiles %]
184   [% IF loop.first -%]
185     <div id="pdownload">
186     <h2>Download [% pkg %]</h2>
187     
188     <table summary="Download information for the files of this source package">
189     <tr><th>File</th><th>Size (in kB)</th><th>md5sum</th></tr>
190   [%- END %]
191
192 <tr>
193 <td><a href="[% server _ path %]">[% filename %]</a></td>
194 <td>[% size %]</td>
195 <td class="md5sum">[% md5sum %]</td>
196 </tr>
197
198   [% IF loop.last -%]
199     </table>
200
201     </div> <!-- end pdownload -->
202   [%- END %]
203 [% END %]
204
205
206 [% UNLESS is_virtual %]
207 <div id="pmoreinfo">
208 <h2>More Information on [% pkg %]</h2><p>
209 Check for <a href="[% (is_source ? src_bugs_url : bugs_url) _ pkg | uri %]">Bug Reports</a> about [% pkg %].<br>
210 [% IF src %]
211   Source Package: <a href="[% src.url %]">[% src.pkg %]</a>, Download:
212   [% FOREACH src.downloads %]
213   <a href="[% server _ path %]">[[% name %]]</a>
214   [% END %]
215   [% IF src.downloads.size == 0 %]
216   Not found
217   [% END %]
218 [% END %]
219
220 [% IF files %]
221 <br>View the <a href="[% changelogs_url _ files.changelog.path %]">Debian changelog</a><br>
222 View the <a href="[% changelogs_url _ files.copyright.path %]">copyright file</a></p>
223 [% END %]
224 <p>
225 [% IF maintainers.size == 1 -%]
226   [%- FOREACH maintainers -%]
227     <a href="mailto:[% mail %]">[% name | html %]</a> is responsible for this Debian package.
228   [%- END -%]
229 [%- ELSE -%]
230   [%- FOREACH maintainers -%]
231     [%- IF loop.first -%]
232 <a href="mailto:[% mail %]">[% name | html %]</a>
233     [%- ELSIF loop.last -%]
234  and <a href="mailto:[% mail %]">[% name | html %]</a> are responsible for this Debian package.
235     [%- ELSE -%]
236 , <a href="mailto:[% mail %]">[% name | html %]</a>
237     [%- END -%]
238   [%- END -%]
239 [%- END %]
240 [% IF src -%]
241 See the <a href="[% pts_url _ src.pkg | uri %]">developer information for [% pkg %]</a>.
242 [%- END %]
243 </p>
244 <p>Search for <a href="[% (is_source ? src_search_url : search_url) _ pkg | uri %]">other versions of [% pkg %]</a></p>
245 </div> <!-- end pmoreinfo -->
246 [% END %]