X-Git-Url: https://git.deb.at/?a=blobdiff_plain;f=templates%2Fhtml%2Fshow.tmpl;h=19f5b7e474bfaee94967d6d6abecd2d03207125e;hb=748ceddd9cfe7f65f7e349321488be52c11f1e22;hp=ef049a5b41196e79e2ce7290fbdb67ab08e78196;hpb=e073e258df199ec693a94b5f460968dec3f6e732;p=deb%2Fpackages.git
diff --git a/templates/html/show.tmpl b/templates/html/show.tmpl
index ef049a5..19f5b7e 100644
--- a/templates/html/show.tmpl
+++ b/templates/html/show.tmpl
@@ -56,22 +56,16 @@
[% ELSE %]
[% g('Links for %s', pkg) %]
[% g('%s Resources:', organisation) %]
@@ -104,12 +112,7 @@
[% END %]
[% END %]
-[% IF maintainers.size == 1 -%]
-
[% g('Maintainer:') %]
-[%- ELSE -%]
-
[% g('Maintainers:') %]
-[%- END %]
-[%- FOREACH maintainers;
+[%- BLOCK handle_maintainer;
mailarchiveurl = '';
IF (matches = mail.match('^(.*)@lists\.debian\.org$'));
mailarchiveurl = 'http://lists.debian.org/' _ uri_escape(matches.0) _ '/';
@@ -118,12 +121,43 @@
ELSIF (matches = mail.match('^(.*)@lists\.ubuntu\.com$'));
mailarchiveurl = 'http://lists.ubuntu.com/archives/' _ uri_escape(matches.0) _ '/';
END -%]
- [%- '
' IF loop.last -%]
+[% END -%]
+
+[%- IF maintainers.size -%]
+[% IF maintainers.size == 1 -%]
+
[% g('Maintainer:') %]
+[%- ELSE -%]
+
[% g('Maintainers:') %]
+[%- END %]
+[%- FOREACH m IN maintainers;
+ '
' IF loop.first;
+ PROCESS handle_maintainer name=m.name mail=m.mail;
+ '
' IF loop.last;
+ END -%]
+
[% g('Please consider filing a bug or asking a question via Launchpad before contacting the maintainer directly.',
+ "https://bugs.launchpad.net/ubuntu/+source/" _ (is_source ? pkg : src.pkg) _ "/+filebug",
+ "https://answers.launchpad.net/ubuntu/+source/" _ (is_source ? pkg : src.pkg) _ "/+addquestion") %]
+[%- END -%]
+
+[%- IF original_maintainers.size -%]
+[% IF original_maintainers.size == 1 -%]
+
[% g('Original Maintainer (usually from Debian):') %]
+[%- ELSE -%]
+
[% g('Original Maintainers (usually from Debian):') %]
+[%- END %]
+[%- FOREACH m IN original_maintainers;
+ '
' IF loop.first;
+ PROCESS handle_maintainer name=m.name mail=m.mail hide_mail=1;
+ '
' IF loop.last;
+ END -%]
+
[% g('It should generally not be necessary for users to contact the original maintainer.') %]
[%- END -%]
[% url = page.get_newest('url');
@@ -241,26 +275,26 @@
[%- END %]
- [% FOREACH terms %]
- [% '- ' UNLESS is_old_pkgs %]
- [% FOREACH alternatives %]
+ [% FOREACH t IN terms %]
+ [% '
- ' UNLESS t.is_old_pkgs %]
+ [% FOREACH a IN t.alternatives %]
[% '
' IF loop.first %]
- [% IF loop.first %][% id %]:[% ELSE %][% g('or ') %][% END %]
- [% IF suite %][% name %][% ELSE %][% name %][% END %]
- [% ' (' _ version _ ')' IF version %]
- [% ' [' _ arch_str _ ']' IF arch_str %]
- [%- IF !is_old_pkgs -%]
- [% PROCESS desc_i18n_dd no_end_tag=1 trans_desc=trans_desc desc=desc -%]
- [%- IF providers.pkgs.size > 0 -%]
- [% IF providers.also;
+ [% IF a.suite %][% a.name %][% ELSE %][% a.name %][% END %]
+ [% ' (' _ a.version _ ')' IF a.version %]
+ [% ' [' _ a.arch_str _ ']' IF a.arch_str %]
+ [%- IF !t.is_old_pkgs -%]
+ [% PROCESS desc_i18n_dd no_end_tag=1 trans_desc=a.trans_desc desc=a.desc -%]
+ [%- IF a.providers.pkgs && a.providers.pkgs.size > 0 -%]
+ [% IF a.providers.also;
'
' _ g('also a virtual package provided by');
ELSE;
g('virtual package provided by');
END; %]
- [% js_id = name %]
- [% FOREACH provider IN providers.pkgs.sort %][% provider %][% ', ' UNLESS loop.last %][% END %]
- [% IF providers.pkgs.size > 10 %]
-
+ [% js_id = a.name %]
+ [% FOREACH provider IN a.providers.pkgs.sort %][% provider %][% ', ' UNLESS loop.last %][% END %]
+ [% IF a.providers.pkgs.size > 10 %]
+
[% END %]
[% END %]