diff --git a/opentech/apply/funds/templates/funds/applicationsubmission_detail.html b/opentech/apply/funds/templates/funds/applicationsubmission_detail.html index 43041ef7aa72a58aa0aa4a55cc8670795cea2821..dd2cafc69700bb8f32868f7d73bb4d3e41207c4a 100644 --- a/opentech/apply/funds/templates/funds/applicationsubmission_detail.html +++ b/opentech/apply/funds/templates/funds/applicationsubmission_detail.html @@ -91,20 +91,24 @@ {% if other_submissions or object.previous or object.next %} <div class="sidebar__inner"> + <h5>Related submissions</h5> {% if object.previous %} - <h6><a class="link link--underlined link--bold" href="{% url 'funds:submissions:detail' object.previous.id %}">View linked {{ object.previous.stage }}</a></h6> + <p><a class="link link--underlined link--bold" href="{% url 'funds:submissions:detail' object.previous.id %}">View linked {{ object.previous.stage }}</a></p> {% endif %} {% if object.next %} - <h6><a class="link link--underlined link--bold" href="{% url 'funds:submissions:detail' object.next.id %}">View linked {{ object.next.stage }}</a></h6> + <p><a class="link link--underlined link--bold" href="{% url 'funds:submissions:detail' object.next.id %}">View linked {{ object.next.stage }}</a></p> {% endif %} {% for submission in other_submissions %} {% if forloop.first %} - <h6 class="heading heading--light-grey heading--small heading--uppercase">Past Submissions</h6> + <h6 class="heading heading--light-grey heading--uppercase">Past Submissions</h6> + <ul> + {% endif %} + <li><a class="link link--underlined link--bold" href="{% url 'funds:submissions:detail' submission.id %}">{{ submission.title }}</a></li> + {% if forloop.last %} + </ul> {% endif %} - - <h6><a class="link link--underlined link--bold" href="{% url 'funds:submissions:detail' submission.id %}">{{ submission.title }}</a></h6> {% endfor %} </div> {% endif %}