]> git.deb.at Git - deb/packages.git/blob - templates/html/suite_index.tmpl
Fix the nav bars to make more sense for source pages
[deb/packages.git] / templates / html / suite_index.tmpl
1 [% nav_arr = [ { name=> suite, url=>make_url('/','','suite',suite) } ];
2    nav_arr.push( { name => 'Source' } ) IF source;
3    nav_arr.push( { name => 'Index' } );
4    PROCESS 'html/head.tmpl' 
5         title_tag = "List of sections in \"$suite\""
6         keywords = suite
7         navigation = nav_arr
8 %]
9 [% PROCESS 'html/menu.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>List of sections in "[% 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 <p class="psmallcenter">
39         <a href="allpackages" title="List of all [% "source " IF source %]packages">All [% "source " IF source %]packages</a><br>
40         (<a href="allpackages?format=txt.gz">compact compressed textlist</a>)
41 </p>