adds feature #444

This commit is contained in:
Nathan Dinsmore 2013-02-03 19:55:10 -05:00
parent 18e1efac47
commit c04f72a33a

View file

@ -123,20 +123,22 @@
</div>
<div class="postfootright">
<ul>
{% if user.is_authenticated %}
<li class="postreport"><a href="{% url djangobb:misc %}?action=report&amp;post_id={{ post.id }}">{% trans "Report" %}</a> </li>
{% if moderator or post|forum_equal_to:last_post %}
{% if moderator or post.user|forum_equal_to:user %}
<li class="postdelete">| <a onclick="return confirm('{% trans "Are you sure you want to delete this post?" %}')" href="{% url djangobb:delete_post post.id %}">{% trans "Delete" %}</a> </li>
{% if user.is_authenticated %}
<li class="postreport"><a href="{% url djangobb:misc %}?action=report&amp;post_id={{ post.id }}">{% trans "Report" %}</a> </li>
{% if reply_form %}
{% if moderator or post|forum_equal_to:last_post %}
{% if moderator or post.user|forum_equal_to:user %}
<li class="postdelete">| <a onclick="return confirm('{% trans "Are you sure you want to delete this post?" %}')" href="{% url djangobb:delete_post post.id %}">{% trans "Delete" %}</a> </li>
{% endif %}
{% endif %}
{% if moderator or post|forum_posted_by:user %}
{% if post in editable or can_edit %}
<li class="postedit">| <a href="{% url djangobb:edit_post post.id %}">{% trans "Edit" %}</a> </li>
{% endif %}
{% endif %}
<li class="postquote">| <a onclick="return copy_paste('p{{ post.id }}');" href="#reply" title="{% trans "Insert a quotation of this post in your reply." %}">{% trans "Quote" %}</a></li>
{% endif %}
{% endif %}
{% if moderator or post|forum_posted_by:user %}
{% if post in editable or can_edit %}
<li class="postedit">| <a href="{% url djangobb:edit_post post.id %}">{% trans "Edit" %}</a> </li>
{% endif %}
{% endif %}
<li class="postquote">| <a onclick="return copy_paste('p{{ post.id }}');" href="#reply" title="{% trans "Insert a quotation of this post in your reply." %}">{% trans "Quote" %}</a></li>
{% endif %}
</ul>
</div>
</div>