From 0d2471ce8daa237d60fb0f5cb4af3c8386f33509 Mon Sep 17 00:00:00 2001 From: ilona Date: Wed, 23 Oct 2024 11:16:48 +0200 Subject: [PATCH 1/2] =?UTF-8?q?Cosm=C3=A9tique:=20variable=20sco-deep-blue?= =?UTF-8?q?,=20liens=20formsemestre=5Fstatus.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/scodoc/sco_formsemestre_status.py | 7 ++++++- app/static/css/scodoc.css | 28 +++++++++++++++++---------- app/static/css/scodoc97.css | 2 +- app/templates/sidebar.j2 | 2 +- app/views/notes.py | 2 +- sco_version.py | 2 +- 6 files changed, 28 insertions(+), 15 deletions(-) diff --git a/app/scodoc/sco_formsemestre_status.py b/app/scodoc/sco_formsemestre_status.py index bb8d33763..784a815d4 100755 --- a/app/scodoc/sco_formsemestre_status.py +++ b/app/scodoc/sco_formsemestre_status.py @@ -1309,6 +1309,11 @@ def formsemestre_tableau_modules( tr_classes += " modimpl_non_conforme" if etat["nb_evals_blocked"] > 0: tr_classes += " modimpl_has_blocked" + classes = "formsemestre_status_link" + if current_user.id == modimpl.responsable_id or current_user.id in ( + u.id for u in modimpl.enseignants + ): + classes += " enseignant" H.append( f""" @@ -1316,7 +1321,7 @@ def formsemestre_tableau_modules( href="{moduleimpl_status_url}" title="{mod_descr}" class="stdlink">{mod.code} {mod.abbrev or mod.titre or ""} + class="{classes}">{mod.abbrev or mod.titre or ""} {mod_nb_inscrits} diff --git a/app/static/css/scodoc.css b/app/static/css/scodoc.css index 19fb76456..5a58302cd 100644 --- a/app/static/css/scodoc.css +++ b/app/static/css/scodoc.css @@ -4,13 +4,14 @@ :root { --sco-content-min-width: 600px; --sco-content-max-width: 1024px; - --sco-color-explication: rgb(10, 58, 140); + --sco-deep-blue: rgb(4, 16, 159); + --sco-color-explication: rgb(4, 16, 159); --sco-color-background: rgb(242, 242, 238); --sco-color-box-bg: rgb(243, 240, 228); - --sco-color-mod-std: #afafc2; - --sco-color-ressources: #f8c844; - --sco-color-saes: #c6ffab; - --sco-color-ues: #0051a9; + --sco-color-mod-std: rgb(175, 175, 194); + --sco-color-ressources: rgb(248, 200, 68); + --sco-color-saes: rgb(198, 255, 171); + --sco-color-ues: rgb(0, 81, 169); } html, @@ -41,7 +42,7 @@ h3 { } body a { - color: rgb(4, 16, 159); + color: var(--sco-deep-blue); } details>summary:first-of-type { @@ -182,7 +183,7 @@ div#gtrcontent { .gtrcontent a, .gtrcontent a:visited { - color: rgb(4, 16, 159); + color: var(--sco-deep-blue); text-decoration: none; } @@ -1083,7 +1084,7 @@ span.linktitresem a:visited { a.stdlink, a.stdlink:visited { - color: blue; + color: var(--sco-deep-blue); text-decoration: underline; } @@ -1532,7 +1533,7 @@ table.notes_evaluation tr td.tdlink a.discretelink:hover { table.notes_evaluation tr td.tdlink a.discretelink, table.notes_evaluation tr td.tdlink a.discretelink:visited { - color: blue; + color: var(--sco-deep-blue); text-decoration: underline; } @@ -1989,7 +1990,8 @@ table.formsemestre_status td.malus a { color: red; } -a.formsemestre_status_link { +a.formsemestre_status_link, +a.formsemestre_status_link:visited { text-decoration: none; color: black; } @@ -1999,6 +2001,12 @@ a.formsemestre_status_link:hover { text-decoration: underline; } +a.formsemestre_status_link.enseignant, +a.formsemestre_status_link.enseignant:visited { + color: var(--sco-deep-blue); +} + + td.formsemestre_status_inscrits { text-align: center; } diff --git a/app/static/css/scodoc97.css b/app/static/css/scodoc97.css index d1300794b..971641217 100644 --- a/app/static/css/scodoc97.css +++ b/app/static/css/scodoc97.css @@ -83,7 +83,7 @@ .scodoc-index a { font-size: 14pt; display: flex; - color: rgb(4, 16, 159); + color: var(--sco-deep-blue); width: 100%; } diff --git a/app/templates/sidebar.j2 b/app/templates/sidebar.j2 index 62e817378..040975d91 100755 --- a/app/templates/sidebar.j2 +++ b/app/templates/sidebar.j2 @@ -114,7 +114,7 @@ {{ sco.SCOVERSION }} {% if DEBUG %} -
DEBUG
+
DEBUG
{% endif %} diff --git a/app/views/notes.py b/app/views/notes.py index 36cd044af..03a4c5310 100644 --- a/app/views/notes.py +++ b/app/views/notes.py @@ -976,7 +976,7 @@ def edit_enseignants_form(moduleimpl_id): allowed_user_names = list(uid2display.values()) H = [ - f"""