]> git.deb.at Git - deb/packages.git/blobdiff - templates/html/suite_index.tmpl
Make language override URLs more robust
[deb/packages.git] / templates / html / suite_index.tmpl
index ed4f901040065eeeb227c89033a7967b70e368cd..9be0784c1a8dcf33ece9ceab0d21cbdabb03e31f 100644 (file)
@@ -1,10 +1,23 @@
-[% PROCESS 'html/head.tmpl' 
-       title_tag = "List of sections in \"$suite\""
-       page_title = "List of sections in \"$suite\""
+[% nav_arr = [ { name=> suite, url=>make_url('/','','suite',suite) } ];
+   nav_arr.push( { name => g('Source') } ) IF source;
+   nav_arr.push( { name => g('Index') } );
+   PROCESS 'html/head.tmpl' 
+       title_tag = g('List of sections in "%s"', suite)
        keywords = suite
-       navigation = [ { name=> suite },
-                      { name => 'Index' }, ]
+       navigation = nav_arr
 %]
+[% PROCESS 'html/util.inc' %]
+[% FOREACH s IN suites %]
+   [% '<div id="pothers">' IF loop.first %]
+   [%- IF s == suite -%]
+     [% PROCESS menuitem name=s url='' %]
+   [%- ELSE -%]
+     [% PROCESS menuitem name=s url=make_url('/','','suite',s,'source',source) %]
+   [%- END -%]
+   [%- '</div>' IF loop.last -%]
+[% END %]
+
+<h1>[% g('List of sections in "%s"', suite) %]</h1>
 
 [% FOREACH subsections %]
   [% '<div id="lefthalfcol"><dl>' IF loop.first %]
   [% '</dl></div>' IF loop.last %]
 [% END %]
 
+[% link_title = source ? g('List of all source packages')
+                         : g('List of all packages');
+   link_text = source ? g('All source packages')
+                        : g('All packages');
+-%]
 <p class="psmallcenter">
-       <a href="allpackages" title="List of all packages">All packages</a><br>
-       (<a href="allpackages?format=txt.gz">compact compressed textlist</a>)
+       <a href="allpackages" title="[% link_title %]">[% link_text %]</a><br>
+       (<a href="allpackages?format=txt.gz">[% g('compact compressed textlist') %]</a>)
 </p>
+
+[%- PROCESS 'html/foot.tmpl' page_name= source ? "source/$suite/" : "$suite/" -%]