mirror of
https://github.com/MOIS3Y/logs-collector.git
synced 2025-09-13 13:13:01 +02:00
Add: http custom error pages, more checks js possible error, check if file delete from storage by cli
This commit is contained in:
20
logs_collector/templates/errors.html
Normal file
20
logs_collector/templates/errors.html
Normal file
@@ -0,0 +1,20 @@
|
||||
{% extends 'base.html' %}
|
||||
{% load static %}
|
||||
|
||||
{% block errors_head %}
|
||||
<title>{% block title %}{% endblock title %}</title>
|
||||
{% endblock errors_head %}
|
||||
|
||||
{% block http_errors %}
|
||||
<div class="d-flex align-items-center justify-content-center vh-100" >
|
||||
<div class="text-center">
|
||||
<h1 class="display-1 fw-bold">{% block status_code %}{% endblock status_code %}</h1>
|
||||
{% block error_message %}{% endblock error_message %}
|
||||
<a href="{% url 'collector:index' %}" class="btn btn-secondary">Go Home</a>
|
||||
</div>
|
||||
<!-- Theme switcher -->
|
||||
<div class="dropdown position-fixed bottom-0 end-0 mb-3 me-3 bd-mode-toggle">
|
||||
{% include 'includes/theme_switcher.html' %}
|
||||
</div>
|
||||
</div>
|
||||
{% endblock http_errors %}
|
Reference in New Issue
Block a user