X-Git-Url: https://git.deb.at/?p=deb%2Fpackages.git;a=blobdiff_plain;f=templates%2Fhtml%2Fshow.tmpl;h=7c7dd17acb8ea79592b3f9d741eac7085a508b66;hp=a9ef33870b80d68ce9a7db15445ea6a33e16d7b9;hb=5fa4677a30bf12808f781367893a9d66ff839da4;hpb=404e70717590f860d3db41bef40957e6df651324 diff --git a/templates/html/show.tmpl b/templates/html/show.tmpl index a9ef338..7c7dd17 100644 --- a/templates/html/show.tmpl +++ b/templates/html/show.tmpl @@ -1,6 +1,17 @@ [% PROCESS 'config/archive_layout.tmpl' %] [% PROCESS 'config/mirrors.tmpl' %] -[%- nav_arr = [ { prefix=>'Distribution:', title=>'Overview over this suite', url=>make_url('/','','source',''), name=>suite }, ]; +[%- 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"); +-%] +[%- suite_name = suite; + SET suite_name = suite_name _ ' (' _ suite_aliases.$suite _ ')' IF suite_aliases.$suite; + nav_arr = [ { prefix=>'Distribution:', title=>'Overview over this suite', url=>make_url('/','','source',''), name=>suite_name }, ]; 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 } ); nav_arr.push( { prefix=>'Package:', name=>pkg } ); -%] @@ -45,7 +56,6 @@

Package: [% pkg %] ([% versions.short %]) [% END %] [%- PROCESS marker text=archive IF archive && archive != main_archive %] -[%- PROCESS marker text=subsection IF subsection == 'non-US' and archive != 'non-US' %] [%- PROCESS marker text=section IF section && section != main_section %] [%- PROCESS marker text='essential' IF page.get_newest('essential') == 'yes' %]

@@ -66,27 +76,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 %]: @@ -102,25 +105,24 @@ [% IF maintainers.size == 1 -%]

    Maintainer:

    - [%- FOREACH maintainers -%] - [% name | html %] - (QA Page) - [%- END -%] [%- ELSE -%]

    Maintainers:

    - [%- FOREACH maintainers -%] - [%- '' 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 %] @@ -215,7 +217,7 @@ Do not install it on a normal Debian system.

    Other Packages Related to [% pkg %]

    - +
    [% IF is_source %] @@ -232,7 +234,7 @@ Do not install it on a normal Debian system.

    [% '
  • ' UNLESS is_old_pkgs %] [% FOREACH alternatives %] [% '
    ' IF loop.first %] -
    [% IF loop.first %][[% id %]][% ELSE %]or [% END %] +
    [% IF loop.first %][% id %]:[% ELSE %]or [% END %] [% IF suite %][% name %][% ELSE %][% name %][% END %] [% ' (' _ version _ ')' IF version %] [% ' [' _ arch_str _ ']' IF arch_str %]
    @@ -318,10 +320,24 @@ Do not install it on a normal Debian system.

    [% IF loop.last -%]
  • [adep]= build-depends [idep]= build-depends-indep
    +[% 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' -%]