{% extends 'base.html' %} {% from 'bootstrap5/pagination.html' import render_pagination %} {% from 'macros.html' import render_inline_form %} {% block title %}Manage Comments{% endblock %} {% block content %}
| Author | Body | Date | Actions |
|---|---|---|---|
|
{% if comment.from_admin %}{{ admin.name }}{% else %}{{ comment.author }}{% endif %} {% if comment.site %} {{ comment.site }} {% endif %} {{ comment.email }} {% if comment.from_admin %} Admin {% endif %} |
{{ comment.body }} | {{ comment.created_at }} | {% if not comment.reviewed %} {{ render_inline_form( action=url_for('.approve_comment', comment_id=comment.id, next=request.full_path), button_style='outline-success', button_text='Approve', confirm=None, ) }} {% endif %} Post {{ render_inline_form( action=url_for('.delete_comment', comment_id=comment.id, next=request.full_path), button_style='outline-danger', button_text='Delete', ) }} |