mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-02-16 19:49:41 +00:00
Better approach to generic list templates + other deduplication
This commit is contained in:
7
RIGS/templates/partials/review_status.html
Normal file
7
RIGS/templates/partials/review_status.html
Normal file
@@ -0,0 +1,7 @@
|
||||
{% if object.reviewed_by %}
|
||||
<span class='badge badge-success py-2'>Reviewed by <a href='{% url 'profile_detail' object.reviewed_by.pk %}'>{{object.reviewed_by}}</a> at {{object.reviewed_at}}</span>
|
||||
{% elif perm %}
|
||||
<a class='btn btn-success my-2' href='{% url review object.pk %}'>Mark Reviewed</a>
|
||||
{% else %}
|
||||
Not reviewed
|
||||
{% endif %}
|
||||
Reference in New Issue
Block a user