From 14b31672943891dfad03360ea9b8f525799c7225 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-S=C3=A9bastien=20Caux?= <git@jscaux.org> Date: Wed, 27 Oct 2021 07:40:34 +0200 Subject: [PATCH] Tweak appearance --- .../scipost/templates/scipost/_index_publications.html | 6 +++--- .../scipost/templates/scipost/_index_submissions.html | 6 ++++++ scipost_django/scipost/templates/scipost/bare_base.html | 1 - scipost_django/scipost/templates/scipost/index.html | 1 - 4 files changed, 9 insertions(+), 5 deletions(-) diff --git a/scipost_django/scipost/templates/scipost/_index_publications.html b/scipost_django/scipost/templates/scipost/_index_publications.html index d1e7e2748..ea3ade65c 100644 --- a/scipost_django/scipost/templates/scipost/_index_publications.html +++ b/scipost_django/scipost/templates/scipost/_index_publications.html @@ -13,9 +13,9 @@ </ul> {% if not session_acad_field.journals.active|length > 0 %} - <div class="card m-2"> - <div class="card-header text-center"> - <h2 class="p-2 text-white bg-danger">We are not yet active in<br>{{ session_acad_field }}</h2> + <div class="card m-2 border-2"> + <div class="card-header m-0 p-0"> + <h2 class="m-0 p-4 text-white text-center bg-danger">We are not yet active in<br>{{ session_acad_field }}</h2> </div> <div class="card-body"> <h3>Interested in helping us set things up?</h3> diff --git a/scipost_django/scipost/templates/scipost/_index_submissions.html b/scipost_django/scipost/templates/scipost/_index_submissions.html index 3462e01cf..ec25ace46 100644 --- a/scipost_django/scipost/templates/scipost/_index_submissions.html +++ b/scipost_django/scipost/templates/scipost/_index_submissions.html @@ -1,3 +1,5 @@ +{% load journals_extras %} + <ul class="list-group list-group-flush px-3 mb-3"> {% for submission in submissions %} <li class="list-group-item py-2"> @@ -9,3 +11,7 @@ </li> {% endfor %} </ul> + +{% if session_acad_field.journals.active|length > 0 %} + <p class="mb-3 px-3"><a href="{% url 'submissions:submissions' %}">View all Submissions</a></p> +{% endif %} diff --git a/scipost_django/scipost/templates/scipost/bare_base.html b/scipost_django/scipost/templates/scipost/bare_base.html index c949e0ab9..5379d5f12 100644 --- a/scipost_django/scipost/templates/scipost/bare_base.html +++ b/scipost_django/scipost/templates/scipost/bare_base.html @@ -43,7 +43,6 @@ {% block footer_script %} <script nonce="{{ request.csp_nonce }}"> document.body.addEventListener('htmx:afterSettle', function () { - console.log('session-acad-field-set event') MathJax.Hub.Queue(["Typeset",MathJax.Hub]); }) </script> diff --git a/scipost_django/scipost/templates/scipost/index.html b/scipost_django/scipost/templates/scipost/index.html index 8c08daeb1..07e85742a 100644 --- a/scipost_django/scipost/templates/scipost/index.html +++ b/scipost_django/scipost/templates/scipost/index.html @@ -53,7 +53,6 @@ hx-trigger="load, session-acad-field-set from:body" > </div> - <p class="mb-3 px-3"><a href="{% url 'submissions:submissions' %}">View all Submissions</a></p> </div><!-- End latest submissions --> </div> -- GitLab