Add and test base.html
This commit is contained in:
parent
928bd06e3d
commit
f5ddf8828d
4 changed files with 50 additions and 0 deletions
42
src/servala/frontend/templates/frontend/base.html
Normal file
42
src/servala/frontend/templates/frontend/base.html
Normal file
|
@ -0,0 +1,42 @@
|
|||
{% load static %}
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<link rel="stylesheet" href="{% static 'mazer/compiled/css/app.css' %}">
|
||||
<link rel="stylesheet" href="{% static 'mazer/compiled/css/app-dark.css' %}">
|
||||
<link rel="stylesheet" href="{% static 'mazer/compiled/css/iconly.css' %}">
|
||||
</head>
|
||||
<title>{% block title %}Mazer{% endblock title %}</title>
|
||||
</head>
|
||||
<body>
|
||||
<script src="{% static 'mazer/static/js/initTheme.js' %}"></script>
|
||||
|
||||
<div id="app">
|
||||
{% if request.user.is_authenticated %}
|
||||
{% include 'includes/sidebar.html' %}
|
||||
{% endif %}
|
||||
{% block content %}
|
||||
{% endblock content %}
|
||||
<footer>
|
||||
<div class="footer clearfix mb-0 text-muted">
|
||||
<div class="float-start">
|
||||
<p>2025 © VSHN</p>
|
||||
</div>
|
||||
<div class="float-end">
|
||||
<p>Crafted with <span class="text-danger"><i class="bi bi-heart-fill icon-mid"></i></span>
|
||||
by <a href="https://saugi.me">Saugi</a></p>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
|
||||
<script src="{% static 'mazer/static/js/components/dark.js' %}"></script>
|
||||
<script src="{% static 'mazer/extensions/perfect-scrollbar/perfect-scrollbar.min.js' %}"></script>
|
||||
<script src="{% static 'mazer/compiled/js/app.js' %}"></script>
|
||||
</body>
|
||||
|
||||
</html>
|
0
src/servala/frontend/templates/includes/sidebar.html
Normal file
0
src/servala/frontend/templates/includes/sidebar.html
Normal file
5
src/servala/frontend/views.py
Normal file
5
src/servala/frontend/views.py
Normal file
|
@ -0,0 +1,5 @@
|
|||
from django.views.generic import TemplateView
|
||||
|
||||
|
||||
class IndexView(TemplateView):
|
||||
template_name = "frontend/base.html"
|
|
@ -4,11 +4,14 @@ from django.contrib import admin
|
|||
from django.urls import path
|
||||
from django.utils.translation import gettext_lazy as _
|
||||
|
||||
from servala.frontend.views import IndexView
|
||||
|
||||
admin.site.site_title = _("Servala Admin")
|
||||
admin.site.site_header = _("Servala Management")
|
||||
admin.site.index_title = _("Dashboard")
|
||||
|
||||
urlpatterns = [
|
||||
path("", IndexView.as_view(), name="index"),
|
||||
path("admin/", admin.site.urls),
|
||||
]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue