Merge pull request #763 from RoeiGanor/fix_gravatar

Fix gravatar offline mode
This commit is contained in:
Khanh Ngo 2020-10-10 14:16:57 +02:00 committed by GitHub
commit f3bcf1b834
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View 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 %}