mirror of
https://gitlab.crans.org/mediatek/med.git
synced 2025-06-21 11:18:24 +02:00
Update homepage to new theme
This commit is contained in:
@ -17,15 +17,23 @@ SPDX-License-Identifier: GPL-3.0-or-later
|
||||
{% endblock %}
|
||||
|
||||
{% block usertools %}
|
||||
{% if user.is_authenticated %}
|
||||
<div id="user-tools">
|
||||
{% block welcome-msg %}
|
||||
<div id="user-tools">
|
||||
{% block welcome-msg %}
|
||||
{% if user.is_authenticated %}
|
||||
{% trans 'Welcome,' %}
|
||||
<strong>{% firstof user.get_short_name user.get_username %}</strong>.
|
||||
{% endblock %}
|
||||
{% block userlinks %}
|
||||
{# Link to our apps outside of admin #}
|
||||
<a href="{% url 'index' %}">{% trans 'Home' %}</a> /
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
{% block userlinks %}
|
||||
{# Link to our apps outside of admin #}
|
||||
<a href="{% url "users:mon-profil" %}">{% trans 'My profile' %}</a> /
|
||||
<a href="{% url "media:index" %}">Media</a> /
|
||||
|
||||
{% if user.is_authenticated %}
|
||||
{% if is_perm %}
|
||||
<a href="{% url "users:index" %}">Utilisateurs</a> /
|
||||
<a href="{% url "logs:index" %}">Statistiques</a> /
|
||||
{% endif %}
|
||||
|
||||
{% if available_apps %}
|
||||
{# When in admin site, list all admin pages and documentation #}
|
||||
@ -52,9 +60,11 @@ SPDX-License-Identifier: GPL-3.0-or-later
|
||||
<a href="{% url 'admin:index' %}">{% trans 'View admin' %}</a> /
|
||||
{% endif %}
|
||||
<a href="{% url 'logout' %}">{% trans 'Log out' %}</a>
|
||||
{% endblock %}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% else %}
|
||||
<a href="{% url 'login' %}">{% trans 'Log in' %}</a>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
{% block extrastyle %}
|
||||
|
Reference in New Issue
Block a user