Table recap: liens vers évaluations

This commit is contained in:
Emmanuel Viennet 2022-04-09 14:20:56 +02:00
parent a9f0fcdd6d
commit 705aa54d77
2 changed files with 15 additions and 1 deletions

View File

@ -680,7 +680,7 @@ class ResultatsSemestre(ResultatsCache):
row["_moy_gen_class"] = "col_moy_gen" row["_moy_gen_class"] = "col_moy_gen"
# titre de la ligne: # titre de la ligne:
row["prenom"] = row["nom_short"] = ( row["prenom"] = row["nom_short"] = (
row.get(f"_title", "") or bottom_line.capitalize() row.get("_title", "") or bottom_line.capitalize()
) )
row["_tr_class"] = bottom_line.lower() + ( row["_tr_class"] = bottom_line.lower() + (
(" " + row["_tr_class"]) if "_tr_class" in row else "" (" " + row["_tr_class"]) if "_tr_class" in row else ""
@ -894,3 +894,8 @@ class ResultatsSemestre(ResultatsCache):
bottom_infos["min"][cid] = "0" bottom_infos["min"][cid] = "0"
bottom_infos["max"][cid] = scu.fmt_note(e.note_max) bottom_infos["max"][cid] = scu.fmt_note(e.note_max)
bottom_infos["descr_evaluation"][cid] = e.description or "" bottom_infos["descr_evaluation"][cid] = e.description or ""
bottom_infos["descr_evaluation"][f"_{cid}_target"] = url_for(
"notes.evaluation_listenotes",
scodoc_dept=g.scodoc_dept,
evaluation_id=e.id,
)

View File

@ -3730,6 +3730,15 @@ table.table_recap tr.descr_evaluation {
color: rgb(4, 16, 159); color: rgb(4, 16, 159);
} }
table.table_recap tr.descr_evaluation a {
color: rgb(4, 16, 159);
text-decoration: none;
}
table.table_recap tr.descr_evaluation a:hover {
color: red;
}
table.table_recap tr.descr_evaluation { table.table_recap tr.descr_evaluation {
vertical-align: top; vertical-align: top;
} }