From 02b6059c70d5261a206c28b716512605e5dc4cdf Mon Sep 17 00:00:00 2001 From: Javier Hernandez Date: Tue, 16 Jan 2024 10:13:02 +0100 Subject: views: add an action to view repo details Add an action to allow the user to view details (name and ip) of a particular repo. --- ogcp/templates/actions/repo_details.html | 13 +++++++++++++ ogcp/templates/repos.html | 2 ++ ogcp/views.py | 26 ++++++++++++++++++++++++++ 3 files changed, 41 insertions(+) create mode 100644 ogcp/templates/actions/repo_details.html (limited to 'ogcp') diff --git a/ogcp/templates/actions/repo_details.html b/ogcp/templates/actions/repo_details.html new file mode 100644 index 0000000..ee45a97 --- /dev/null +++ b/ogcp/templates/actions/repo_details.html @@ -0,0 +1,13 @@ +{% extends 'repos.html' %} +{% import "bootstrap/wtf.html" as wtf %} +{% set btn_back = true %} + +{% block nav_repos %} active{% endblock %} +{% block nav_repos_details %} active{% endblock %} +{% block nav_repos_info %}active{% endblock %} +{% block content %} + +

{{_('Repo details')}}

+ +{{ wtf.quick_form(form, extra_classes="mx-5") }} +{% endblock %} diff --git a/ogcp/templates/repos.html b/ogcp/templates/repos.html index 5ca33fe..ef56d2a 100644 --- a/ogcp/templates/repos.html +++ b/ogcp/templates/repos.html @@ -50,6 +50,8 @@ {% endblock %} {% block commands %} +