kopia lustrzana https://github.com/wagtail/wagtail
Merge branch 'master' of https://github.com/gilsondev/wagtail into gilsondev-master
commit
01b67760c0
|
@ -0,0 +1,24 @@
|
|||
Change Logo in Dashboard
|
||||
========================
|
||||
|
||||
In your projects with Wagtail, maybe need switch the default logo to other image. For this, you need override the block ``logo_admin``::
|
||||
|
||||
{% extends "wagtailadmin/base.html" %}
|
||||
|
||||
{% block admin_logo %}
|
||||
<img src="{{ STATIC_URL }}images/custom-logo.svg" alt="Custom Project" width="80" />
|
||||
{% endblock %}
|
||||
|
||||
|
||||
Save this in your app, for example, ``dashboard`` to ``dashboard/templates/wagtailadmin/base.html`` and register before ``wagtailadmin``::
|
||||
|
||||
INSTALLED_APPS = (
|
||||
# ...
|
||||
|
||||
'dashboard',
|
||||
|
||||
'wagtail.wagtailcore',
|
||||
'wagtail.wagtailadmin',
|
||||
|
||||
# ...
|
||||
)
|
|
@ -4,7 +4,12 @@
|
|||
{% block furniture %}
|
||||
<div class="nav-wrapper">
|
||||
<div class="inner">
|
||||
<a href="{% url 'wagtailadmin_home' %}" class="logo" title="Wagtail v.{% wagtail_version %}"><img src="{{ STATIC_URL }}wagtailadmin/images/wagtail-logo.svg" alt="Wagtail" width="80" /><span>{% trans "Dashboard" %}</span></a>
|
||||
<a href="{% url 'wagtailadmin_home' %}" class="logo" title="Wagtail v.{% wagtail_version %}">
|
||||
{% block admin_logo %}
|
||||
<img src="{{ STATIC_URL }}wagtailadmin/images/wagtail-logo.svg" alt="Wagtail" width="80" />
|
||||
{% endblock %}
|
||||
<span>{% trans "Dashboard" %}</span>
|
||||
</a>
|
||||
|
||||
<form class="nav-search" action="{% url 'wagtailadmin_pages_search' %}" method="get">
|
||||
<div>
|
||||
|
@ -38,4 +43,4 @@
|
|||
{% block content %}{% endblock %}
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
{% endblock %}
|
||||
|
|
Ładowanie…
Reference in New Issue