From: Paul Wise Date: Sun, 13 Nov 2022 03:09:43 +0000 (+0800) Subject: Use a checkbox and CSS to show info messages instead of JavaScript X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=9e1a4a44173201c14557a3c2a1343b7b7a1b281f;p=debbugs.git Use a checkbox and CSS to show info messages instead of JavaScript This works in browsers where users have disabled JavaScript, such as the Tor Browser in the Security Level called Safest. Obsoletes: https://salsa.debian.org/debbugs-team/debbugs/-/merge_requests/9 --- diff --git a/html/bugs.css b/html/bugs.css index 7bddb101..59e257a8 100644 --- a/html/bugs.css +++ b/html/bugs.css @@ -148,6 +148,11 @@ pre.mime { color: #797979; } +/* Show info messages when uselessmessages is checked */ +#uselessmessages:checked ~ .infmessage { + display: block; +} + /* This must be separate from the other CSS to make the showing of unimportant messages work in bugreport.cgi. */ .infmessage { display: none; } diff --git a/templates/en_US/cgi/bugreport.tx b/templates/en_US/cgi/bugreport.tx index 361a3b4b..eee77d6f 100644 --- a/templates/en_US/cgi/bugreport.tx +++ b/templates/en_US/cgi/bugreport.tx @@ -1,20 +1,5 @@ <: include "html/pre_title.tx" :>#<: $bug.id :> - <: $bug.subject :> - <: $config.project :> <: $config.bug :> report logs<: include "html/post_title.tx" :> -
<: $config.project :> <: $config.bug :> report logs
@@ -47,9 +32,8 @@ to this <: $config.bug :>. : } <: raw($log) :> - + +

Send a report that this bug log contains spam.