Souligne UE capitalisées dans tables recap.

This commit is contained in:
Emmanuel Viennet 2023-02-22 21:41:58 +01:00
parent 7572ab3b6d
commit cf7a666374
3 changed files with 11 additions and 7 deletions

View File

@ -3311,6 +3311,7 @@ td.ue_cmp {
td.ue_capitalized,
.ue_cap {
text-decoration: underline;
text-decoration-thickness: 3px;
}
h3.sfv {
@ -4263,7 +4264,7 @@ table.table_recap td.moy_ue_warning {
color: rgb(255, 0, 0);
}
table.table_recap td.col_ues_validables {
table.table_recap td.cap table.table_recap td.col_ues_validables {
white-space: nowrap;
font-style: normal !important;
}

View File

@ -705,22 +705,25 @@ class RowRecap(tb.Row):
] = f"UEs du S{formsemestre.semestre_id} {formsemestre.annee_scolaire()}"
col_id = f"moy_ue_{ue.id}"
val = ue_status["moy"]
note_class = ""
note_classes = []
if isinstance(val, float):
if val < table.barre_moy:
note_class = "moy_inf"
note_classes = ["moy_inf"]
elif val >= table.barre_valid_ue:
note_class = "moy_ue_valid"
note_classes = ["moy_ue_valid"]
self.nb_ues_validables += 1
if val < table.barre_warning_ue:
note_class = "moy_ue_warning" # notes très basses
note_classes = ["moy_ue_warning"] # notes très basses
self.nb_ues_warning += 1
if ue_status["is_capitalized"]:
note_classes.append("ue_capitalized")
self.add_cell(
col_id,
ue.acronyme,
table.fmt_note(val),
group=col_group or f"col_ue_{ue.id}",
classes=[note_class],
classes=note_classes,
column_classes={f"col_ue_{ue.id}", "col_moy_ue", "col_ue"},
)
table.foot_title_row.cells[col_id].target_attrs[

View File

@ -1,7 +1,7 @@
# -*- mode: python -*-
# -*- coding: utf-8 -*-
SCOVERSION = "9.4.48"
SCOVERSION = "9.4.49"
SCONAME = "ScoDoc"