X-Git-Url: https://git.deb.at/?a=blobdiff_plain;f=templates%2Fhtml%2Fshow.tmpl;h=b1098e7999a431525fe39be309cccb9c7b8ab382;hb=b9f1ee37ac17e618a6f4ec774823bc551a952839;hp=8f76bb275317586cd306d06024214b4c663e41ee;hpb=3c396ed67e80cc413303725209ebcfe7b3e36554;p=deb%2Fpackages.git diff --git a/templates/html/show.tmpl b/templates/html/show.tmpl index 8f76bb2..b1098e7 100644 --- a/templates/html/show.tmpl +++ b/templates/html/show.tmpl @@ -98,12 +98,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) _ '/'; @@ -112,11 +107,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.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/$src.pkg/+filebug", + "https://answers.launchpad.net/ubuntu/+source/$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.last; + END -%] +

[% g('It should generally not be necessary for users to contact the original maintainer.') %]

[%- END -%] [% url = page.get_newest('url'); @@ -359,4 +386,4 @@ [%# %] -[%- PROCESS 'html/foot.tmpl' -%] +[%- PROCESS 'html/foot.tmpl' page_name=pkg -%]