summaryrefslogtreecommitdiffstats
path: root/ogcp/templates
diff options
context:
space:
mode:
authorJavier Hernandez <jhernandez@soleta.eu>2024-01-16 10:13:02 +0100
committerOpenGnSys Support Team <soporte-og@soleta.eu>2024-01-16 13:25:42 +0100
commit02b6059c70d5261a206c28b716512605e5dc4cdf (patch)
treec170b9b4d84510c7fe38ab462877855984b276c4 /ogcp/templates
parentbf90e91e2474504bd7e810393c8e5d542a938d48 (diff)
views: add an action to view repo details1.1.3-11
Add an action to allow the user to view details (name and ip) of a particular repo.
Diffstat (limited to 'ogcp/templates')
-rw-r--r--ogcp/templates/actions/repo_details.html13
-rw-r--r--ogcp/templates/repos.html2
2 files changed, 15 insertions, 0 deletions
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 %}
+
+<h1 class="m-5">{{_('Repo details')}}</h1>
+
+{{ 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 %}
+ <input class="btn btn-light {% block nav_repo_info %}{% endblock %}" type="submit" value="{{ _('Repo details') }}"
+ form="reposForm" formaction="{{ url_for('action_repo_info') }}" formmethod="get">
<input class="btn btn-light {% block nav_repo_add %}{% endblock %}" type="submit" value="{{ _('Add repo') }}"
form="reposForm" formaction="{{ url_for('action_repo_add') }}" formmethod="get">
<input class="btn btn-light {% block nav_repo_delete %}{% endblock %}" type="submit" value="{{ _('Delete repo') }}"