From ae72a2e00fa05ff9ab0a03a470c849f1f211c148 Mon Sep 17 00:00:00 2001 From: imperosol Date: Wed, 22 Apr 2026 14:38:43 +0200 Subject: [PATCH 1/2] improve SAS picture tools style --- sas/static/sas/css/picture.scss | 95 ++++++++++++++++----------------- sas/templates/sas/picture.jinja | 15 ++++-- 2 files changed, 55 insertions(+), 55 deletions(-) diff --git a/sas/static/sas/css/picture.scss b/sas/static/sas/css/picture.scss index f9444051..03103a25 100644 --- a/sas/static/sas/css/picture.scss +++ b/sas/static/sas/css/picture.scss @@ -134,7 +134,7 @@ --loading-size: 20px } - @media (max-width: 1000px) { + @media (min-width: 700px) and (max-width: 1000px) { max-width: calc(50% - 5px); } @@ -201,75 +201,70 @@ } } -.general { +#pict .general { display: flex; flex-direction: row; - gap: 20px; + gap: 3em; + justify-content: space-evenly; @media (max-width: 1000px) { + gap: 1em; flex-direction: column; } - >.infos { + .infos, .tools { + flex: 1; display: flex; flex-direction: column; - width: 50%; - - >div>div { - display: flex; - flex-direction: row; - justify-content: space-between; - - >*:first-child { - min-width: 150px; - - @media (max-width: 1000px) { - min-width: auto; - } - } + gap: .5em; + @media (min-width: 700px) { + max-width: 350px; } } + .infos > div, .tools > div > div { + display: flex; + flex-direction: column; + gap: .35em; + } + + .tools > div, >.infos >div>div { + display: flex; + flex-direction: row; + justify-content: space-between; + } >.tools { - display: flex; - flex-direction: column; - width: 50%; + flex: 1; - >div { - display: flex; - flex-direction: row; - justify-content: space-between; + >div>div { + >a.btn { + background-color: $primary-neutral-light-color; + display: flex; + justify-content: center; + align-items: center; + padding: 0; + color: black; + width: 40px; + height: 40px; + font-size: 20px; - >div { - >a.button { - box-sizing: border-box; - background-color: $primary-neutral-light-color; - display: flex; - justify-content: center; - align-items: center; - padding: 10px; - color: black; - border-radius: 5px; - width: 40px; - height: 40px; - - &:hover { - background-color: #aaa; - } + &:hover { + background-color: #aaa; } + } - >a.text.danger { - color: red; + >a.text.danger { + color: red; - &:hover { - color: darkred; - } + &:hover { + color: darkred; } + } - &.buttons { - display: flex; - gap: 5px; - } + &.buttons { + display: flex; + flex-direction: row; + gap: 5px; } } } diff --git a/sas/templates/sas/picture.jinja b/sas/templates/sas/picture.jinja index b37f232d..5113a3f9 100644 --- a/sas/templates/sas/picture.jinja +++ b/sas/templates/sas/picture.jinja @@ -118,15 +118,20 @@ {% trans %}HD version{% endtrans %} -
- + {% trans %}Ask for removal{% endtrans %}
- - - + + + + +
From 52117b5a24680806edb86b29c145bafe16350052 Mon Sep 17 00:00:00 2001 From: imperosol Date: Wed, 22 Apr 2026 14:48:42 +0200 Subject: [PATCH 2/2] add og tags to sas main page MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Quand quelqu'un qui n'a pas le droit tente d'accéder au SAS, il reçoit un HTTP 200 au lieu d'un 403. C'est pas forcément le plus pertinent, mais autant en profiter pour mettre les tags og. --- sas/templates/sas/main.jinja | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/sas/templates/sas/main.jinja b/sas/templates/sas/main.jinja index 52824af7..c13a7de1 100644 --- a/sas/templates/sas/main.jinja +++ b/sas/templates/sas/main.jinja @@ -12,6 +12,17 @@ {% trans %}See all the photos taken during events organised by the AE.{% endtrans %} {%- endblock %} +{% block metatags %} + + + + + +{% endblock %} + {% set is_sas_admin = user.is_root or user.is_in_group(pk=settings.SITH_GROUP_SAS_ADMIN_ID) %} {% from "sas/macros.jinja" import display_album %}