You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
81 lines
3.5 KiB
HTML
81 lines
3.5 KiB
HTML
10 years ago
|
{% extends "layout.html" %}
|
||
|
{% block body %}
|
||
|
<div class="discover">
|
||
8 years ago
|
<h2>{{_('User list')}}</h2>
|
||
10 years ago
|
<table class="table table-striped">
|
||
|
<tr>
|
||
8 years ago
|
<th>{{_('Nickname')}}</th>
|
||
|
<th>{{_('Email')}}</th>
|
||
|
<th>{{_('Kindle')}}</th>
|
||
|
<th>{{_('DLS')}}</th>
|
||
|
<th>{{_('Admin')}}</th>
|
||
|
<th>{{_('Download')}}</th>
|
||
|
<th>{{_('Upload')}}</th>
|
||
|
<th>{{_('Edit')}}</th>
|
||
|
<th>{{_('Passwd')}}</th>
|
||
9 years ago
|
|
||
10 years ago
|
</tr>
|
||
|
{% for user in content %}
|
||
|
<tr>
|
||
|
<td><a href="{{url_for('edit_user', user_id=user.id)}}">{{user.nickname}}</a></td>
|
||
|
<td>{{user.email}}</td>
|
||
|
<td>{{user.kindle_mail}}</td>
|
||
|
<td>{{user.downloads.count()}}</td>
|
||
9 years ago
|
<td>{% 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>{% 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>
|
||
9 years ago
|
<td>{% if user.role_passwd() %}<span class="glyphicon glyphicon-ok"></span>{% else %}<span class="glyphicon glyphicon-remove"></span>{% endif %}</td>
|
||
|
|
||
10 years ago
|
{% endfor %}
|
||
10 years ago
|
</table>
|
||
8 years ago
|
<div class="btn btn-default"><a href="{{url_for('new_user')}}">{{_('Add new user')}}</a></div>
|
||
|
<h2>{{_('SMTP mail settings')}}</h2>
|
||
10 years ago
|
<table class="table table-striped">
|
||
|
<tr>
|
||
8 years ago
|
<th>{{_('SMTP hostname')}}</th>
|
||
|
<th>{{_('SMTP port')}}</th>
|
||
|
<th>{{_('SSL')}}</th>
|
||
|
<th>{{_('SMTP login')}}</th>
|
||
|
<th>{{_('SMTP password')}}</th>
|
||
|
<th>{{_('From mail')}}</th>
|
||
10 years ago
|
</tr>
|
||
|
<tr>
|
||
|
<td>{{email.mail_server}}</td>
|
||
|
<td>{{email.mail_port}}</td>
|
||
9 years ago
|
<td>{% if email.mail_use_ssl %}<span class="glyphicon glyphicon-ok"></span>{% else %}<span class="glyphicon glyphicon-remove"></span>{% endif %}</td>
|
||
10 years ago
|
<td>{{email.mail_login}}</td>
|
||
|
<td>********</td>
|
||
|
<td>{{email.mail_from}}</td>
|
||
|
|
||
|
</table>
|
||
|
|
||
8 years ago
|
<div class="btn btn-default"><a href="{{url_for('edit_mailsettings')}}">{{_('Change SMTP settings')}}</a></div>
|
||
10 years ago
|
|
||
8 years ago
|
<h2>{{_('Configuration')}}</h2>
|
||
|
<table class="table table-striped">
|
||
|
<tr>
|
||
|
<th>{{_('Log File')}}</th>
|
||
|
<th>{{_('Log Level')}}</th>
|
||
|
<th>{{_('Port')}}</th>
|
||
|
<th>{{_('Books per page')}}</th>
|
||
|
<th>{{_('Uploading')}}</th>
|
||
|
<th>{{_('Public registration')}}</th>
|
||
|
<th>{{_('Anonymous browsing')}}</th>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td>{{config.LOG_DIR}}</td>
|
||
|
<td>{{config.LOG_DIR}}</td>
|
||
|
<td>{{config.PORT}}</td>
|
||
|
<td>{{config.NEWEST_BOOKS}}</td>
|
||
|
<td>{% if config.UPLOADING %}<span class="glyphicon glyphicon-ok"></span>{% else %}<span class="glyphicon glyphicon-remove"></span>{% endif %}</td>
|
||
|
<td>{% if config.PUBLIC_REG %}<span class="glyphicon glyphicon-ok"></span>{% else %}<span class="glyphicon glyphicon-remove"></span>{% endif %}</td>
|
||
|
<td>{% if config.ANON_BROWSE %}<span class="glyphicon glyphicon-ok"></span>{% else %}<span class="glyphicon glyphicon-remove"></span>{% endif %}</td>
|
||
|
</table>
|
||
|
<h2>{{_('Administration')}}</h2>
|
||
|
{% if not config.DEVELOPMENT %}
|
||
|
<div class="btn btn-default"><a href="{{url_for('shutdown')}}">{{_('Restart Calibre-web')}}</a></div>
|
||
|
{% endif %}
|
||
10 years ago
|
</div>
|
||
|
{% endblock %}
|