]> git.donarmstrong.com Git - debbugs.git/commitdiff
make bug report operations inline
authorDon Armstrong <don@donarmstrong.com>
Fri, 2 Feb 2018 00:56:49 +0000 (16:56 -0800)
committerDon Armstrong <don@donarmstrong.com>
Fri, 2 Feb 2018 00:56:49 +0000 (16:56 -0800)
templates/en_US/cgi/bugreport.tx

index d7f5141bb64f11e31f5f8d0a0852331afe20ffdb..21f7c4eaff24235e53c688a6341ebfe44cb2b5a4 100644 (file)
@@ -23,24 +23,26 @@ function toggle_infmessages()
 <div class="versiongraph"><: raw($version_graph) :></div>
 <: include "cgi/bugreport_pkginfo.tx" :>
 <: include "cgi/bugreport_buginfo.tx" :>
+<div class="bugreport_operations">
 : if looks_like_number($msg) {
-<p><a href="<: bug_links(bug => $bug_num, links_only => 1) :>">Full log</a></p>
+    <span><a href="<: bug_links(bug => $bug_num, links_only => 1) :>">Full log</a></span>
 : } else {
 : if ! $status.archived {
-<p><a href="mailto:<: $bug_num :>@<: $config.email_domain :>">Reply</a>
+<span><a href="mailto:<: $bug_num :>@<: $config.email_domain :>">Reply</a>
 or <a href="mailto:<: $bug_num :>-subscribe@<: $config.email_domain :>">subscribe</a>
-to this bug.</p>
+to this <: $config.bug :>.</span>
 : }
-<script>
- document.write("<p><a href=\"javascript:toggle_infmessages();\">Toggle useless messages</a></p>")
-</script>
-<div class="msgreceived"><p>View this report as an
+<span>View this <: $config.bug :> as an
 <a href="<: bug_links("bug",$bug_num,links_only=>1,options=>{mbox=>"yes"}) :>">mbox</a>,
 <a href="<: bug_links("bug",$bug_num,links_only=>1,options=>{mbox=>"yes",mboxstatus => "yes"}) :>">status mbox</a>, or
 <a href="<: bug_links("bug",$bug_num,links_only=>1,options=>{mbox=>"yes",mboxmaint => "yes"}) :>">maintainer mbox</a>
-</p></div>
+</span>
+</div>
 : }
 <: raw($log) :>
+<script>
+ document.write("<span class=\"uselessmessages\"><a href=\"javascript:toggle_infmessages();\">Toggle useless messages</a></span>")
+</script>
 <hr>
 <p class="msgreceived">Send a report that <a href="<: $config.cgi_domain :>/bugspam.cgi?bug=<: $bug_num :>">this bug log contains spam</a>.</p>
 <hr>