r9019 - /scripts/qa/templates/by_category

dmn at users.alioth.debian.org dmn at users.alioth.debian.org
Thu Nov 8 09:05:49 UTC 2007


Author: dmn
Date: Thu Nov  8 09:05:49 2007
New Revision: 9019

URL: http://svn.debian.org/wsvn/?sc=1&rev=9019
Log:
Use mailto: URLs if Forwarded info for anything not starting with "http"

Modified:
    scripts/qa/templates/by_category

Modified: scripts/qa/templates/by_category
URL: http://svn.debian.org/wsvn/scripts/qa/templates/by_category?rev=9019&op=diff
==============================================================================
--- scripts/qa/templates/by_category (original)
+++ scripts/qa/templates/by_category Thu Nov  8 09:05:49 2007
@@ -16,8 +16,9 @@
         <a class="bts-${data.bts.$pkg.$s.severity}"
             href="http://bugs.debian.org/$s">#$s</a>
         [% IF data.bts.$pkg.$s.forwarded %]
+        [% SET F = data.bts.$pkg.$s.forwarded %]
         <div style="font-size: smaller">
-            <a href="[% data.bts.$pkg.$s.forwarded | html %]">forwarded</a>
+            <a href="[% IF F.match("^http") %][% GET F | html %][% ELSE %]mailto:[% GET F | html %][% END %]">forwarded</a>
         </div>
         [% END %]
         [% IF data.bts.$pkg.$s.keywords.length > 0 %]




More information about the Pkg-perl-cvs-commits mailing list