X-Git-Url: https://git.deb.at/w?a=blobdiff_plain;f=templates%2Fhtml%2Fshow.tmpl;h=9b31bb2c31f7c9a451a8952abe8c0fad6b695316;hb=68db1964413f707e0991c14491d776346a77d010;hp=e72e61a253e667967a13cd8728334167ddc5f870;hpb=acce36b93fc8530fb50f50ca9edd08e6f6409b04;p=deb%2Fpackages.git
diff --git a/templates/html/show.tmpl b/templates/html/show.tmpl
index e72e61a..9b31bb2 100644
--- a/templates/html/show.tmpl
+++ b/templates/html/show.tmpl
@@ -56,14 +56,17 @@
[% ELSE %]
[% g('Links for %s', pkg) %]
-
[% g('Debian Resources:') %]
+[% IF screenshots_url && screenshots_thumb_url && !is_source %]
+
+[% END %]
+
[% g('%s Resources:', organisation) %]
- [% g('Bug Reports') %]
@@ -80,9 +83,23 @@
SET vcs_info = page.get_newest("x-vcs-$vcs_id") UNLESS vcs_info;
IF vcs_info %]
([% vcs_name %])
-[% END %]
+[% END; END -%]
-[% END; END %]
+[% END -%]
+
+[% IF patch_tracking_url && src %]
+ [% FOREACH src.downloads %]
+ [% IF name.match('\.(debian|diff)\.(gz|bz2|lzma)$') %]
+ - [% g("%s Patch Tracker", organisation) %]
+ [% END -%]
+ [% END -%]
+[% ELSIF patch_tracking_url && is_source %]
+ [% FOREACH srcfiles %]
+ [% IF filename.match('\.(debian|diff)\.(gz|bz2|lzma)$') %]
+ - [% g("%s Patch Tracker", organisation) %]
+ [% END -%]
+ [% END -%]
+[% END -%]
@@ -98,25 +115,52 @@
[% 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/' _ matches.0 _ '/';
+ mailarchiveurl = 'http://lists.debian.org/' _ uri_escape(matches.0) _ '/';
ELSIF (matches = mail.match('^(.*)@lists\.alioth\.debian\.org$'));
- mailarchiveurl = 'http://lists.alioth.debian.org/pipermail/' _ matches.0 _ '/';
+ mailarchiveurl = 'http://lists.alioth.debian.org/pipermail/' _ uri_escape(matches.0) _ '/';
ELSIF (matches = mail.match('^(.*)@lists\.ubuntu\.com$'));
- mailarchiveurl = 'http://lists.ubuntu.com/archives/' _ matches.0 _ '/';
+ 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');
@@ -124,7 +168,7 @@
IF url %]
[% g('External Resources:') %]
[% END %]
@@ -178,7 +222,7 @@
[% FOREACH tag IN tags %]
[% IF loop.first -%]
[%- END %]
@@ -354,4 +403,4 @@
[%# %]
-[%- PROCESS 'html/foot.tmpl' -%]
+[%- PROCESS 'html/foot.tmpl' page_name=pkg -%]