From 6389fe934a82f02939a962a8e3c448404c0f51ef Mon Sep 17 00:00:00 2001 From: Jorran de Wit <jorrandewit@outlook.com> Date: Thu, 23 Mar 2017 21:26:51 +0100 Subject: [PATCH] Show last publications if issue still empty --- scipost/templates/scipost/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scipost/templates/scipost/index.html b/scipost/templates/scipost/index.html index ff4f0468b..b25a47c92 100644 --- a/scipost/templates/scipost/index.html +++ b/scipost/templates/scipost/index.html @@ -77,7 +77,7 @@ </h2> </div> {% if issue and publications %} - <h4 class="card-text text-center">A selection from the current issue:</h4> + <h4 class="card-text text-center">A selection from the {% if issue.is_current %}current{% else %}last{% endif %} issue:</h4> {% if issue %} <div class="text-muted text-center">Vol. {{ issue.in_volume.number }} issue {{ issue.number }} {{issue.period_as_string}}</div> {% endif %} -- GitLab