Forkino per aggiungere modalità demo con un tema selezionato e per rendere il tema associabile ad un utente
This commit is contained in:
@@ -2,12 +2,10 @@
|
||||
{% load i18n static admin_interface_tags %}
|
||||
|
||||
{% block title %}
|
||||
{% get_admin_interface_theme as theme %}
|
||||
{% if title %}{{ title }} | {% endif %}{% if theme.title %}{% trans theme.title %}{% else %}{{ site_title|default:_('Django administration') }}{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
{% block extrastyle %}
|
||||
{% get_admin_interface_theme as theme %}
|
||||
{% get_admin_interface_nocache as version_md5_cache %}
|
||||
{% get_current_language as current_lang %}
|
||||
<style type="text/css">
|
||||
@@ -114,7 +112,6 @@
|
||||
|
||||
{% block blockbots %}
|
||||
{{ block.super }}
|
||||
{% get_admin_interface_theme as theme %}
|
||||
{% get_admin_interface_nocache as version_md5_cache %}
|
||||
{# https://github.com/elky/django-flat-responsive#important-note #}
|
||||
<meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1.0, maximum-scale=1.0">
|
||||
@@ -130,17 +127,14 @@
|
||||
{% endblock %}
|
||||
|
||||
{% block bodyclass %}
|
||||
{% get_admin_interface_theme as theme %}
|
||||
flat-theme admin-interface
|
||||
{% if theme.name %} {{ theme.name|slugify }}-theme {% endif %}
|
||||
{% if theme.foldable_apps %} foldable-apps {% endif %}
|
||||
{% if theme.form_submit_sticky %} sticky-submit {% endif %}
|
||||
{% if theme.form_pagination_sticky %} sticky-pagination {% endif %}
|
||||
{% if theme.list_filter_sticky %} list-filter-sticky {% endif %}
|
||||
{% endblock %}
|
||||
|
||||
{% block branding %}
|
||||
{% get_admin_interface_theme as theme %}
|
||||
<h1 id="site-name">
|
||||
<a href="{% url 'admin:index' %}">
|
||||
{% if theme.logo_visible %}
|
||||
@@ -158,10 +152,9 @@ flat-theme admin-interface
|
||||
{% endblock %}
|
||||
|
||||
{% block welcome-msg %}
|
||||
{% get_admin_interface_theme as theme %}
|
||||
{% if theme.language_chooser_active %}
|
||||
{% get_admin_interface_languages as languages %}
|
||||
{% include "admin_interface/language_chooser.html" %}
|
||||
{% endif %}
|
||||
{% if theme.env_visible_in_header %}<span class="environment-label {{ theme.env_name }}">{{ theme.env_name }}</span><br>{% endif %}{{ block.super }}<br>
|
||||
{% endblock %}
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user