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