Skip to content
Snippets Groups Projects
Commit e068b2fe authored by Chris Lawton's avatar Chris Lawton
Browse files

only show other submissions sidebar section if there are some submissions

parent 10c24990
No related branches found
No related tags found
No related merge requests found
...@@ -63,15 +63,13 @@ ...@@ -63,15 +63,13 @@
{% if other_submissions %} {% if other_submissions %}
<div class="sidebar__inner"> <div class="sidebar__inner">
<h6 class="heading heading--light-grey heading--small heading--uppercase">Past Submissions</h6> <h6 class="heading heading--light-grey heading--small heading--uppercase">Past Submissions</h6>
{% endif %}
{% for submission in other_submissions %} {% for submission in other_submissions %}
<h6><a class="link link--underlined link--bold" href="{% url 'funds:submission' submission.id %}">{{ submission.title }}</a></h6> <h6><a class="link link--underlined link--bold" href="{% url 'funds:submission' submission.id %}">{{ submission.title }}</a></h6>
{% endfor %} {% endfor %}
{% if other_submissions %}
</div> </div>
{% endif %} {% endif %}
</aside> </aside>
</div> </div>
</div> </div>
{% endblock %} {% endblock %}
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