summaryrefslogtreecommitdiffstats
path: root/ogcp/views.py
diff options
context:
space:
mode:
authorJavier Sánchez Parra <jsanchez@soleta.eu>2022-06-30 15:24:19 +0200
committerJavier Sánchez Parra <jsanchez@soleta.eu>2022-07-04 15:34:02 +0200
commit9a6981d289865b3a22c645718e0e90865ea14638 (patch)
tree5ef2e9c61d1a825c17b1c6394c16559ae06ff141 /ogcp/views.py
parenteb61229b295c9157772e33004587b0df030f8c40 (diff)
Add Repositories section
In Repositories section/view, users can manage task related to repositories. For example: list, add, delete and edit them.
Diffstat (limited to 'ogcp/views.py')
-rw-r--r--ogcp/views.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/ogcp/views.py b/ogcp/views.py
index 525d23f..16ba0b6 100644
--- a/ogcp/views.py
+++ b/ogcp/views.py
@@ -1237,6 +1237,14 @@ def images():
return render_template('images.html', images=images)
+@app.route('/repositories/', methods=['GET'])
+@login_required
+def repositories():
+ r = g.server.get('/repositories')
+ repositories = r.json()['repositories']
+ return render_template('repositories.html', repositories=repositories)
+
+
@app.route('/users/', methods=['GET'])
@login_required
def users():