diff --git a/borgweb/borg/templates/borg/index.html b/borgweb/borg/templates/borg/index.html
index d74dbfc..43898db 100644
--- a/borgweb/borg/templates/borg/index.html
+++ b/borgweb/borg/templates/borg/index.html
@@ -29,7 +29,7 @@
diff --git a/borgweb/borg/templates/borg/repo.html b/borgweb/borg/templates/borg/repo.html
new file mode 100644
index 0000000..027b4fa
--- /dev/null
+++ b/borgweb/borg/templates/borg/repo.html
@@ -0,0 +1,28 @@
+{% extends "borg/base.html" %}
+
+{% block title %}Repo: {{ repo.label }}{% endblock %}
+{% load static %}
+{% block script %}
+ {{block.super}}
+
+ {{ hour_list|json_script:"hour_list" }}
+{# #}
+{% endblock %}
+
+{% block style %}
+
+{# .repo-container {#}
+{# padding: 8px;#}
+{# margin: 8px;#}
+{# }#}
+{##}
+{# .att-label {#}
+{# margin-top: 4px;#}
+{# margin-bottom: 4px;#}
+{# }#}
+{% endblock %}
+
+{% block body %}
+
Repo: {{ repo.label }}
+{% endblock %}
+
diff --git a/borgweb/borg/urls.py b/borgweb/borg/urls.py
index 32e87de..802c993 100644
--- a/borgweb/borg/urls.py
+++ b/borgweb/borg/urls.py
@@ -5,8 +5,9 @@ from . import views
urlpatterns = [
path('', cache_page(60)(views.index), name='index'),
- path('post/repo', views.post_repo, name='repo'),
- path('post/archive', views.post_archive, name='archive'),
- path('post/error', views.post_error, name='error'),
- path('post/location', views.post_location, name='location'),
+ path('repo/
', views.repo, name='repo'),
+ path('post/repo', views.post_repo, name='post repo'),
+ path('post/archive', views.post_archive, name='post archive'),
+ path('post/error', views.post_error, name='post error'),
+ path('post/location', views.post_location, name='post location'),
]
diff --git a/borgweb/borg/views.py b/borgweb/borg/views.py
index 66be122..533d6a5 100644
--- a/borgweb/borg/views.py
+++ b/borgweb/borg/views.py
@@ -38,6 +38,11 @@ def repo_daily_dict(repo_list, n_days=14):
}
+def repo(request, repo_label: str):
+ s_repo = get_object_or_404(Repo, label__label=repo_label)
+ return render(request, 'borg/repo.html', {'repo': s_repo})
+
+
@permission_required("borg.add_repo")
def post_repo(request):
if request.method == 'POST':