X-Git-Url: https://git.deb.at/w?a=blobdiff_plain;f=templates%2Fhtml%2Fshow.tmpl;h=794903ab190a1a0f11e8f20f016316b3cf2d034f;hb=5b625db7022789463f90595964f1ab4fbbce7c6f;hp=b524d47c176208902cc8ad69288b93d1e7f287d3;hpb=6d049bd100a65f8aab957442243991f632381279;p=deb%2Fpackages.git diff --git a/templates/html/show.tmpl b/templates/html/show.tmpl index b524d47..794903a 100644 --- a/templates/html/show.tmpl +++ b/templates/html/show.tmpl @@ -1,5 +1,14 @@ [% PROCESS 'config/archive_layout.tmpl' %] [% PROCESS 'config/mirrors.tmpl' %] +[%- known_vcs = [ [ 'cvs', 'CVS', 'cvs' ], + [ 'svn', 'Subversion', 'subversion' ], + [ 'bzr', 'bzr', 'bzr' ], + [ 'darcs', 'Darcs', 'darcs' ], + [ 'arch', 'arch', 'tla' ], + [ 'git', 'Git', 'git-core' ], + [ 'hg', 'Hg', 'mercurial' ], ]; + vcs_link = page.get_newest("vcs-browser"); +-%] [%- nav_arr = [ { prefix=>'Distribution:', title=>'Overview over this suite', url=>make_url('/','','source',''), name=>suite }, ]; nav_arr.push( { title => 'Source packages', url=>make_url('/'), name=>'Source' } ) IF is_source; nav_arr.push( { prefix=>'Section:', title=>'All packages in this section', url=>make_url("$subsection/"), name=>subsection } ); @@ -65,27 +74,20 @@
Debian Package Repository (VCS:
-[% vcs_name %]):
[% vcs_info %]
Debian Package Repository (Browsable):
[% vcs_link %]
Download Source Package [% src.pkg %]: @@ -101,22 +103,19 @@ [% IF maintainers.size == 1 -%]
Homepage: [% url | html %]
@@ -317,6 +316,20 @@ Do not install it on a normal Debian system. [% IF loop.last -%] +[% FOREACH vcs IN known_vcs; + vcs_id = vcs.0; vcs_name = vcs.1; vcs_pkg = vcs.2; + vcs_info = page.get_newest("vcs-$vcs_id"); + SET vcs_info = page.get_newest("x-vcs-$vcs_id") UNLESS vcs_info; + IF vcs_info; %] +