Add favicon as an overrideable branding block - fixes #1391

pull/1424/merge
Matt Westcott 2015-10-05 18:20:08 +01:00
rodzic 00a1402925
commit a86b08a622
4 zmienionych plików z 17 dodań i 0 usunięć

Wyświetl plik

@ -30,6 +30,17 @@ To replace the default logo, create a template file ``dashboard/templates/wagtai
<img src="{{ STATIC_URL }}images/custom-logo.svg" alt="Custom Project" width="80" />
{% endblock %}
``branding_favicon``
--------------------
To replace the favicon displayed when viewing admin pages, create a template file ``dashboard/templates/wagtailadmin/admin_base.html`` that overrides the block ``branding_favicon``::
{% overextends "wagtailadmin/admin_base.html" %}
{% block branding_favicon %}
<link rel="shortcut icon" href="{{ STATIC_URL }}images/favicon.ico" />
{% endblock %}
``branding_login``
------------------

Plik binarny nie jest wyświetlany.

Po

Szerokość:  |  Wysokość:  |  Rozmiar: 2.6 KiB

Wyświetl plik

@ -10,6 +10,10 @@
{% block extra_css %}{% endblock %}
{% endblock %}
{% block branding_favicon %}
<link rel="shortcut icon" href="{% static 'wagtailadmin/images/favicon.ico' %}" />
{% endblock %}
{% block js %}
{% compress js %}

Wyświetl plik

@ -15,6 +15,8 @@
{% endcompress %}
{% block css %}{% endblock %}
{% block branding_favicon %}{% endblock %}
</head>
<body class="{% block bodyclass %}{% endblock %} {% if messages %}has-messages{% endif %}">
<!--[if lt IE 9]>