From: Frank Lichtenheld Date: Mon, 10 Dec 2007 18:16:51 +0000 (+0100) Subject: html/show.tmpl: If maintainer is obviously a list, offer link to lists archive X-Git-Url: https://git.deb.at/w?a=commitdiff_plain;h=dbea528173f5bc340a5e6cbc59957f8330a50b34;p=deb%2Fpackages.git html/show.tmpl: If maintainer is obviously a list, offer link to lists archive Currently this works for lists.debian.org and lists.alioth.debian.org, but could easily be extended for others. --- diff --git a/templates/html/show.tmpl b/templates/html/show.tmpl index d68b02c..bfd3c78 100644 --- a/templates/html/show.tmpl +++ b/templates/html/show.tmpl @@ -108,10 +108,17 @@ [%- ELSE -%]

[% g('Maintainers:') %]

[%- 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 -%] [%- '' IF loop.last -%] [%- END -%]