Skip to content
Snippets Groups Projects
Commit 3bcb68fc authored by Dan Braghis's avatar Dan Braghis Committed by Todd Dembrey
Browse files

Include link to all reviews when there is at least one

parent 1c604b9d
No related branches found
No related tags found
No related merge requests found
...@@ -20,9 +20,10 @@ ...@@ -20,9 +20,10 @@
<div class="wrapper wrapper--button-container"> <div class="wrapper wrapper--button-container">
{% include 'review/includes/review_button.html' with submission=object %} {% include 'review/includes/review_button.html' with submission=object %}
{% if request.user.is_apply_staff %} {% if request.user.is_apply_staff and object.reviews.exists %}
<a href="{% url 'apply:reviews:list' submission_pk=object.id %}" class="button button--white button--half-width">View all</a> <a href="{% url 'apply:reviews:list' submission_pk=object.id %}" class="button button--white button--half-width">View all</a>
{% endif %} {% endif %}
</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