add user management
This commit is contained in:
25
templates/bundles/TwigBundle/Exception/error.html.twig
Normal file
25
templates/bundles/TwigBundle/Exception/error.html.twig
Normal file
@@ -0,0 +1,25 @@
|
||||
{% extends 'error/layout.html.twig' %}
|
||||
|
||||
{% set status_code = status_code|default(500) %}
|
||||
|
||||
{% block title %}Fehler {{ status_code }}{% endblock %}
|
||||
{% block heading %}Ein Fehler ist aufgetreten{% endblock %}
|
||||
{% block message %}Die Anfrage konnte nicht verarbeitet werden. Falls der Fehler erneut auftritt, prüfe bitte die System-Logs.{% endblock %}
|
||||
|
||||
{% block actions %}
|
||||
{% if app.user and is_granted('ROLE_CHAT_USER') %}
|
||||
<a class="btn btn-info" href="{{ path('chat_index') }}">
|
||||
<i class="bi bi-chat-dots"></i> Zum Chat
|
||||
</a>
|
||||
{% endif %}
|
||||
{% if app.user and is_granted('ROLE_ADMIN_AREA') %}
|
||||
<a class="btn btn-outline-light" href="{{ path('admin_dashboard') }}">
|
||||
<i class="bi bi-speedometer2"></i> Zum Adminbereich
|
||||
</a>
|
||||
{% endif %}
|
||||
{% if not app.user %}
|
||||
<a class="btn btn-info" href="{{ path('chat_login') }}">
|
||||
<i class="bi bi-box-arrow-in-right"></i> Zur Anmeldung
|
||||
</a>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user