X-Git-Url: https://git.deb.at/?a=blobdiff_plain;f=templates%2Fhtml%2Findex.tmpl;h=11cab5ceee6e2ed3dee2a745109df6f2b3b7ec7a;hb=11fd4b5f87f668eeb33922c6f64823e40828d137;hp=898529411eefae1dbd9e222a15d401c6a3f646cb;hpb=2ec757bb58907b15c43548be5601d4f2b8c7caac;p=deb%2Fpackages.git diff --git a/templates/html/index.tmpl b/templates/html/index.tmpl index 8985294..11cab5c 100644 --- a/templates/html/index.tmpl +++ b/templates/html/index.tmpl @@ -2,19 +2,23 @@ [% pkg_type = is_source ? 'Source' : 'Software'; title_common = category ? "$pkg_type Packages in \"$suite\", $category.id $category.name" : "$pkg_type Packages in \"$suite\""; + + nav_arr = [ { prefix=>'Distribution:', title=>'Overview over this suite', url=>make_url('/','','suite',suite), name=>suite } ]; IF category; - navigation_pre = [ { prefix=>'Distribution:', title=>'Overview over this suite', url=>"../", name=>suite }, - { prefix=>"$category.id:", name=>category.name } ]; + nav_last = { prefix=>"$category.id:", name=>category.name }; ELSE; - navigation_pre = [ { prefix=>'Distribution:', title=>'Overview over this suite', url=>"index", name=>suite }, - { name=>'All Packages' } ]; - END + nav_last = { name=>'All Packages' }; + END; + nav_arr.push( { name=>'Source', + url=>make_url('/','','suite',suite,'source',source) } ) + IF source; + nav_arr.push( nav_last ); %] [% PROCESS 'html/head.tmpl' title_tag = title_common page_title = title_common keywords = "$suite, $category.name" - navigation = navigation_pre + navigation = nav_arr %] [% FOREACH packages %] @@ -39,3 +43,5 @@ [% '' IF loop.last %] [% END %] + +[%- PROCESS 'html/foot.tmpl' -%]