aboutsummaryrefslogtreecommitdiffstats
path: root/pyblackbird_cc/templates/resources/resource_detail.html
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--pyblackbird_cc/templates/resources/resource_detail.html18
1 files changed, 16 insertions, 2 deletions
diff --git a/pyblackbird_cc/templates/resources/resource_detail.html b/pyblackbird_cc/templates/resources/resource_detail.html
index 6daa42b..70c1b11 100644
--- a/pyblackbird_cc/templates/resources/resource_detail.html
+++ b/pyblackbird_cc/templates/resources/resource_detail.html
@@ -19,8 +19,22 @@
<span class="fw-bold">Number of files:</span> X NUMBER OF FILES
</div>
</div>
- <div>
- <span class="fw-bold">Created:</span> {{ resource.created|date:"D d M Y" }}
+ <div class="d-flex flex-row justify-content-between my-3 flex-wrap">
+ <div>
+ <span class="fw-bold">Created:</span> {{ resource.created|date:"D d M Y" }}
+ </div>
+ <div>
+ {% if request.user.is_authenticated and request.user.is_staff %}
+ <a href="{% url "resources:resource_update_metadata" resource.id %}"
+ class="text-danger">Edit this resource</a>
+ {% endif %}
+ </div>
+ <div>
+ {% if request.user.is_authenticated %}<a href="#" class="text-danger">Replace the PDFs</a>{% endif %}
+ </div>
+ <div>
+ {% if request.user.is_authenticated %}<a href="#" class="text-danger">Replace the preview images</a>{% endif %}
+ </div>
</div>
</div>
</div>