You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
2.5 KiB
46 lines
2.5 KiB
{% extends "base.html" %}
|
|
{% block title %}服务管理 - 邮件系统{% endblock %}
|
|
{% block content %}
|
|
<div class="main-layout">
|
|
<div class="sidebar">
|
|
<a href="{{ url_for('admin_dashboard') }}">📊 仪表盘</a>
|
|
<a href="{{ url_for('admin_users') }}">👥 用户管理</a>
|
|
<a href="{{ url_for('admin_services') }}" class="active">⚙️ 服务管理</a>
|
|
<a href="{{ url_for('admin_settings') }}">🔧 系统设置</a>
|
|
<a href="{{ url_for('admin_filters') }}">🛡️ 过滤规则</a>
|
|
<a href="{{ url_for('admin_logs') }}">📋 日志管理</a>
|
|
<a href="{{ url_for('admin_broadcast') }}">📢 群发邮件</a>
|
|
<hr style="margin: 1rem 0;">
|
|
<a href="{{ url_for('inbox') }}">← 返回邮箱</a>
|
|
</div>
|
|
<div class="main-content">
|
|
<h2 style="margin-bottom: 1.5rem;">服务管理</h2>
|
|
<div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem;">
|
|
<div class="card">
|
|
<h3 style="margin-bottom: 1rem;">📤 SMTP 服务</h3>
|
|
<p style="color: #6b7280; margin-bottom: 0.5rem;">端口: {{ config.smtp_port }}</p>
|
|
<p style="margin-bottom: 1rem;">
|
|
状态: <span class="badge {% if smtp_status %}badge-success{% else %}badge-danger{% endif %}">{{ '运行中'
|
|
if smtp_status else '已停止' }}</span>
|
|
</p>
|
|
<a href="{{ url_for('admin_toggle_service', service='smtp') }}"
|
|
class="btn {% if smtp_status %}btn-danger{% else %}btn-success{% endif %}">
|
|
{{ '停止服务' if smtp_status else '启动服务' }}
|
|
</a>
|
|
</div>
|
|
<div class="card">
|
|
<h3 style="margin-bottom: 1rem;">📥 POP3 服务</h3>
|
|
<p style="color: #6b7280; margin-bottom: 0.5rem;">端口: {{ config.pop3_port }}</p>
|
|
<p style="margin-bottom: 1rem;">
|
|
状态: <span class="badge {% if pop3_status %}badge-success{% else %}badge-danger{% endif %}">{{ '运行中'
|
|
if pop3_status else '已停止' }}</span>
|
|
</p>
|
|
<a href="{{ url_for('admin_toggle_service', service='pop3') }}"
|
|
class="btn {% if pop3_status %}btn-danger{% else %}btn-success{% endif %}">
|
|
{{ '停止服务' if pop3_status else '启动服务' }}
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endblock %} |