summaryrefslogtreecommitdiffstats
path: root/ogcp/templates/repositories.html
diff options
context:
space:
mode:
authorJavier Sánchez Parra <jsanchez@soleta.eu>2022-08-31 17:45:20 +0200
committerJavier Sánchez Parra <jsanchez@soleta.eu>2022-09-27 09:48:36 +0200
commit3459de36f35839e98e894ae3b58c4f4374d90913 (patch)
tree80136e41ad43c3500ee584a61181b58deaa7303b /ogcp/templates/repositories.html
parent07c5cb25d2281d2253729ecc7b7b40efdf6db140 (diff)
Add Servers section
In Servers section/view, users can add or delete ogServers from ogCP configuration file. Replaces Repositories views and recycle some of its code.
Diffstat (limited to 'ogcp/templates/repositories.html')
-rw-r--r--ogcp/templates/repositories.html37
1 files changed, 0 insertions, 37 deletions
diff --git a/ogcp/templates/repositories.html b/ogcp/templates/repositories.html
deleted file mode 100644
index 7aa2d06..0000000
--- a/ogcp/templates/repositories.html
+++ /dev/null
@@ -1,37 +0,0 @@
-{% extends 'base.html' %}
-
-{% block nav_repositories %}active{% endblock %}
-
-{% block container %}
- <form id="repositoriesForm">
- <input type="hidden" name="csrf_token" value="{{ csrf_token() }}"/>
- </form>
- {{ super() }}
-</form>
-{% endblock %}
-
-{% block sidebar %}
- <ul id="repositories-list" class="nav flex-column nav-pills">
- {% for repository in repositories %}
- <li id="repository-{{ repository['id'] }}" class="nav-item">
- <input class="form-check-input" type="checkbox" form="repositoriesForm"
- value="{{ repository['id'] }}"
- name="{{ repository['name'] }}" />
- {{ repository['name'] }}
- </li>
- {% endfor %}
- </ul>
-{% endblock %}
-
-{% block commands %}
- <input class="btn btn-light {% block nav_repository_add %}{% endblock %}" type="submit" value="{{ _('Add repository') }}"
- form="repositoriesForm" formaction="{{ url_for('repository_add_get') }}" formmethod="get">
- <input class="btn btn-light {% block nav_repository_delete %}{% endblock %}" type="submit" value="{{ _('Delete repository') }}"
- form="repositoriesForm" formaction="{{ url_for('repository_delete_get') }}" formmethod="get">
- {% if btn_back %}
- <button class="btn btn-danger ml-3" type="button" id="backButton" onclick="history.back()">
- {{ _("Back") }}
- </button>
- {% endif %}
-{% endblock %}
-