{% from 'macro.html' import comment_html with context %}
<div class="modal-header">
    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
    <h3>{{ page_title }}</h3>
</div>
<div class="modal-body">
    <div class="comment-item" id="{{ comment.local_id }}">
        {{ comment_html(comment, with_controls=False, with_vote=False) }}
    </div>
</div>
<div class="modal-footer">
    <form method="POST" action="{{ url_for('news_comment.restore', news_id=newsitem.id, local_id=comment.local_id) }}" style="margin: 0">
        <button class="btn" data-dismiss="modal" aria-hidden="true">Отменить</button>
        <button type="submit" class="btn btn-danger ajax_comment_restore">Восстановить комментарий</a>
    </form>
</div>
