{% extends 'pybb/base.html' %} {% load url from future %} {% load i18n pybb_tags %} {% pybb_get_profile user=message.sender as sender_profile %} {% pybb_get_profile user=request.user as user_profile %} {% block content %}
# {% pybb_time message.sent %} | |
---|---|
{% include "pybb/avatar.html" with user=message.sender %}
{{ post.user_ip }}
{% endif %}
{% comment %} TODO Maybe allow sender to edit post while it is unread?
{% if post|pybb_posted_by:user %}
{% trans "Edit" %}
{% endif %}
{% if user.is_moderator %}
{% trans "Delete" %}
{% if post.on_moderation %}
{% trans "Approve post" %}
{% endif %}
{% endif %}
{% if perms.pybb.change_post and user.is_staff %}
{% trans 'Admin' %}
{% endif %}
{% endcomment %}
|
{% if request.user.is_superuser %}
{{ message.body_html|safe }}
{% if user_profile.show_signatures and sender_profile.signature %}
{{ sender_profile.signature_html|safe }}
{% endif %}
{% comment %} TODO reply buttons
{% endcomment %}
|