From 27ea5016c4aaa4350ada4b1e6a534b8219fff578 Mon Sep 17 00:00:00 2001 From: Javier Sánchez Parra Date: Fri, 3 Sep 2021 14:51:14 +0200 Subject: Add images view Images view manages all the images stored in the server. Follow up patches adds actions to get and edit image details, and to delete them. --- ogcp/templates/images.html | 29 +++++++++++++++++++++++++++++ ogcp/templates/nav.html | 2 +- ogcp/views.py | 7 +++++++ 3 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 ogcp/templates/images.html diff --git a/ogcp/templates/images.html b/ogcp/templates/images.html new file mode 100644 index 0000000..e698af9 --- /dev/null +++ b/ogcp/templates/images.html @@ -0,0 +1,29 @@ +{% extends 'base.html' %} + +{% block nav_images %}active{% endblock %} + +{% block container %} +
+ +
+ {{ super() }} + +{% endblock %} + +{% block sidebar %} + +{% endblock %} + +{% block commands %} +{% endblock %} + diff --git a/ogcp/templates/nav.html b/ogcp/templates/nav.html index dc40207..edf5c05 100644 --- a/ogcp/templates/nav.html +++ b/ogcp/templates/nav.html @@ -17,7 +17,7 @@ {{ _('Commands') }}