2015-08-02 20:59:11 +02:00
|
|
|
{% extends "layout.html" %}
|
|
|
|
{% block body %}
|
|
|
|
<div class="discover">
|
2015-08-02 21:23:24 +02:00
|
|
|
<h2>{{title}}</h2>
|
2015-08-02 20:59:11 +02:00
|
|
|
<table class="table table-striped">
|
|
|
|
<tr>
|
2016-11-09 19:24:33 +01:00
|
|
|
<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>
|
2016-04-27 10:35:23 +02:00
|
|
|
|
2015-08-02 20:59:11 +02:00
|
|
|
</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>
|
2016-04-27 10:35:23 +02:00
|
|
|
<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>
|
2016-04-27 16:00:58 +02:00
|
|
|
<td>{% if user.role_passwd() %}<span class="glyphicon glyphicon-ok"></span>{% else %}<span class="glyphicon glyphicon-remove"></span>{% endif %}</td>
|
|
|
|
|
2015-08-02 20:59:11 +02:00
|
|
|
{% endfor %}
|
2015-08-02 21:23:24 +02:00
|
|
|
</table>
|
2016-11-09 19:24:33 +01:00
|
|
|
<div class="btn btn-default"><a href="{{url_for('new_user')}}">{{_('Add new user')}}</a></div>
|
|
|
|
<h2>{{_('SMTP mail settings')}}</h2>
|
2015-08-02 21:23:24 +02:00
|
|
|
<table class="table table-striped">
|
|
|
|
<tr>
|
2016-11-09 19:24:33 +01:00
|
|
|
<th>{{_('SMTP hostname')}}</th>
|
|
|
|
<th>{{_('SMTP port')}}</th>
|
|
|
|
<th>{{_('SSL')}}</th>
|
|
|
|
<th>{{_('SMTP login')}}</th>
|
|
|
|
<th>{{_('SMTP password')}}</th>
|
|
|
|
<th>{{_('From mail')}}</th>
|
2015-08-02 21:23:24 +02:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>{{email.mail_server}}</td>
|
|
|
|
<td>{{email.mail_port}}</td>
|
2016-03-27 23:36:51 +02:00
|
|
|
<td>{% if email.mail_use_ssl %}<span class="glyphicon glyphicon-ok"></span>{% else %}<span class="glyphicon glyphicon-remove"></span>{% endif %}</td>
|
2015-08-02 21:23:24 +02:00
|
|
|
<td>{{email.mail_login}}</td>
|
|
|
|
<td>********</td>
|
|
|
|
<td>{{email.mail_from}}</td>
|
|
|
|
|
|
|
|
</table>
|
|
|
|
|
2016-11-09 19:24:33 +01:00
|
|
|
<div class="btn btn-default"><a href="{{url_for('edit_mailsettings')}}">{{_('Change SMTP settings')}}</a></div>
|
2015-08-02 20:59:11 +02:00
|
|
|
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|