1
0
forked from ScoDoc/ScoDoc

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
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"""<a
htmls.append(
f"""<a
href="{url}"
style="{self._get_eval_style(e)}"
title="{self._get_eval_title(e)}"
>
{title}</a><br>"""
class="stdlink"
>{title}</a>"""
)
return html
return ", ".join(htmls)
def _get_eval_style(self, e: Evaluation) -> str:
color: str = ""

View File

@ -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);