parent
a7a91ae54c
commit
9c889d1681
|
@ -8,10 +8,10 @@
|
||||||
<th>{{_('Email')}}</th>
|
<th>{{_('Email')}}</th>
|
||||||
<th>{{_('Kindle')}}</th>
|
<th>{{_('Kindle')}}</th>
|
||||||
<th>{{_('DLS')}}</th>
|
<th>{{_('DLS')}}</th>
|
||||||
<th>{{_('Admin')}}</th>
|
<th class="hidden-xs">{{_('Admin')}}</th>
|
||||||
<th>{{_('Download')}}</th>
|
<th class="hidden-xs">{{_('Download')}}</th>
|
||||||
<th>{{_('Upload')}}</th>
|
<th class="hidden-xs">{{_('Upload')}}</th>
|
||||||
<th>{{_('Edit')}}</th>
|
<th class="hidden-xs">{{_('Edit')}}</th>
|
||||||
</tr>
|
</tr>
|
||||||
{% for user in content %}
|
{% for user in content %}
|
||||||
{% if not user.role_anonymous() or config.config_anonbrowse %}
|
{% if not user.role_anonymous() or config.config_anonbrowse %}
|
||||||
|
@ -20,10 +20,10 @@
|
||||||
<td>{{user.email}}</td>
|
<td>{{user.email}}</td>
|
||||||
<td>{{user.kindle_mail}}</td>
|
<td>{{user.kindle_mail}}</td>
|
||||||
<td>{{user.downloads.count()}}</td>
|
<td>{{user.downloads.count()}}</td>
|
||||||
<td>{% if user.role_admin() %}<span class="glyphicon glyphicon-ok"></span>{% else %}<span class="glyphicon glyphicon-remove"></span>{% endif %}</td>
|
<td class="hidden-xs">{% if user.role_admin() %}<span class="glyphicon glyphicon-ok"></span>{% else %}<span class="glyphicon glyphicon-remove"></span>{% endif %}</td>
|
||||||
<td>{% if user.role_download() %}<span class="glyphicon glyphicon-ok"></span>{% else %}<span class="glyphicon glyphicon-remove"></span>{% endif %}</td>
|
<td class="hidden-xs">{% if user.role_download() %}<span class="glyphicon glyphicon-ok"></span>{% else %}<span class="glyphicon glyphicon-remove"></span>{% endif %}</td>
|
||||||
<td>{% if user.role_upload() %}<span class="glyphicon glyphicon-ok"></span>{% else %}<span class="glyphicon glyphicon-remove"></span>{% endif %}</td>
|
<td class="hidden-xs">{% if user.role_upload() %}<span class="glyphicon glyphicon-ok"></span>{% else %}<span class="glyphicon glyphicon-remove"></span>{% endif %}</td>
|
||||||
<td>{% if user.role_edit() %}<span class="glyphicon glyphicon-ok"></span>{% else %}<span class="glyphicon glyphicon-remove"></span>{% endif %}</td>
|
<td class="hidden-xs">{% if user.role_edit() %}<span class="glyphicon glyphicon-ok"></span>{% else %}<span class="glyphicon glyphicon-remove"></span>{% endif %}</td>
|
||||||
</tr>
|
</tr>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
@ -36,14 +36,14 @@
|
||||||
<th>{{_('SMTP port')}}</th>
|
<th>{{_('SMTP port')}}</th>
|
||||||
<th>{{_('SSL')}}</th>
|
<th>{{_('SSL')}}</th>
|
||||||
<th>{{_('SMTP login')}}</th>
|
<th>{{_('SMTP login')}}</th>
|
||||||
<th>{{_('From mail')}}</th>
|
<th class="hidden-xs">{{_('From mail')}}</th>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{email.mail_server}}</td>
|
<td>{{email.mail_server}}</td>
|
||||||
<td>{{email.mail_port}}</td>
|
<td>{{email.mail_port}}</td>
|
||||||
<td>{% if email.mail_use_ssl %}<span class="glyphicon glyphicon-ok"></span>{% else %}<span class="glyphicon glyphicon-remove"></span>{% endif %}</td>
|
<td>{% if email.mail_use_ssl %}<span class="glyphicon glyphicon-ok"></span>{% else %}<span class="glyphicon glyphicon-remove"></span>{% endif %}</td>
|
||||||
<td>{{email.mail_login}}</td>
|
<td>{{email.mail_login}}</td>
|
||||||
<td>{{email.mail_from}}</td>
|
<td class="hidden-xs">{{email.mail_from}}</td>
|
||||||
</table>
|
</table>
|
||||||
<div class="btn btn-default" id="admin_edit_email"><a href="{{url_for('edit_mailsettings')}}">{{_('Change SMTP settings')}}</a></div>
|
<div class="btn btn-default" id="admin_edit_email"><a href="{{url_for('edit_mailsettings')}}">{{_('Change SMTP settings')}}</a></div>
|
||||||
<div id="container">
|
<div id="container">
|
||||||
|
@ -54,7 +54,7 @@
|
||||||
<div class="col-xs-6 col-sm-6">{{config.config_calibre_dir}}</div>
|
<div class="col-xs-6 col-sm-6">{{config.config_calibre_dir}}</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="Row">
|
<div class="Row">
|
||||||
<div class="col-xs-6 col-sm-6">{{_('Log Level')}}</div>
|
<div class="col-xs-6 col-sm-6">{{_('Log level')}}</div>
|
||||||
<div class="col-xs-6 col-sm-6">{{config.get_Log_Level()}}</div>
|
<div class="col-xs-6 col-sm-6">{{config.get_Log_Level()}}</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="Row">
|
<div class="Row">
|
||||||
|
@ -71,12 +71,16 @@
|
||||||
<div class="col-xs-6 col-sm-7">{{_('Uploading')}}</div>
|
<div class="col-xs-6 col-sm-7">{{_('Uploading')}}</div>
|
||||||
<div class="col-xs-6 col-sm-5">{% if config.config_uploading %}<span class="glyphicon glyphicon-ok"></span>{% else %}<span class="glyphicon glyphicon-remove"></span>{% endif %}</div>
|
<div class="col-xs-6 col-sm-5">{% if config.config_uploading %}<span class="glyphicon glyphicon-ok"></span>{% else %}<span class="glyphicon glyphicon-remove"></span>{% endif %}</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="Row">
|
||||||
|
<div class="col-xs-6 col-sm-7">{{_('Anonymous browsing')}}</div>
|
||||||
|
<div class="col-xs-6 col-sm-5">{% if config.config_anonbrowse %}<span class="glyphicon glyphicon-ok"></span>{% else %}<span class="glyphicon glyphicon-remove"></span>{% endif %}</div>
|
||||||
|
</div>
|
||||||
<div class="Row">
|
<div class="Row">
|
||||||
<div class="col-xs-6 col-sm-7">{{_('Public registration')}}</div>
|
<div class="col-xs-6 col-sm-7">{{_('Public registration')}}</div>
|
||||||
<div class="col-xs-6 col-sm-5">{% if config.config_public_reg %}<span class="glyphicon glyphicon-ok"></span>{% else %}<span class="glyphicon glyphicon-remove"></span>{% endif %}</div>
|
<div class="col-xs-6 col-sm-5">{% if config.config_public_reg %}<span class="glyphicon glyphicon-ok"></span>{% else %}<span class="glyphicon glyphicon-remove"></span>{% endif %}</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="Row">
|
<div class="Row">
|
||||||
<div class="col-xs-6 col-sm-7">{{_('Remote Login')}}</div>
|
<div class="col-xs-6 col-sm-7">{{_('Remote login')}}</div>
|
||||||
<div class="col-xs-6 col-sm-5">{% if config.config_remote_login %}<span class="glyphicon glyphicon-ok"></span>{% else %}<span class="glyphicon glyphicon-remove"></span>{% endif %}</div>
|
<div class="col-xs-6 col-sm-5">{% if config.config_remote_login %}<span class="glyphicon glyphicon-ok"></span>{% else %}<span class="glyphicon glyphicon-remove"></span>{% endif %}</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -765,7 +765,7 @@ msgid "Public registration"
|
||||||
msgstr "Öffentliche Registrierung"
|
msgstr "Öffentliche Registrierung"
|
||||||
|
|
||||||
#: cps/templates/admin.html:79 cps/templates/remote_login.html:4
|
#: cps/templates/admin.html:79 cps/templates/remote_login.html:4
|
||||||
msgid "Remote Login"
|
msgid "Remote login"
|
||||||
msgstr "Remote Login"
|
msgstr "Remote Login"
|
||||||
|
|
||||||
#: cps/templates/admin.html:89
|
#: cps/templates/admin.html:89
|
||||||
|
@ -1060,7 +1060,7 @@ msgstr "Öffentliche Registrierung aktivieren"
|
||||||
|
|
||||||
#: cps/templates/config_edit.html:146
|
#: cps/templates/config_edit.html:146
|
||||||
msgid "Enable remote login (\"magic link\")"
|
msgid "Enable remote login (\"magic link\")"
|
||||||
msgstr "Remote login aktivieren (\"Magischer Link\")"
|
msgstr "Remote Login aktivieren (\"Magischer Link\")"
|
||||||
|
|
||||||
#: cps/templates/config_edit.html:151
|
#: cps/templates/config_edit.html:151
|
||||||
msgid "Use"
|
msgid "Use"
|
||||||
|
|
|
@ -746,7 +746,7 @@ msgid "Public registration"
|
||||||
msgstr "Registro público"
|
msgstr "Registro público"
|
||||||
|
|
||||||
#: cps/templates/admin.html:79 cps/templates/remote_login.html:4
|
#: cps/templates/admin.html:79 cps/templates/remote_login.html:4
|
||||||
msgid "Remote Login"
|
msgid "Remote login"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: cps/templates/admin.html:89
|
#: cps/templates/admin.html:89
|
||||||
|
|
|
@ -756,7 +756,7 @@ msgid "Public registration"
|
||||||
msgstr "Inscription public"
|
msgstr "Inscription public"
|
||||||
|
|
||||||
#: cps/templates/admin.html:79 cps/templates/remote_login.html:4
|
#: cps/templates/admin.html:79 cps/templates/remote_login.html:4
|
||||||
msgid "Remote Login"
|
msgid "Remote login"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: cps/templates/admin.html:89
|
#: cps/templates/admin.html:89
|
||||||
|
|
|
@ -752,7 +752,7 @@ msgid "Public registration"
|
||||||
msgstr "Registrazione pubblica"
|
msgstr "Registrazione pubblica"
|
||||||
|
|
||||||
#: cps/templates/admin.html:79 cps/templates/remote_login.html:4
|
#: cps/templates/admin.html:79 cps/templates/remote_login.html:4
|
||||||
msgid "Remote Login"
|
msgid "Remote login"
|
||||||
msgstr "Login remoto"
|
msgstr "Login remoto"
|
||||||
|
|
||||||
#: cps/templates/admin.html:89
|
#: cps/templates/admin.html:89
|
||||||
|
|
|
@ -741,7 +741,7 @@ msgid "Public registration"
|
||||||
msgstr "公的登録"
|
msgstr "公的登録"
|
||||||
|
|
||||||
#: cps/templates/admin.html:79 cps/templates/remote_login.html:4
|
#: cps/templates/admin.html:79 cps/templates/remote_login.html:4
|
||||||
msgid "Remote Login"
|
msgid "Remote login"
|
||||||
msgstr "遠距離ログイン"
|
msgstr "遠距離ログイン"
|
||||||
|
|
||||||
#: cps/templates/admin.html:89
|
#: cps/templates/admin.html:89
|
||||||
|
|
|
@ -742,7 +742,7 @@ msgid "Public registration"
|
||||||
msgstr "ការចុះឈ្មាះសាធារណៈ"
|
msgstr "ការចុះឈ្មាះសាធារណៈ"
|
||||||
|
|
||||||
#: cps/templates/admin.html:79 cps/templates/remote_login.html:4
|
#: cps/templates/admin.html:79 cps/templates/remote_login.html:4
|
||||||
msgid "Remote Login"
|
msgid "Remote login"
|
||||||
msgstr "ការចូលប្រើប្រាស់ពីចម្ងាយ"
|
msgstr "ការចូលប្រើប្រាស់ពីចម្ងាយ"
|
||||||
|
|
||||||
#: cps/templates/admin.html:89
|
#: cps/templates/admin.html:89
|
||||||
|
|
|
@ -758,7 +758,7 @@ msgid "Public registration"
|
||||||
msgstr "Publieke registratie"
|
msgstr "Publieke registratie"
|
||||||
|
|
||||||
#: cps/templates/admin.html:79 cps/templates/remote_login.html:4
|
#: cps/templates/admin.html:79 cps/templates/remote_login.html:4
|
||||||
msgid "Remote Login"
|
msgid "Remote login"
|
||||||
msgstr "Login op afstand"
|
msgstr "Login op afstand"
|
||||||
|
|
||||||
#: cps/templates/admin.html:89
|
#: cps/templates/admin.html:89
|
||||||
|
|
|
@ -745,7 +745,7 @@ msgid "Public registration"
|
||||||
msgstr "Publiczna rejestracja"
|
msgstr "Publiczna rejestracja"
|
||||||
|
|
||||||
#: cps/templates/admin.html:79 cps/templates/remote_login.html:4
|
#: cps/templates/admin.html:79 cps/templates/remote_login.html:4
|
||||||
msgid "Remote Login"
|
msgid "Remote login"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: cps/templates/admin.html:89
|
#: cps/templates/admin.html:89
|
||||||
|
|
|
@ -747,7 +747,7 @@ msgid "Public registration"
|
||||||
msgstr "Публичная регистрация"
|
msgstr "Публичная регистрация"
|
||||||
|
|
||||||
#: cps/templates/admin.html:79 cps/templates/remote_login.html:4
|
#: cps/templates/admin.html:79 cps/templates/remote_login.html:4
|
||||||
msgid "Remote Login"
|
msgid "Remote login"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: cps/templates/admin.html:89
|
#: cps/templates/admin.html:89
|
||||||
|
|
|
@ -747,7 +747,7 @@ msgid "Public registration"
|
||||||
msgstr "开放注册"
|
msgstr "开放注册"
|
||||||
|
|
||||||
#: cps/templates/admin.html:79 cps/templates/remote_login.html:4
|
#: cps/templates/admin.html:79 cps/templates/remote_login.html:4
|
||||||
msgid "Remote Login"
|
msgid "Remote login"
|
||||||
msgstr "远程登录"
|
msgstr "远程登录"
|
||||||
|
|
||||||
#: cps/templates/admin.html:89
|
#: cps/templates/admin.html:89
|
||||||
|
|
|
@ -3184,7 +3184,7 @@ def edit_book(book_id):
|
||||||
title=_(u"edit metadata"), page="editbook")
|
title=_(u"edit metadata"), page="editbook")
|
||||||
|
|
||||||
# Update book
|
# Update book
|
||||||
edited_books_id = {}
|
edited_books_id = set()
|
||||||
|
|
||||||
# Check and handle Uploaded file
|
# Check and handle Uploaded file
|
||||||
if 'btn-upload-format' in request.files:
|
if 'btn-upload-format' in request.files:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user