Templating improvements to RA/EC stuff

This commit is contained in:
2020-08-31 13:03:27 +01:00
parent 8842c2c3d9
commit 689124a891
17 changed files with 146 additions and 61 deletions

View File

@@ -84,11 +84,7 @@
{# Buttons #}
<td>
<a class="btn btn-primary" href="{% url 'ra_detail' object.pk %}">View</a>
{% if object.reviewed_by %}
Reviewed by <a href="{% url 'profile_detail' object.reviewed_by.pk %}">{{ object.reviewed_by }}</a> at {{ object.reviewed_at }}
{% else %}
<a class="btn btn-success my-2" href="{% url 'ra_review' object.pk %}">Mark Reviewed</a>
{% endif %}
{{ object.review_string|safe }}
</td>
</tr>
{% empty %}