File tree Expand file tree Collapse file tree 3 files changed +12
-2
lines changed Expand file tree Collapse file tree 3 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -615,7 +615,7 @@ public function discussion_template($d, $forumtype) {
615
615
$ revealed = "" ;
616
616
if ($ d ->revealed ) {
617
617
$ nonanonymous = get_string ('nonanonymous ' , 'mod_hsuforum ' );
618
- $ revealed = '<span class="label label -danger"> ' .$ nonanonymous .'</span> ' ;
618
+ $ revealed = '<span class="label bg -danger danger-label "> ' .$ nonanonymous .'</span> ' ;
619
619
}
620
620
621
621
$ arialabeldiscussion = get_string ('discussionforum ' , 'hsuforum ' , $ d ->subject );
@@ -799,7 +799,7 @@ public function post_template($p) {
799
799
$ revealed = "" ;
800
800
if ($ p ->revealed ) {
801
801
$ nonanonymous = get_string ('nonanonymous ' , 'mod_hsuforum ' );
802
- $ revealed = '<span class="label label -danger"> ' .$ nonanonymous .'</span> ' ;
802
+ $ revealed = '<span class="label bg -danger danger-label "> ' .$ nonanonymous .'</span> ' ;
803
803
}
804
804
805
805
return <<<HTML
Original file line number Diff line number Diff line change 72
72
$ PAGE ->set_activity_record ($ instance );
73
73
$ PAGE ->set_context ($ context );
74
74
75
+ // Overriding the bfcache behavior to prevent the page from being cached and disabling the submit buttons.
76
+ $ PAGE ->requires ->js_init_code ('window.addEventListener("unload", function(event) {}); ' );
77
+
75
78
$ router = new router ();
76
79
$ router ->add_controller (new posters_controller ());
77
80
$ router ->add_controller (new flag_controller ());
Original file line number Diff line number Diff line change @@ -1065,3 +1065,10 @@ li.activity.modtype_hsuforum .activityiconcontainer,
1065
1065
.modchoosercontainer div [data-internal = "hsuforum" ] .modicon_hsuforum {
1066
1066
filter : invert (64% ) sepia (56% ) saturate (361% ) hue-rotate (41deg ) brightness (98% ) contrast (93% );
1067
1067
}
1068
+
1069
+ .hsuforum-post-body .danger-label ,
1070
+ .hsuforum-thread-author .danger-label {
1071
+ color : white;
1072
+ padding : 0 0.5em ;
1073
+ border-radius : 0.5rem ;
1074
+ }
You can’t perform that action at this time.
0 commit comments