File tree Expand file tree Collapse file tree 4 files changed +55
-1
lines changed Expand file tree Collapse file tree 4 files changed +55
-1
lines changed Original file line number Diff line number Diff line change @@ -416,6 +416,18 @@ msgstr "Luettelo palautetägeistä"
416
416
msgid "Unable to fetch student's response."
417
417
msgstr "Opiskelijan vastauksen hakeminen ei onnistunut."
418
418
419
+ #: feedback/templates/manage/_conversations_as_list.html
420
+ msgid ""
421
+ "Turns inactive feedback tags invisible. The feedback tag buttons reappear "
422
+ "when hovering over the tag panel."
423
+ msgstr ""
424
+ "Muuttaa epäaktiiviset palautetägit näkymättömiksi. Palautetägipainikkeet "
425
+ "näkyvät, kun hiiri on tägikentän päällä."
426
+
427
+ #: feedback/templates/manage/_conversations_as_list.html
428
+ msgid "Zen mode"
429
+ msgstr "Zen-tila"
430
+
419
431
#: feedback/templates/manage/_conversations_as_list.html
420
432
msgid "No feedback shown as there are errors in the filter form"
421
433
msgstr "Palautteita ei näytetä, sillä lomakkeessa on virhe"
Original file line number Diff line number Diff line change 7
7
margin-right : 0.4em ;
8
8
}
9
9
10
+ # pagination-and-zen {
11
+ display : flex;
12
+ justify-content : space-between;
13
+ align-items : flex-end;
14
+ }
15
+ # zen-mode {
16
+ display : none;
17
+ flex-shrink : 0 ;
18
+ margin-bottom : 10px ;
19
+ }
10
20
11
21
/* Filter panel */
12
22
@@ -344,6 +354,17 @@ input[type="checkbox"].combosearch + label {
344
354
}
345
355
}
346
356
357
+ @media (hover : hover) {
358
+ # zen-mode {
359
+ display : block;
360
+ }
361
+ body : has ( # zen-mode-cb : checked ) .conversation-tag-panel : not (: hover ): not (: has ( * : focus-visible )) > .colortag : not (.colortag-active ) {
362
+ background-color : white;
363
+ color : white;
364
+ border : var (--colortag-inactive-color ) 1px solid;
365
+ }
366
+ }
367
+
347
368
/* Feedback exercise/chapter heading */
348
369
.conversation-panel > .panel-heading {
349
370
padding : 0 ;
Original file line number Diff line number Diff line change @@ -545,6 +545,15 @@ function toggleShowAll(event) {
545
545
546
546
547
547
window . addEventListener ( "load" , ( event ) => {
548
+
549
+ /* Set up zen mode checkbox (persist state on reload) */
550
+ if ( localStorage . getItem ( 'zenMode' ) == "true" ) {
551
+ document . getElementById ( "zen-mode-cb" ) . checked = true ;
552
+ }
553
+ document . getElementById ( "zen-mode-cb" ) . addEventListener ( 'change' , ( e ) => {
554
+ localStorage . setItem ( 'zenMode' , e . target . checked ) ;
555
+ } ) ;
556
+
548
557
/* Set up showall buttons */
549
558
const showallDivs = document . getElementsByClassName ( "toggle-showall" ) ;
550
559
for ( let i = 0 ; i < showallDivs . length ; i ++ ) {
Original file line number Diff line number Diff line change 8
8
{% endcomment %}
9
9
10
10
{% include "_errors_box.html" %}
11
- {% include "_pagination.html" %}
11
+ < div id ="pagination-and-zen ">
12
+ {% include "_pagination.html" %}
13
+
14
+ < div id ="zen-mode "
15
+ data-toggle ="tooltip "
16
+ title ="{% translate 'Turns inactive feedback tags invisible. The feedback tag buttons reappear when hovering over the tag panel.' %} "
17
+ >
18
+ < input type ="checkbox " id ="zen-mode-cb " name ="zen-mode-cb ">
19
+ < label for ="zen-mode-cb ">
20
+ {% translate 'Zen mode' %}
21
+ </ label >
22
+ </ div >
23
+ </ div >
12
24
13
25
{% for conv in conversations %}
14
26
< div class ="panel panel-default feedback-response-panel ">
You can’t perform that action at this time.
0 commit comments