2
0
Fork 0

Add basic structure for public dashboard

This commit is contained in:
Luca 2023-05-16 01:12:56 +02:00
parent 2a3ef33f62
commit 2f9adbb11c
5 changed files with 13 additions and 2 deletions

View File

@ -72,6 +72,7 @@
{% block head %}{% endblock %} {% block head %}{% endblock %}
</head> </head>
<body class="is-flex is-flex-direction-column"> <body class="is-flex is-flex-direction-column">
{% block everything %}
<nav class="navbar"> <nav class="navbar">
<div class="container"> <div class="container">
<div class="navbar-brand"> <div class="navbar-brand">
@ -143,5 +144,6 @@
}, false); }, false);
}); });
</script> </script>
{% endblock %}
</body> </body>
</html> </html>

View File

@ -0,0 +1,4 @@
{% extends "base.html" %}
{% block everything %}
{% endblock %}

View File

@ -3,4 +3,6 @@ from django.urls import path
from . import views from . import views
app_name = "signage" app_name = "signage"
urlpatterns = [] urlpatterns = [
path("public/", views.public_dashboard, name="public_dashboard"),
]

View File

@ -1 +1,4 @@
from django.shortcuts import render
def public_dashboard(request):
return render(request, "public_dashboard.html", {})

View File

@ -21,7 +21,7 @@ urlpatterns = [
path("", include("shiftregister.app.urls")), path("", include("shiftregister.app.urls")),
path("", include("shiftregister.pages.urls")), path("", include("shiftregister.pages.urls")),
path("team/", include("shiftregister.team.urls")), path("team/", include("shiftregister.team.urls")),
path("team/", include("shiftregister.signage.urls")),
path("team/", include("shiftregister.fallback.urls")), path("team/", include("shiftregister.fallback.urls")),
path("dashboard/", include("shiftregister.signage.urls")),
path("admin/", admin.site.urls), path("admin/", admin.site.urls),
] ]