Fix affichage moduleimpl_status

This commit is contained in:
Emmanuel Viennet 2022-10-03 11:07:43 +02:00
parent 50e8f2b4fe
commit ec4aa0e26f
2 changed files with 7 additions and 6 deletions

View File

@ -775,7 +775,7 @@ def _ligne_evaluation(
f"""<a class="redlink" href="{url_for('notes.saisie_notes',
scodoc_dept=g.scodoc_dept, evaluation_id=evaluation.id,
**{'group_ids:list': gr_moyenne["group_id"]})
}"""
}">"""
)
H.append("pas de notes")
if can_edit_notes:
@ -793,14 +793,15 @@ def _evaluation_poids_html(evaluation: Evaluation) -> str:
max_poids = max(ue_poids.values())
if max_poids < scu.NOTES_PRECISION:
return
# style="--max:{max_poids}
H = (
"""<div class="evaluation_poids">"""
+ "\n".join(
[
f"""<div title="poids vers {ue.acronyme}: {poids:g}"><div style="--size:{math.sqrt(poids/max_poids*144)}px;
{'background-color: ' + ue.color + ';' if ue.color else ''}
"></div></div>"""
f"""<div title="poids vers {ue.acronyme}: {poids:g}">
<div style="--size:{math.sqrt(poids/max_poids*144)}px;
{'background-color: ' + ue.color + ';' if ue.color else ''}
"></div>
</div>"""
for ue, poids in (
(UniteEns.query.get(ue_id), poids)
for ue_id, poids in ue_poids.items()

View File

@ -1836,6 +1836,7 @@ tr.mievr td.mievr_tit {
tr.mievr td {
text-align: left;
vertical-align: top;
background-color: white;
}
@ -1864,7 +1865,6 @@ tr.mievr td.mievr_nbnotes {
}
tr td.mievr_grtit {
vertical-align: top;
text-align: right;
font-weight: bold;
}