]> 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 baf70e4c4c6d2cb59aadc321b54d1579bab6588e..9be0784c1a8dcf33ece9ceab0d21cbdabb03e31f 100644 (file)
@@ -6,7 +6,7 @@
        keywords = suite
        navigation = nav_arr
 %]
-[% PROCESS 'html/menu.inc' %]
+[% PROCESS 'html/util.inc' %]
 [% FOREACH s IN suites %]
    [% '<div id="pothers">' IF loop.first %]
    [%- IF s == suite -%]
@@ -35,9 +35,9 @@
   [% '</dl></div>' IF loop.last %]
 [% END %]
 
-[% link_title = is_source ? g('List of all source packages')
+[% link_title = source ? g('List of all source packages')
                          : g('List of all packages');
-   link_text = is_source ? g('All source packages')
+   link_text = source ? g('All source packages')
                         : g('All packages');
 -%]
 <p class="psmallcenter">
@@ -45,4 +45,4 @@
        (<a href="allpackages?format=txt.gz">[% g('compact compressed textlist') %]</a>)
 </p>
 
-[%- PROCESS 'html/foot.tmpl' -%]
+[%- PROCESS 'html/foot.tmpl' page_name= source ? "source/$suite/" : "$suite/" -%]