X-Git-Url: https://git.deb.at/?a=blobdiff_plain;f=templates%2Fhtml%2Findex.tmpl;h=74a30b0c27d39091533a188562245383936ce899;hb=5eefedd1fae821a3981218ceaccb7f5e50f823f9;hp=898529411eefae1dbd9e222a15d401c6a3f646cb;hpb=2ec757bb58907b15c43548be5601d4f2b8c7caac;p=deb%2Fpackages.git diff --git a/templates/html/index.tmpl b/templates/html/index.tmpl index 8985294..74a30b0 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 is_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 %] @@ -27,7 +31,9 @@ [% END %] [% IF providers.size %]
[% name %]
-
virtual package provided by [% FOREACH provider IN providers %][% provider %][% END %]
+
virtual package provided by + [% FOREACH provider IN providers %][% provider %] + [%- ', ' UNLESS loop.last %][% END %]
[% IF versions.length %]
[% name %] ([% versions %])[% PROCESS markers %]
[% desc | html %]
@@ -39,3 +45,5 @@ [% '' IF loop.last %] [% END %] + +[%- PROCESS 'html/foot.tmpl' -%]