]> git.deb.at Git - deb/packages.git/blobdiff - templates/html/show.tmpl
html/show.tmpl: If maintainer is obviously a list, offer link to lists archive
[deb/packages.git] / templates / html / show.tmpl
index 275ccc397ea3d1cafc7a029c2652f3376499c21d..bfd3c7830e06b7cff417b9cc2d4fd054b2ab1053 100644 (file)
 [%- ELSE -%]
   <h3>[% g('Maintainers:') %]</h3>
 [%- END %]
-[%- FOREACH maintainers -%]
+[%- FOREACH maintainers;
+  mailarchiveurl = '';
+  IF (matches = mail.match('^(.*)@lists\.debian\.org$'));
+       mailarchiveurl = 'http://lists.debian.org/' _ matches.0 _ '/';
+  ELSIF (matches = mail.match('^(.*)@lists\.alioth\.debian\.org$'));
+       mailarchiveurl = 'http://lists.alioth.debian.org/pipermail/' _ matches.0 _ '/';
+  END -%]
   [%- '<ul>' IF loop.first -%]
        <li><a href="mailto:[% mail %]">[% name | html %]</a>
-       (<a href="[% ddpo_url _ mail %]" title="[% g("An overview over the maintainer's packages and uploads") %]">[% g('QA Page') %]</a>)
+       (<a href="[% ddpo_url _ mail %]" title="[% g("An overview over the maintainer's packages and uploads") %]">[% g('QA Page') %]</a>
+       [%- IF mailarchiveurl %], <a href="[% mailarchiveurl %]" title="[% g('Archive of the Maintainer Mailinglist') %]">[% g('Mail Archive') %]</a>[% END %])
        </li>
   [%- '</ul>' IF loop.last -%]
 [%- END -%]
    IF url %]
 <h3>[% g('External Resources:') %]</h3>
 <ul>
-<li><a href="[% url %]">[% g('Homepage') %]</a> [[% extract_host(url) %]]</li>
+<li><a href="[% url | uri %]">[% g('Homepage') %]</a> [[% extract_host(url) | html %]]</li>
 </ul>
 [% END %]