mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2024-11-08 14:40:27 +00:00
Fix base template
current_user is Anonymous when we are not authenticated. Need to check if email attribute is defined before using it
This commit is contained in:
parent
0ef132a7be
commit
a598c52729
@ -30,7 +30,7 @@
|
||||
<body class="hold-transition skin-blue sidebar-mini {% if not SETTING.get('fullscreen_layout') %}layout-boxed{% endif %}">
|
||||
{% if OFFLINE_MODE %}
|
||||
{% set gravatar_url = "/static/img/gravatar.png" %}
|
||||
{% else %}
|
||||
{% elif current_user.email is defined %}
|
||||
{% set gravatar_url = current_user.email|email_to_gravatar_url(size=80) %}
|
||||
{% endif %}
|
||||
<div class="wrapper">
|
||||
|
Loading…
Reference in New Issue
Block a user