SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit 3b12f0a0 authored by Jorran de Wit's avatar Jorran de Wit
Browse files

Add conditional tags to homepage template

parent 53d78355
No related branches found
No related tags found
No related merge requests found
...@@ -74,9 +74,12 @@ ...@@ -74,9 +74,12 @@
<div class="SciPostPhysicsBanner"> <div class="SciPostPhysicsBanner">
<h2 class="py-0"> <h2 class="py-0">
<a class="pb-0" href="{% url 'journals:scipost_physics' %}">SciPost Physics</a> <a class="pb-0" href="{% url 'journals:scipost_physics' %}">SciPost Physics</a>
{% if issue %}
<div class="banner-subtitle">Vol. {{ issue.in_volume.number }} issue {{ issue.number }} {{issue.period_as_string}}</div> <div class="banner-subtitle">Vol. {{ issue.in_volume.number }} issue {{ issue.number }} {{issue.period_as_string}}</div>
{% endif %}
</h2> </h2>
</div> </div>
{% if issue and publications %}
<h4 class="card-text text-center">A selection of the current issue:</h4> <h4 class="card-text text-center">A selection of the current issue:</h4>
<ul class="list-group list-group-flush"> <ul class="list-group list-group-flush">
...@@ -88,6 +91,7 @@ ...@@ -88,6 +91,7 @@
</li> </li>
{% endfor %} {% endfor %}
</ul> </ul>
{% endif %}
<p class="text-center mt-3" style="color: red;"><em>If you support and believe in our mission, <br/>be a pioneer and submit a manuscript!</em></p> <p class="text-center mt-3" style="color: red;"><em>If you support and believe in our mission, <br/>be a pioneer and submit a manuscript!</em></p>
</div> </div>
</div> </div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment