cosmetic: calendrier evaluations

This commit is contained in:
Emmanuel Viennet 2024-05-17 15:23:29 +02:00
parent d20ada1797
commit 043985bff6
2 changed files with 17 additions and 6 deletions

View File

@ -384,7 +384,7 @@ class JourEval(sco_gen_cal.Jour):
self.parent: "CalendrierEval" = parent self.parent: "CalendrierEval" = parent
def get_html(self) -> str: def get_html(self) -> str:
html: str = "" htmls = []
for e in self.evaluations: for e in self.evaluations:
url: str = url_for( url: str = url_for(
@ -395,14 +395,16 @@ class JourEval(sco_gen_cal.Jour):
title: str = ( title: str = (
e.moduleimpl.module.code or e.moduleimpl.module.abbrev or "éval." e.moduleimpl.module.code or e.moduleimpl.module.abbrev or "éval."
) )
html += f"""<a htmls.append(
f"""<a
href="{url}" href="{url}"
style="{self._get_eval_style(e)}" style="{self._get_eval_style(e)}"
title="{self._get_eval_title(e)}" title="{self._get_eval_title(e)}"
> class="stdlink"
{title}</a><br>""" >{title}</a>"""
)
return html return ", ".join(htmls)
def _get_eval_style(self, e: Evaluation) -> str: def _get_eval_style(self, e: Evaluation) -> str:
color: str = "" color: str = ""

View File

@ -26,6 +26,10 @@
margin-bottom: 12px; margin-bottom: 12px;
} }
.mois {
flex: 1;
}
.mois h3 { .mois h3 {
text-align: center; text-align: center;
} }
@ -65,11 +69,16 @@
.jour>.contenu, .jour>.contenu,
.jour>.nom { .jour>.nom {
text-align: center;
border: 1px solid #d5d5d5; border: 1px solid #d5d5d5;
position: relative; position: relative;
} }
.jour>.contenu a {
padding: 0px 2px;
}
.jour>.nom {
text-align: center;
}
.sem-courante{ .sem-courante{
--couleur : #ee752c; --couleur : #ee752c;
border-left: solid 3px var(--couleur); border-left: solid 3px var(--couleur);