From 043985bff6fdaa4bb880e64dfe5dc830bfc9f848 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Fri, 17 May 2024 15:23:29 +0200 Subject: [PATCH] cosmetic: calendrier evaluations --- app/scodoc/sco_evaluations.py | 12 +++++++----- app/templates/calendrier.j2 | 11 ++++++++++- 2 files changed, 17 insertions(+), 6 deletions(-) diff --git a/app/scodoc/sco_evaluations.py b/app/scodoc/sco_evaluations.py index ee11aa6c..49a0716f 100644 --- a/app/scodoc/sco_evaluations.py +++ b/app/scodoc/sco_evaluations.py @@ -384,7 +384,7 @@ class JourEval(sco_gen_cal.Jour): self.parent: "CalendrierEval" = parent def get_html(self) -> str: - html: str = "" + htmls = [] for e in self.evaluations: url: str = url_for( @@ -395,14 +395,16 @@ class JourEval(sco_gen_cal.Jour): title: str = ( e.moduleimpl.module.code or e.moduleimpl.module.abbrev or "éval." ) - html += f""" - {title}
""" + class="stdlink" + >{title}""" + ) - return html + return ", ".join(htmls) def _get_eval_style(self, e: Evaluation) -> str: color: str = "" diff --git a/app/templates/calendrier.j2 b/app/templates/calendrier.j2 index ce13a4f8..2149a786 100644 --- a/app/templates/calendrier.j2 +++ b/app/templates/calendrier.j2 @@ -26,6 +26,10 @@ margin-bottom: 12px; } + .mois { + flex: 1; + } + .mois h3 { text-align: center; } @@ -65,11 +69,16 @@ .jour>.contenu, .jour>.nom { - text-align: center; border: 1px solid #d5d5d5; position: relative; } + .jour>.contenu a { + padding: 0px 2px; + } + .jour>.nom { + text-align: center; + } .sem-courante{ --couleur : #ee752c; border-left: solid 3px var(--couleur);