From b4d19a4ab03d78a9e76cb7f42fe8b7439f1772ff Mon Sep 17 00:00:00 2001 From: Jorran de Wit <jorrandewit@outlook.com> Date: Sun, 22 Oct 2017 14:16:35 +0200 Subject: [PATCH] Slightly more friendly notifications --- scipost/static/scipost/assets/css/_alert.scss | 4 ++++ submissions/views.py | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/scipost/static/scipost/assets/css/_alert.scss b/scipost/static/scipost/assets/css/_alert.scss index 6b7a7e210..0e046a8f5 100644 --- a/scipost/static/scipost/assets/css/_alert.scss +++ b/scipost/static/scipost/assets/css/_alert.scss @@ -14,6 +14,10 @@ &:last-child { margin-bottom: 1rem; } + + p:last-child { + margin-bottom: 0; + } } .alert-dismissible { diff --git a/submissions/views.py b/submissions/views.py index 7d1d3aa6d..5f905b5a4 100644 --- a/submissions/views.py +++ b/submissions/views.py @@ -914,7 +914,7 @@ def accept_or_decline_ref_invitations(request, invitation_id=None): invitation = invitation.first() if not invitation: - messages.success(request, 'There are no Refereeing Invitations for you to consider.') + messages.success(request, 'There are no more Refereeing Invitations for you to consider.') return redirect(reverse('scipost:personal_page')) form = ConsiderRefereeInvitationForm(request.POST or None) @@ -923,7 +923,7 @@ def accept_or_decline_ref_invitations(request, invitation_id=None): if form.cleaned_data['accept'] == 'True': invitation.accepted = True decision_string = 'accepted' - messages.success(request, ('<h2>Thank you for agreeing to referee this Submission</h2>' + messages.success(request, ('<h3>Thank you for agreeing to referee this Submission</h3>' '<p>When you are ready, please go to the ' '<a href="{url}">Submission\'s page</a> to' ' submit your Report.</p>'.format( -- GitLab