]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
firewall.cgi: Fix policy colours for rules
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 7 Aug 2024 14:24:48 +0000 (16:24 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 7 Aug 2024 14:24:48 +0000 (16:24 +0200)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
html/cgi-bin/firewall.cgi

index 139237ecc8c0b3a952df1f4b38ddd4f74f8ed99f..d5f4e3bf8cfc36268329d694f60802a068c0a5bb 100644 (file)
@@ -2604,19 +2604,19 @@ END
                        if ($$hash{$key}[0] eq 'ACCEPT'){
                                $ruletype='A';
                                $tooltip='ACCEPT';
-                               $rulecolor=$color{'color17'};
+                               $rulecolor="policy is-allowed";
                        }elsif($$hash{$key}[0] eq 'DROP'){
                                $ruletype='D';
                                $tooltip='DROP';
-                               $rulecolor=$color{'color25'};
+                               $rulecolor="policy is-blocked";
                        }elsif($$hash{$key}[0] eq 'REJECT'){
                                $ruletype='R';
                                $tooltip='REJECT';
-                               $rulecolor=$color{'color16'};
+                               $rulecolor="policy is-rejected";
                        }
 
                        print <<END;
-                                       <td bgcolor='$rulecolor' align='center' width='2%'>
+                                       <td class='$rulecolor' width='2%'>
                                                <span title='$tooltip'>&nbsp;&nbsp;</span>
                                        </td>
 END