54 lines
2.3 KiB
HTML
54 lines
2.3 KiB
HTML
{% extends 'admin/base.html' %}
|
|
{% 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 %}
|
|
<style type="text/css">
|
|
|
|
{% include "admin_interface/css/admin-interface.css" %}
|
|
{% include "admin_interface/css/admin-interface-fix.css" %}
|
|
{% include "admin_interface/css/list-filter-dropdown.css" %}
|
|
{% include "admin_interface/css/related-modal.css" %}
|
|
{% include "admin_interface/css/modeltranslation.css" %}
|
|
{% include "admin_interface/css/sorl-thumbnail.css" %}
|
|
{% include "admin_interface/css/ckeditor.css" %}
|
|
{% include "admin_interface/css/tinymce.css" %}
|
|
|
|
{% if theme.css %}
|
|
{{ theme.css|safe }}
|
|
{% endif %}
|
|
|
|
</style>
|
|
{% endblock %}
|
|
|
|
{% block blockbots %}
|
|
{{ block.super }}
|
|
{# 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">
|
|
<link rel="stylesheet" type="text/css" href="{% static 'admin/css/responsive.css' %}" />
|
|
{% get_admin_interface_theme as theme %}
|
|
{% if theme.related_modal_active %}
|
|
<link rel="stylesheet" type="text/css" href="{% static 'admin_interface/magnific-popup/magnific-popup.css' %}" />
|
|
<script type="text/javascript" src="{% static 'admin_interface/magnific-popup/jquery.magnific-popup.js' %}"></script>
|
|
<script type="text/javascript" src="{% static 'admin_interface/related-modal/related-modal.js' %}"></script>
|
|
{% endif %}
|
|
{% endblock %}
|
|
|
|
{% block bodyclass %}admin-interface flat-theme {% get_admin_interface_theme as theme %}{% if theme.name %}{{ theme.name|slugify }}-theme{% endif %}{% endblock %}
|
|
|
|
{% block branding %}
|
|
{% get_admin_interface_theme as theme %}
|
|
<h1 id="site-name">
|
|
{% if theme.logo_visible and theme.logo %}
|
|
<img class="logo" style="display:none;" src="{{ theme.logo.url }}" {% if theme.logo.width %}width="{{ theme.logo.width }}"{% endif %} {% if theme.logo.height %}height="{{ theme.logo.height }}"{% endif %} />
|
|
{% endif %}
|
|
{% if theme.title_visible %}
|
|
<span>{% if theme.title %}{% trans theme.title %}{% else %}{% trans 'Django administration' %}{% endif %}</span>
|
|
{% endif %}
|
|
</h1>
|
|
{% endblock %} |