Skip to content

Commit

Permalink
django 1.5 support
Browse files Browse the repository at this point in the history
  • Loading branch information
slepa committed Dec 9, 2013
1 parent eaebc35 commit 36c25d3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions lbforum/templates/lbforum/inc_post_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,10 @@ <h3 class="hn post-ident">
<p class="post-actions">
<span class="quote-post"><a href="{% url 'lbforum_new_replay' topic_id=topic.pk %}?qid={{post.pk}}">{% trans "quote" %}</a></span>
{% if user == post.posted_by or user.is_staff %}
<span class="edit-post"><a href="{% url 'lbforum_post_edit' topic_id=post.pk %}">{% trans "edit" %}</a></span>
<span class="edit-post"><a href="{% url 'lbforum_post_edit' post_id=post.pk %}">{% trans "edit" %}</a></span>
{% endif %}
{% if user.is_staff and not post.topic_post %}
<span class="del-post"><a href="{% url 'lbforum_post_delete' topic_id=post.id %}" onclick="return confirm('{% trans "Do you want to delete it?" %}')">{% trans "delete" %}</a></span>
<span class="del-post"><a href="{% url 'lbforum_post_delete' post_id=post.id %}" onclick="return confirm('{% trans "Do you want to delete it?" %}')">{% trans "delete" %}</a></span>
{% endif %}
</p>
</div>
Expand Down
4 changes: 2 additions & 2 deletions lbforum/templates_v2ex/lbforum/inc_post_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@
&bull;
<a href="{% url 'lbforum_new_replay' topic_id=topic.pk %}?qid={{post.pk}}">{% trans "quote" %}</a>
{% if user == post.posted_by or user.is_staff %}
<a href="{% url 'lbforum_post_edit' topic_id=post.pk %}">{% trans "edit" %}</a>
<a href="{% url 'lbforum_post_edit' post_id=post.pk %}">{% trans "edit" %}</a>
{% endif %}
{% if user.is_staff and not post.topic_post %}
<a href="{% url 'lbforum_post_delete' topic_id=post.id %}" onclick="return confirm('{% trans "Do you want to delete it?" %}')">{% trans "delete" %}</a>
<a href="{% url 'lbforum_post_delete' post_id=post.id %}" onclick="return confirm('{% trans "Do you want to delete it?" %}')">{% trans "delete" %}</a>
{% endif %}
{% endif %}
</small>
Expand Down
2 changes: 1 addition & 1 deletion lbforum/templates_v2ex/lbforum/topic.html
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ <h1>{{topic}}</h1>
<div class="fr">
{% if user == post.posted_by or user.is_staff %}
<span>
<a href="{% url 'lbforum_post_edit' topic_id=post.pk %}">{% trans "edit" %}</a>
<a href="{% url 'lbforum_post_edit' post_id=post.pk %}">{% trans "edit" %}</a>
</span>
|
{% endif %}
Expand Down

0 comments on commit 36c25d3

Please sign in to comment.