Skip to content

Commit

Permalink
remove adminlte.site_header & use site_header from django admin site
Browse files Browse the repository at this point in the history
  • Loading branch information
wuyue92tree committed Jun 1, 2023
1 parent ddb278e commit 61721a7
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 8 deletions.
1 change: 0 additions & 1 deletion adminlteui/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ class AdminLteConfig(object):
username_field = None

site_logo = None
site_header = 'AdminLteUI'

skin = None

Expand Down
2 changes: 1 addition & 1 deletion adminlteui/templates/admin/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
{% else %}
<img src="{% static "admin/dist/img/default-log.svg" %}" class="user-image" alt="User Image" style="width:45px;height:45px;padding:5px;">
{% endif %}
<b>{{ adminlte.site_header }}</b>
<b>{{ site_header }}</b>
</span>
</a>
<!-- Header Navbar: style can be found in header.less -->
Expand Down
4 changes: 1 addition & 3 deletions adminlteui/templates/admin/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,7 @@
<div class="login-box">
<div class="login-logo">
<a href="/">
<b>
{{ adminlte.site_header }}
</b>
<b>{{ site_header }}</b>
</a>
</div>

Expand Down
4 changes: 1 addition & 3 deletions adminlteui/templates/registration/logged_out.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,7 @@
<div class="login-box">
<div class="login-logo">
<a href="/">
<b>
{{ adminlte.site_header }}
</b>
<b>{{ site_header }}</b>
</a>
</div>

Expand Down

0 comments on commit 61721a7

Please sign in to comment.