2023-11-30 06:36:08 +13:00
|
|
|
{% extends "base.html" %}
|
|
|
|
{% from 'bootstrap/form.html' import render_form %}
|
|
|
|
|
|
|
|
{% block app_content %}
|
|
|
|
<div class="row">
|
|
|
|
<div class="col col-login mx-auto">
|
|
|
|
<div class="card mt-5">
|
|
|
|
<div class="card-body p-6">
|
|
|
|
<div class="card-title">{{ _('Options for "%(post_title)s"', post_title=post.title) }}</div>
|
2023-11-30 20:57:51 +13:00
|
|
|
<ul class="option_list">
|
|
|
|
{% if current_user.is_authenticated and (post.user_id == current_user.id or post.community.is_moderator()) %}
|
|
|
|
<li><a href="{{ url_for('post.post_edit', post_id=post.id) }}" class="no-underline" rel="nofollow"><span class="fe fe-edit"></span> Edit</a></li>
|
|
|
|
<li><a href="{{ url_for('post.post_delete', post_id=post.id) }}" class="no-underline confirm_first" rel="nofollow"><span class="fe fe-delete"></span> Delete</a></li>
|
2023-11-30 06:36:08 +13:00
|
|
|
{% endif %}
|
|
|
|
{% if post.user_id != current_user.id %}
|
2023-11-30 20:57:51 +13:00
|
|
|
<li><a href="{{ url_for('post.post_report', post_id=post.id) }}" class="no-underline"><span class="fe fe-report"></span> Report</a></li>
|
2023-11-30 06:36:08 +13:00
|
|
|
{% endif %}
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|