1
0
forked from ScoDoc/ScoDoc

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

View File

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