From 1d3c968e0a74481d60013652de74e7daa195ea2b Mon Sep 17 00:00:00 2001 From: Jorran de Wit <jorrandewit@outlook.com> Date: Fri, 21 Dec 2018 09:52:29 +0100 Subject: [PATCH] Update COI cron --- conflicts/management/commands/update_coi_via_arxiv.py | 1 + scipost/static/scipost/assets/css/_notifications.scss | 2 +- .../partials/scipost/notification_center_modal.html | 5 +++-- scipost/templates/scipost/PlanSciPost.html | 2 +- scipost/templates/scipost/index_sidebar_2.html | 8 ++++---- 5 files changed, 10 insertions(+), 8 deletions(-) diff --git a/conflicts/management/commands/update_coi_via_arxiv.py b/conflicts/management/commands/update_coi_via_arxiv.py index 4e748e2ce..6fa3051cb 100644 --- a/conflicts/management/commands/update_coi_via_arxiv.py +++ b/conflicts/management/commands/update_coi_via_arxiv.py @@ -45,4 +45,5 @@ class Command(BaseCommand): Q(last_name__in=author_str_list)).distinct() n_new_conflicts += caller.compare(author_profiles, fellow_profiles, submission=sub) + Submission.objects.filter(id=sub).update(needs_conflicts_update=False) return n_new_conflicts diff --git a/scipost/static/scipost/assets/css/_notifications.scss b/scipost/static/scipost/assets/css/_notifications.scss index facb75880..038594208 100644 --- a/scipost/static/scipost/assets/css/_notifications.scss +++ b/scipost/static/scipost/assets/css/_notifications.scss @@ -183,7 +183,7 @@ .notification-center { .links li { - padding: 0.25rem 0; + padding: 0.5rem 0; } } diff --git a/scipost/templates/partials/scipost/notification_center_modal.html b/scipost/templates/partials/scipost/notification_center_modal.html index 597f97759..7b156971a 100644 --- a/scipost/templates/partials/scipost/notification_center_modal.html +++ b/scipost/templates/partials/scipost/notification_center_modal.html @@ -4,11 +4,12 @@ <div class="modal notification-center" id="notification_center" tabindex="-1" role="dialog" aria-labelledby="notification_center" aria-hidden="true"> <div class="modal-dialog" role="document"> <div class="modal-content"> - <div class="modal-header"> + <div class="modal-header border-0 pt-3"> {% if request.user.contributor %} <h4 class="modal-title">{{ request.user.contributor.get_title_display }} {{ request.user.first_name }} {{ request.user.last_name }}</h4> + {% else %} + <h4 class="modal-title">{{ request.user }}</h4> {% endif %} - <!-- <h5 class="modal-title" id="exampleModalLongTitle">Modal title</h5> --> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button> diff --git a/scipost/templates/scipost/PlanSciPost.html b/scipost/templates/scipost/PlanSciPost.html index 3b9704f6e..ab8b69f92 100644 --- a/scipost/templates/scipost/PlanSciPost.html +++ b/scipost/templates/scipost/PlanSciPost.html @@ -37,7 +37,7 @@ <p class="ml-2 mr-2"> We are ready to launch operations in other fields; for any given field, we require that two simple preconditions (triggers) be met: </p> - <div class="card-deck"> + <div class="card-deck mb-4"> <div class="card"> <div class="card-header"><strong>Academic involvement</strong></div> <div class="card-body"> diff --git a/scipost/templates/scipost/index_sidebar_2.html b/scipost/templates/scipost/index_sidebar_2.html index 6b368e9b6..1e93aac45 100644 --- a/scipost/templates/scipost/index_sidebar_2.html +++ b/scipost/templates/scipost/index_sidebar_2.html @@ -14,7 +14,7 @@ {% if not user.is_authenticated %} <!-- Register --> - <div class="p-3 border bg-light" id="register"> + <div id="register"> <h2>Register</h2> <p class="mb-1">Professional scientists (PhD students and above) can become Contributors to SciPost by filling the <a href="{% url 'scipost:register' %}">registration form</a>.</p> </div><!-- End Register --> @@ -23,7 +23,7 @@ {% endif %} <!-- News --> -<div class="p-3 border bg-light" id="news2"> +<div id="news2"> <h2 class="title"> News <small><a href="{% url 'scipost:feeds' %}"><i class="fa fa-rss"></i></a></small> @@ -49,7 +49,7 @@ <hr class="lg"> <!-- Sponsors --> -<div class="p-3 border bg-light" id="sponsors"> +<div id="sponsors"> <h2>Sponsors</h2> <p> @@ -74,7 +74,7 @@ We invite <a href="{% url 'organizations:organizations' %}">organizations benefi <hr class="lg"> <!-- Summarized --> -<div class="p-3 border bg-light" id="summarized"> +<div id="summarized"> <h2 class="title"><a href="{% url 'journals:journals' %}" class="text-black">Journals</a></h2> <p> SciPost publishes a portfolio of high-quality two-way open access scientific journals. -- GitLab