{% load pybb_tags %} {% pybb_get_profile user=post.user as post_user_profile %} {% pybb_get_profile user=user as user_profile %} {# may be remove this string? #}
# {% pybb_time post.created %} | |
---|---|
{% include "pybb/avatar.html" with user=post.user %}
{% trans "Rank" %}: {{ post_user_profile.rank }}
{% if user.is_authenticated and user != post.user %}
+
-
{% endif %}
{% endif %}
{% if user.is_superuser %}
{{ post.user_ip }}
{% endif %}
{% if user.is_moderator or 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 %}
|
{% if post_user_profile.rank %}
{{ post.body_html|safe }}
{% if not user.is_authenticated or user_profile.show_signatures %}
{% if post_user_profile.signature %}
{{ post_user_profile.signature_html|safe }}
{% endif %}
{% endif %}
{% if post.updated %}
{% endif %}
{% comment %}
{% if post.attachment_cache %}
{% for attach in post.attachment_cache %}
{% trans "Attachment" %}: {{ attach.name }} ({{ attach.size_display }}) {% endfor %} {% endif %} {% endcomment %} |