From aed7b48facb10baa42b6064c2264c0139075b221 Mon Sep 17 00:00:00 2001 From: ilona Date: Mon, 26 Aug 2024 15:15:12 +0200 Subject: [PATCH 1/2] cosmetic: police menus --- app/static/css/scodoc.css | 1 + app/templates/formsemestre/menu.j2 | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/static/css/scodoc.css b/app/static/css/scodoc.css index 8c72b700d..51bfa1a28 100644 --- a/app/static/css/scodoc.css +++ b/app/static/css/scodoc.css @@ -1696,6 +1696,7 @@ h2.formsemestre, width: 100%; padding-top: 5px; padding-bottom: 10px; + margin-left: 4px; } .formsemestre_page_title table.semtitle td.infos table { diff --git a/app/templates/formsemestre/menu.j2 b/app/templates/formsemestre/menu.j2 index a21e923bb..150521c61 100644 --- a/app/templates/formsemestre/menu.j2 +++ b/app/templates/formsemestre/menu.j2 @@ -103,7 +103,7 @@ border: none; text-transform: none; font-weight: normal; - font-size: 12px; + font-size: 1rem; padding: 4px 8px; border-radius: 4px; @@ -186,6 +186,7 @@ .sco-formsemestre-menu{ margin-top: 4px; + margin-right: 16px; } } @@ -340,7 +341,7 @@ } .sco-formsemestre-menu .dropdown-content .sco-formsemestre-menu-item { - padding: 0.25rem 0.5rem; + padding: 0.25rem 0.1rem; list-style: none; width: 100%; display: block; From ea7ef4f1a52d709851148cd5ecfa7d6e4351602b Mon Sep 17 00:00:00 2001 From: ilona Date: Mon, 2 Sep 2024 07:34:04 +0200 Subject: [PATCH 2/2] =?UTF-8?q?Am=C3=A9liore=20l=C3=A8g=C3=A8rement=20pr?= =?UTF-8?q?=C3=A9sentation=20page=20edition=20formation.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 2 +- app/__init__.py | 4 +- app/scodoc/sco_edit_ue.py | 77 ++++++++++++++++++++++--------------- app/static/css/ue_table.css | 4 ++ tools/debian/control | 2 +- 5 files changed, 52 insertions(+), 37 deletions(-) diff --git a/.gitignore b/.gitignore index 22d1be8bc..ec245bea3 100644 --- a/.gitignore +++ b/.gitignore @@ -175,7 +175,7 @@ Thumbs.db copy # Symlinks static ScoDoc -app/static/links/[0-9]*.*[0-9] +app/static/links/[0-9]*.* # Essais locaux xp/ diff --git a/app/__init__.py b/app/__init__.py index aab9ef3f5..b3944de7c 100755 --- a/app/__init__.py +++ b/app/__init__.py @@ -255,7 +255,7 @@ class ScoSMTPHandler(SMTPHandler): return subject -class ReverseProxied(object): +class ReverseProxied: """Adaptateur wsgi qui nous permet d'avoir toutes les URL calculées en https sauf quand on est en dev. La variable HTTP_X_FORWARDED_PROTO est positionnée par notre config nginx""" @@ -649,8 +649,6 @@ def scodoc_flash_status_messages(): def critical_error(msg): """Handle a critical error: flush all caches, display message to the user""" - import app.scodoc.sco_utils as scu - log(f"\n*** CRITICAL ERROR: {msg}") subject = f"CRITICAL ERROR: {msg}".strip()[:68] send_scodoc_alarm(subject, msg) diff --git a/app/scodoc/sco_edit_ue.py b/app/scodoc/sco_edit_ue.py index 48e1c90ac..40989539e 100644 --- a/app/scodoc/sco_edit_ue.py +++ b/app/scodoc/sco_edit_ue.py @@ -958,7 +958,10 @@ du programme" (menu "Semestre") si vous avez un semestre en cours); """ ) - H.append("