Add a client setup page, fixes #342
This commit is contained in:
65
core/admin/mailu/ui/templates/client.html
Normal file
65
core/admin/mailu/ui/templates/client.html
Normal file
@@ -0,0 +1,65 @@
|
|||||||
|
{% extends "base.html" %}
|
||||||
|
|
||||||
|
{% block title %}
|
||||||
|
{% trans %}Client setup{% endtrans %}
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
|
{% block subtitle %}
|
||||||
|
configure your email client
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
|
{% block content %}
|
||||||
|
{% call macros.box(title="Incoming mail") %}
|
||||||
|
<table class="table table-bordered">
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<th>{% trans %}Mail protocol{% endtrans %}</th>
|
||||||
|
<td>IMAP</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>{% trans %}TCP port{% endtrans %}</th>
|
||||||
|
<td>{{ "143" if config["TLS_FLAVOR"] == "notls" else "993 (TLS) or 143 (STARTTLS)" }}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>{% trans %}Server name{% endtrans %}</th>
|
||||||
|
<td><pre>{{ config["HOSTNAMES"].split(',')[0] }}</pre></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>{% trans %}Username{% endtrans %}</th>
|
||||||
|
<td><pre>{{ current_user or "******" }}</pre></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>{% trans %}Password{% endtrans %}</th>
|
||||||
|
<td><pre>*******</pre></td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
{% endcall %}
|
||||||
|
|
||||||
|
{% call macros.box(title="Outgoing mail") %}
|
||||||
|
<table class="table table-bordered">
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<th>{% trans %}Mail protocol{% endtrans %}</th>
|
||||||
|
<td>SMTP</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>{% trans %}TCP port{% endtrans %}</th>
|
||||||
|
<td>{{ "25" if config["TLS_FLAVOR"] == "notls" else "465 (TLS) or 587 (STARTTLS)" }}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>{% trans %}Server name{% endtrans %}</th>
|
||||||
|
<td><pre>{{ config["HOSTNAMES"].split(',')[0] }}</pre></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>{% trans %}Username{% endtrans %}</th>
|
||||||
|
<td><pre>{{ current_user or "******" }}</pre></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>{% trans %}Password{% endtrans %}</th>
|
||||||
|
<td><pre>*******</pre></td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
{% endcall %}
|
||||||
|
{% endblock %}
|
||||||
@@ -77,6 +77,11 @@
|
|||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
<li>
|
||||||
|
<a href="{{ url_for('.client') }}">
|
||||||
|
<i class="fa fa-laptop"></i> <span>{% trans %}Client setup{% endtrans %}</span>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a href="{{ config["WEBSITE"] }}">
|
<a href="{{ config["WEBSITE"] }}">
|
||||||
<i class="fa fa-globe"></i> <span>{% trans %}Website{% endtrans %}</span>
|
<i class="fa fa-globe"></i> <span>{% trans %}Website{% endtrans %}</span>
|
||||||
|
|||||||
@@ -58,3 +58,8 @@ def announcement():
|
|||||||
form.announcement_body.data = ''
|
form.announcement_body.data = ''
|
||||||
flask.flash('Your announcement was sent', 'success')
|
flask.flash('Your announcement was sent', 'success')
|
||||||
return flask.render_template('announcement.html', form=form)
|
return flask.render_template('announcement.html', form=form)
|
||||||
|
|
||||||
|
|
||||||
|
@ui.route('/client', methods=['GET'])
|
||||||
|
def client():
|
||||||
|
return flask.render_template('client.html')
|
||||||
|
|||||||
Reference in New Issue
Block a user