]> git.donarmstrong.com Git - debbugs.git/commitdiff
Don't have reply/subscribe links for archived bugs (closes: #511864)
authorDon Armstrong <don@donarmstrong.com>
Thu, 19 Feb 2009 05:12:32 +0000 (21:12 -0800)
committerDon Armstrong <don@donarmstrong.com>
Thu, 19 Feb 2009 05:12:32 +0000 (21:12 -0800)
debian/changelog
templates/en_US/cgi/bugreport.tmpl

index 4ecc815e82ca3ff3d6fb531c5796fb73d26b08f7..3b111f10ef5c00de61d21a3b8b7265a340d1fe0e 100644 (file)
@@ -244,6 +244,7 @@ debbugs (2.4.2) UNRELEASED; urgency=low
     (closes: #514183)
   * Calculate last modified using summary as well as log (closes: #515063)
   * Ditch 'as before' (closes: #514677)
+  * Don't have reply/subscribe links for archived bugs (closes: #511864)
 
   
  -- Colin Watson <cjwatson@debian.org>  Fri, 20 Jun 2003 18:57:25 +0100
index cc8d57ddd5282c71fab93b91cb3ccec7e8b293b4..070005abdd1e40517e1449e4269ff029054c993b 100644 (file)
@@ -27,9 +27,11 @@ function toggle_infmessages()
      $output .= sprintf qq(<p><a href="%s">Full log</a></p>),html_escape(bug_links(bug=>$bug_num,links_only=>1));
   }
   else {
-     $output .=  qq(<p><a href="mailto:$bug_num\@$config{email_domain}">Reply</a> ).
-         qq(or <a href="mailto:$bug_num-subscribe\@$config{email_domain}">subscribe</a> ).
+     if (not $status{archived}) {
+       $output .=  qq(<p><a href="mailto:$bug_num\@$config{email_domain}">Reply</a> ).
+          qq(or <a href="mailto:$bug_num-subscribe\@$config{email_domain}">subscribe</a> ).
               qq(to this bug.</p>\n);
+     }
      $output .=  qq(<p><a href="javascript:toggle_infmessages();">Toggle useless messages</a></p>);
      $output .= sprintf qq(<div class="msgreceived"><p>View this report as an <a href="%s">mbox folder</a>, ).
          qq(<a href="%s">status mbox</a>, <a href="%s">maintainer mbox</a></p></div>\n),