Update opolka/ScoDoc from ScoDoc/ScoDoc #2

Merged
opolka merged 1272 commits from ScoDoc/ScoDoc:master into master 2024-05-27 09:11:04 +02:00
2 changed files with 17 additions and 6 deletions
Showing only changes of commit 043985bff6 - Show all commits

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