]> git.deb.at Git - deb/packages.git/blob - templates/html/suite_index.tmpl
html/menu.inc: rename to html/util.inc
[deb/packages.git] / templates / html / suite_index.tmpl
1 [% nav_arr = [ { name=> suite, url=>make_url('/','','suite',suite) } ];
2    nav_arr.push( { name => g('Source') } ) IF source;
3    nav_arr.push( { name => g('Index') } );
4    PROCESS 'html/head.tmpl' 
5         title_tag = g('List of sections in "%s"', suite)
6         keywords = suite
7         navigation = nav_arr
8 %]
9 [% PROCESS 'html/util.inc' %]
10 [% FOREACH s IN suites %]
11    [% '<div id="pothers">' IF loop.first %]
12    [%- IF s == suite -%]
13      [% PROCESS menuitem name=s url='' %]
14    [%- ELSE -%]
15      [% PROCESS menuitem name=s url=make_url('/','','suite',s,'source',source) %]
16    [%- END -%]
17    [%- '</div>' IF loop.last -%]
18 [% END %]
19
20 <h1>[% g('List of sections in "%s"', suite) %]</h1>
21
22 [% FOREACH subsections %]
23   [% '<div id="lefthalfcol"><dl>' IF loop.first %]
24   
25   <dt><a href="[% id %]/">[% name %]</a></dt>
26   <dd>[% desc %]</dd>
27
28   [%- loop_half = loop.size / 2 -%]
29   [%- IF ( loop.count <= loop_half ) && ( loop.count >= ( loop_half - 1 ) ) -%]
30   </dl>
31   </div> <!-- end lefthalfcol -->
32   <div id="righthalfcol">
33   <dl>
34   [%- END -%]
35   [% '</dl></div>' IF loop.last %]
36 [% END %]
37
38 [% link_title = is_source ? g('List of all source packages')
39                           : g('List of all packages');
40    link_text = is_source ? g('All source packages')
41                          : g('All packages');
42 -%]
43 <p class="psmallcenter">
44         <a href="allpackages" title="[% link_title %]">[% link_text %]</a><br>
45         (<a href="allpackages?format=txt.gz">[% g('compact compressed textlist') %]</a>)
46 </p>
47
48 [%- PROCESS 'html/foot.tmpl' -%]