1
0
mirror of https://github.com/janeczku/calibre-web synced 2025-12-09 17:58:06 +00:00
This commit is contained in:
OzzieIsaacs
2020-08-21 19:26:58 +02:00
parent 1535bdbcd8
commit 0cc07362b8
3 changed files with 11 additions and 7 deletions

View File

@@ -30,20 +30,20 @@
<div data-related="gdrive_settings">
{% if gdriveError %}
<div class="form-group">
<label>
<label id="gdrive_error">
{{_('Google Drive config problem')}}: {{ gdriveError }}
</label>
</div>
{% else %}
{% if show_authenticate_google_drive and g.user.is_authenticated and config.config_use_google_drive %}
<div class="form-group required">
<a href="{{ url_for('gdrive.authenticate_google_drive') }}" class="btn btn-primary">{{_('Authenticate Google Drive')}}</a>
<a href="{{ url_for('gdrive.authenticate_google_drive') }}" id="gdrive_auth" class="btn btn-primary">{{_('Authenticate Google Drive')}}</a>
</div>
{% else %}
{% if show_authenticate_google_drive and g.user.is_authenticated and not config.config_use_google_drive %}
<div >{{_('Please hit save to continue with setup')}}</div>
{% endif %}
{% if not g.user.is_authenticated %}
{% if not g.user.is_authenticated and show_login_button %}
<div >{{_('Please finish Google Drive setup after login')}}</div>
{% endif %}
{% if g.user.is_authenticated %}