From 9e1a4a44173201c14557a3c2a1343b7b7a1b281f Mon Sep 17 00:00:00 2001 From: Paul Wise Date: Sun, 13 Nov 2022 11:09:43 +0800 Subject: [PATCH] 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 --- html/bugs.css | 5 +++++ templates/en_US/cgi/bugreport.tx | 20 ++------------------ 2 files changed, 7 insertions(+), 18 deletions(-) diff --git a/html/bugs.css b/html/bugs.css index 7bddb10..59e257a 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 361a3b4..eee77d6 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.


-- 2.39.2