]> git.deb.at Git - deb/packages.git/blob - templates/html/show.tmpl
experiment a little with the use of JavaScript. Right now I use
[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 </div>
27
28 [% IF src %]
29 <div id="psource">
30 [% PROCESS menuitem prefix='Source:' title='Source package building this package' url=make_url(src.pkg,'','source','source') name=src.pkg %]
31 </div>
32 [% END %]
33
34 [%- PROCESS 'html/messages.tmpl' -%]
35
36 [% IF is_virtual %]
37 <h1>Virtual Package: [% pkg %]
38 [% ELSIF is_source %]
39 <h1>Source Package: [% pkg %] ([% version %])
40 [% ELSE %]
41 <h1>Package: [% pkg %] ([% versions.short %])
42 [% END %]
43 [%- PROCESS marker text=archive IF archive && archive != main_archive %]
44 [%- PROCESS marker text=subsection IF subsection == 'non-US' and archive != 'non-US' %]
45 [%- PROCESS marker text=section IF section && section != main_section %]</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 <h2>[% desc.short %]</h2>
68 <p>[% desc.long %]
69 </div> <!-- end pdesc -->
70 [% END %]
71
72 [% FOREACH tag IN tags %]
73   [% IF loop.first -%]
74     <div id="ptags"><p>
75     <a href="[% tags_url %]edit.html?pkg=[% pkg | uri %]">Tags</a>:
76   [%- END %]
77   [% tag %][% ', ' UNLESS loop.last %]
78   [% IF loop.last -%]
79     </p>
80     </div> <!-- end ptags -->
81   [%- END %]
82 [% END %]
83
84 [% FOREACH providers %]
85   [% IF loop.first %]<div id="pdeps"><h2>Packages providing [% pkg %]</h2><dl>[% END %]
86     <dt>[% IF available %]<a href="[% make_url(name,'','source','') %]">[% name %]</a>[% ELSE %][% name %][% END %]</dt>
87     <dd>[% desc %]</dd>
88   [% '</dl></div>' IF loop.last %]
89 [% END %]
90
91 [% FOREACH binaries %]
92   [% IF loop.first %]<div class="pdesc">The following binary packages are built from this source package:<dl>[% END %]
93     <dt>[% IF available %]<a href="[% make_url(name,'','source','') %]">[% name %]</a>[% ELSE %][% name %][% END %]</dt>
94     <dd>[% desc %]</dd>    
95   [% '</dl></div>' IF loop.last %]
96 [% END %]
97
98 [% FOREACH relations %]
99   [% IF loop.first -%]
100     <div id="pdeps">
101     <h2>Other Packages Related to [% pkg %]</h2>
102
103     <table id="pdeplegend" summary="legend"><tr>
104     [% IF is_source %]
105     <td><img src="/Pics/adep.gif" alt="[adep]" width="16" height="16">= build-depends</td>
106     <td><img src="/Pics/idep.gif" alt="[idep]" width="16" height="16">= build-depends-indep</td>
107     [% ELSE %]
108     <td><img src="/Pics/dep.gif" alt="[dep]" width="16" height="16">= depends</td>
109     <td><img src="/Pics/rec.gif" alt="[rec]" width="16" height="16">= recommends</td>
110     <td><img src="/Pics/sug.gif" alt="[sug]" width="16" height="16">= suggests</td>
111     [% END %]
112     </tr></table>
113   [%- END %]
114
115   <ul class="ul[% id %]">
116   [% FOREACH terms %]
117     [% '<li>' UNLESS is_old_pkgs %]
118     [% FOREACH alternatives %]
119       [% '<dl>' IF loop.first %]
120       <dt>[% IF loop.first %]<img class="hidecss" src="/Pics/[% id %].gif" alt="[[% id %]]">[% ELSE %]or [% END %]
121         [% IF suite %]<a href="[% make_url(name,'','suite',suite,'source','') %]">[% name %]</a>[% ELSE %][% name %][% END %]
122         [% ' (' _ version _ ')' IF version %]
123         [% ' [' _ arch_str _ ']' IF arch_str %]</dt>
124       [%- IF !is_old_pkgs -%]
125         <dd>[% desc -%]
126         [%- IF providers.pkgs.size > 0 -%]
127           [% '<br>also a ' IF providers.also %]virtual package provided by
128           [% js_id = name %]
129             <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>
130         [% IF providers.pkgs.size > 10 %]
131         <script type="text/javascript">init_toggle_elem("[% js_id %]","[% providers.pkgs.size %] providing packages")</script>
132         [% END %]
133         [% END %]
134         </dd>
135       [% END %]
136       [% '</dl>' IF loop.last %]
137     [% END %]
138   [% END %]
139   </ul>
140
141   [% IF loop.last -%]
142     </div> <!-- end pdeps -->
143   [%- END %]
144 [% END %]
145
146 [% FOREACH downloads %]
147   [% IF loop.first -%]
148     <div id="pdownload">
149     <h2>Download [% pkg %]</h2>
150     
151     <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.">
152     <caption class="hidecss">Download for all available architectures</caption>
153     <tr><th>Architecture</th>[% '<th>Version</th>' IF versions.multiple %]<th>Package Size</th><th>Installed Size</th><th>Files</th></tr>
154   [%- END %]
155
156 <tr>
157 [% download_url = pkg _ '/' _ arch _ '/download'
158    filelist_url = pkg _ '/' _ arch _ '/filelist' %]
159 <th><a href="[% make_url(download_url) | uri %]">[% arch %]</a></th>
160 [% '<td>' _ version _ '</td>' IF versions.multiple %]
161 <td class="size">[% pkgsize %]&nbsp;kB</td><td class="size">[% instsize %]&nbsp;kB</td>
162 <td>
163 [% IF contents_avail %]
164   [<a href="[% make_url(filelist_url) | uri %]">list of files</a>]
165 [% ELSE %]
166   no current information
167 [% END %]
168 </td>
169 </tr>
170
171   [% IF loop.last -%]
172     </table>
173
174     </div> <!-- end pdownload -->
175   [%- END %]
176 [% END %]
177
178 [% FOREACH srcfiles %]
179   [% IF loop.first -%]
180     <div id="pdownload">
181     <h2>Download [% pkg %]</h2>
182     
183     <table summary="Download information for the files of this source package">
184     <tr><th>File</th><th>Size (in kB)</th><th>md5sum</th></tr>
185   [%- END %]
186
187 <tr>
188 <td><a href="[% server _ path %]">[% filename %]</a></td>
189 <td>[% size %]</td>
190 <td class="md5sum">[% md5sum %]</td>
191 </tr>
192
193   [% IF loop.last -%]
194     </table>
195
196     </div> <!-- end pdownload -->
197   [%- END %]
198 [% END %]
199
200
201 [% UNLESS is_virtual %]
202 <div id="pmoreinfo">
203 <h2>More Information on [% pkg %]</h2><p>
204 Check for <a href="[% (is_source ? src_bugs_url : bugs_url) _ pkg | uri %]">Bug Reports</a> about [% pkg %].<br>
205 [% IF src %]
206   Source Package: <a href="[% src.url %]">[% src.pkg %]</a>, Download:
207   [% FOREACH src.downloads %]
208   <a href="[% server _ path %]">[[% name %]]</a>
209   [% END %]
210   [% IF src.downloads.size == 0 %]
211   Not found
212   [% END %]
213 [% END %]
214
215 [% IF files %]
216 <br>View the <a href="[% changelogs_url _ files.changelog.path %]">Debian changelog</a><br>
217 View the <a href="[% changelogs_url _ files.copyright.path %]">copyright file</a></p>
218 [% END %]
219 <p>
220 [% IF maintainers.size == 1 -%]
221   [%- FOREACH maintainers -%]
222     <a href="mailto:[% mail %]">[% name | html %]</a> is responsible for this Debian package.
223   [%- END -%]
224 [%- ELSE -%]
225   [%- FOREACH maintainers -%]
226     [%- IF loop.first -%]
227 <a href="mailto:[% mail %]">[% name | html %]</a>
228     [%- ELSIF loop.last -%]
229  and <a href="mailto:[% mail %]">[% name | html %]</a> are responsible for this Debian package.
230     [%- ELSE -%]
231 , <a href="mailto:[% mail %]">[% name | html %]</a>
232     [%- END -%]
233   [%- END -%]
234 [%- END %]
235 [% IF src -%]
236 See the <a href="[% pts_url _ src.pkg | uri %]">developer information for [% pkg %]</a>.
237 [%- END %]
238 </p>
239 <p>Search for <a href="[% (is_source ? src_search_url : search_url) _ pkg | uri %]">other versions of [% pkg %]</a></p>
240 </div> <!-- end pmoreinfo -->
241 [% END %]