{% extends 'base.html' %} {% block title %}Admin Dashboard - Prompt Manager{% endblock %} {% block content %}

Control Center

System Management & Moderation

{{ current_user.username }}
{% if pending_images|length > 0 %}
Queue ({{ pending_images|length }})
{% for img in pending_images %}
{% endfor %}
{% else %}

All Caught Up!

暂时没有待审核的作品,喝杯咖啡吧。

{% endif %}
Library ({{ approved_pagination.total }})
{% for img in approved_pagination.items %}
{% if img.type == 'img2img' %} I2I {% endif %}
{{ img.title }}
{{ img.author }} {{ img.created_at.strftime('%Y-%m-%d') }}
{% for tag in img.tags[:3] %} {{ tag.name }} {% endfor %} {% if img.tags|length > 3 %} +{{ img.tags|length - 3 }} {% endif %}
{% else %}

暂无相关数据

{% endfor %}
{% if approved_pagination.pages > 1 %}
{% endif %}
访客可见性设置

允许未登录访客在“关于”页面切换敏感内容显示。
关闭后,敏感内容仅管理员可见。

{{ 'Access Allowed' if allow_sensitive_toggle else 'Access Denied' }}
发布审核策略 (Moderation Policy)

开启后,用户上传的作品需管理员审核通过后才会显示。

画廊 (Gallery) {{ '需人工审核' if approval_settings.gallery else '自动发布' }}
模板 (Template) {{ '需人工审核' if approval_settings.template else '自动发布' }}
数据备份 (Backup)

生成包含所有图片原图、Prompt 和元数据的完整 ZIP 归档。

Images {{ stats.total_images }}
Tags {{ stats.total_tags }}
数据恢复 (Restore)

上传之前导出的 ZIP 包以恢复或迁移数据。重复图片将被自动跳过。

{% endblock %}