mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2024-12-30 15:05:39 +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>
|
</head>
|
||||||
<body class="hold-transition skin-blue sidebar-mini {% if not SETTING.get('fullscreen_layout') %}layout-boxed{% endif %}">
|
<body class="hold-transition skin-blue sidebar-mini {% if not SETTING.get('fullscreen_layout') %}layout-boxed{% endif %}">
|
||||||
{% if OFFLINE_MODE %}
|
{% 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 %}
|
{% elif current_user.email is defined %}
|
||||||
{% set gravatar_url = current_user.email|email_to_gravatar_url(size=80) %}
|
{% set gravatar_url = current_user.email|email_to_gravatar_url(size=80) %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
Loading…
Reference in New Issue
Block a user