X-Git-Url: https://git.deb.at/?a=blobdiff_plain;f=templates%2Fhtml%2Fshow.tmpl;h=2be807156bee8bb0144325822c5cf0f96491c02b;hb=ee1229bf379cb681a4805bf97ecdea9e60a7efb8;hp=7107d53d80b302ca1c9fe5d261bfc409b7dadb8c;hpb=11fd4b5f87f668eeb33922c6f64823e40828d137;p=deb%2Fpackages.git
diff --git a/templates/html/show.tmpl b/templates/html/show.tmpl
index 7107d53..2be8071 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 Changelog
Copyright File
[% END %]
-
-[% vcs_link = page.get_newest("vcs-browser") %]
-[% #FIXME: should this only be used for the PTS?
- known_vcs = [ [ 'cvs', 'CVS', 'cvs' ],
- [ 'svn', 'Subversion', 'subversion' ],
- [ 'bzr', 'bzr', 'bzr' ],
- [ 'darcs', 'Darcs', 'darcs' ],
- [ 'arch', 'arch', 'tla' ],
- [ 'git', 'Git', 'git-core' ],
- [ 'hg', 'Hg', 'mercurial' ], ];
- FOREACH vcs IN known_vcs;
+[% IF vcs_link %]
+Debian Source Repository
+[%- 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; %]
-Debian Package Repository (VCS:
-[% vcs_name %]):
[% vcs_info %]
-[% IF vcs_link %]
-Debian Package Repository (Browsable):
[% vcs_link %]
-[% END; END; END %]
+ IF vcs_info %]
+ ([% vcs_name %])
+[% END %]
+
+[% END; END %]
+
+
[% IF src %]
Download Source Package [% src.pkg %]:
@@ -101,25 +103,24 @@
[% IF maintainers.size == 1 -%]
Maintainer:
- [%- FOREACH maintainers -%]
- [% name | html %]
- (QA Page)
- [%- END -%]
[%- ELSE -%]
Maintainers:
- [%- FOREACH maintainers -%]
- [%- '' IF loop.first -%]
+[%- END %]
+[%- FOREACH maintainers -%]
+ [%- '' IF loop.last -%]
- [%- END -%]
-[%- END %]
+ [%- '
' IF loop.last -%]
+[%- END -%]
[% url = page.get_newest('url');
+ SET url = page.get_newest('homepage') IF page.get_newest('homepage');
IF url %]
External Resources:
-Homepage: [% url | html %]
+
[% END %]
[% FOREACH sim IN similar %]
@@ -317,10 +318,24 @@ 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; %]
+
+- Debian Package Source Repository (VCS: [% vcs_name %])
+- [% vcs_info %]
+[% IF vcs_link %]
+- Debian Package Source Repository (Browsable)
- [% vcs_link %]
+[% END %]
+
+[% END; END %]
+
[%- END %]
[% END %]
-
+[%# %]
[%- PROCESS 'html/foot.tmpl' -%]