From 99b0f23bcab1279432ae6dd7c59aa3d2fde44212 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Thu, 15 Aug 2024 17:06:07 +0200 Subject: [PATCH] minor css fixes --- app/scodoc/html_sco_header.py | 8 ++++---- app/scodoc/sco_archives_formsemestre.py | 2 +- app/scodoc/sco_edit_ue.py | 8 +++++--- app/scodoc/sco_find_etud.py | 2 +- app/scodoc/sco_recapcomplet.py | 2 +- app/scodoc/sco_report.py | 2 +- app/static/css/scodoc97.css | 3 ++- app/templates/formsemestre/menu.j2 | 10 +++++----- 8 files changed, 20 insertions(+), 17 deletions(-) diff --git a/app/scodoc/html_sco_header.py b/app/scodoc/html_sco_header.py index 54e0176b..28d6249b 100644 --- a/app/scodoc/html_sco_header.py +++ b/app/scodoc/html_sco_header.py @@ -134,7 +134,7 @@ def scodoc_top_html_header(page_title="ScoDoc: bienvenue"): def sco_header( # optional args page_title="", # page title - no_side_bar=False, # hide sidebar + no_sidebar=False, # hide sidebar cssstyles=(), # additionals CSS sheets javascripts=(), # additionals JS filenames to load scripts=(), # script to put in page header @@ -154,13 +154,13 @@ def sco_header( params = { "page_title": page_title or sco_version.SCONAME, - "no_side_bar": no_side_bar, + "no_sidebar": no_sidebar, "ScoURL": url_for("scolar.index_html", scodoc_dept=g.scodoc_dept), "encoding": scu.SCO_ENCODING, "titrebandeau_mkup": "" + titrebandeau + "", "authuser": current_user.user_name, } - if no_side_bar: + if no_sidebar: params["margin_left"] = "1em" else: params["margin_left"] = "140px" @@ -217,7 +217,7 @@ def sco_header( {scu.CUSTOM_HTML_HEADER} -{'' if no_side_bar else html_sidebar.sidebar(etudid)} +{'' if no_sidebar else html_sidebar.sidebar(etudid)}
""" ) diff --git a/app/scodoc/sco_archives_formsemestre.py b/app/scodoc/sco_archives_formsemestre.py index f2fbde23..cbcbd201 100644 --- a/app/scodoc/sco_archives_formsemestre.py +++ b/app/scodoc/sco_archives_formsemestre.py @@ -127,7 +127,7 @@ def do_formsemestre_archive( [ html_sco_header.sco_header( page_title=f"Moyennes archivées le {date}", - no_side_bar=True, + no_sidebar=True, ), f'

Valeurs archivées le {date}

', """