Files
luntan/app/templates/admin/reviews_posts.html

25 lines
851 B
HTML

{% extends 'base.html' %}
{% block title %}作品审核{% endblock %}
{% block content %}
<h3>作品审核</h3>
<table class="table">
<tr><th>标题</th><th>作者</th><th>操作</th></tr>
{% for p in posts %}
<tr>
<td>{{ p.title }}</td>
<td>{{ p.user.username }}</td>
<td>
<form method="post" action="{{ url_for('admin.approve_post', post_id=p.id) }}" style="display:inline">
<input type="hidden" name="csrf_token" value="{{ csrf_token }}">
<button class="btn btn-success">通过</button>
</form>
<form method="post" action="{{ url_for('admin.reject_post', post_id=p.id) }}" style="display:inline">
<input type="hidden" name="csrf_token" value="{{ csrf_token }}">
<button class="btn btn-danger">拒绝</button>
</form>
</td>
</tr>
{% endfor %}
</table>
{% endblock %}