mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2024-11-09 15:10:27 +00:00
Fix gravatar offline mode
This commit is contained in:
parent
4e63f8380b
commit
0f9a5f8652
0
FETCH_HEAD
Normal file
0
FETCH_HEAD
Normal file
@ -29,7 +29,7 @@
|
||||
</head>
|
||||
<body class="hold-transition skin-blue sidebar-mini {% if not SETTING.get('fullscreen_layout') %}layout-boxed{% endif %}">
|
||||
{% if OFFLINE_MODE %}
|
||||
{% set gravatar_url = "{{ url_for('static', filename='img/gravatar.png') }}" %}
|
||||
{% set gravatar_url = url_for('static', filename='img/gravatar.png') %}
|
||||
{% elif current_user.email is defined %}
|
||||
{% set gravatar_url = current_user.email|email_to_gravatar_url(size=80) %}
|
||||
{% endif %}
|
||||
|
Loading…
Reference in New Issue
Block a user