Ticket #13344: 13344.diff
File 13344.diff, 5.3 KB (added by , 15 years ago) |
---|
-
contrib/comments/views/moderation.py
28 28 # Render a form on GET 29 29 else: 30 30 return render_to_response('comments/flag.html', 31 {'comment': comment, " next": next},31 {'comment': comment, "post_comment_next": next}, 32 32 template.RequestContext(request) 33 33 ) 34 34 … … 55 55 # Render a form on GET 56 56 else: 57 57 return render_to_response('comments/delete.html', 58 {'comment': comment, " next": next},58 {'comment': comment, "post_comment_next": next}, 59 59 template.RequestContext(request) 60 60 ) 61 61 … … 82 82 # Render a form on GET 83 83 else: 84 84 return render_to_response('comments/approve.html', 85 {'comment': comment, " next": next},85 {'comment': comment, "post_comment_next": next}, 86 86 template.RequestContext(request) 87 87 ) 88 88 -
contrib/comments/views/comments.py
96 96 template_list, { 97 97 "comment" : form.data.get("comment", ""), 98 98 "form" : form, 99 " next": next,99 "post_comment_next": next, 100 100 }, 101 101 RequestContext(request, {}) 102 102 ) -
contrib/comments/templates/comments/approve.html
7 7 <h1>{% trans "Really make this comment public?" %}</h1> 8 8 <blockquote>{{ comment|linebreaks }}</blockquote> 9 9 <form action="." method="post">{% csrf_token %} 10 {% if next %}<input type="hidden" name="next" value="{{next }}" id="next" />{% endif %}10 {% if post_comment_next %}<input type="hidden" name="next" value="{{ post_comment_next }}" id="next" />{% endif %} 11 11 <p class="submit"> 12 12 <input type="submit" name="submit" value="{% trans "Approve" %}" /> or <a href="{{ comment.get_absolute_url }}">cancel</a> 13 13 </p> -
contrib/comments/templates/comments/preview.html
6 6 {% block content %} 7 7 {% load comments %} 8 8 <form action="{% comment_form_target %}" method="post">{% csrf_token %} 9 {% if next %}<input type="hidden" name="next" value="{{next }}" />{% endif %}9 {% if post_comment_next %}<input type="hidden" name="next" value="{{ post_comment_next }}" />{% endif %} 10 10 {% if form.errors %} 11 11 <h1>{% blocktrans count form.errors|length as counter %}Please correct the error below{% plural %}Please correct the errors below{% endblocktrans %}</h1> 12 12 {% else %} -
contrib/comments/templates/comments/delete.html
7 7 <h1>{% trans "Really remove this comment?" %}</h1> 8 8 <blockquote>{{ comment|linebreaks }}</blockquote> 9 9 <form action="." method="post">{% csrf_token %} 10 {% if next %}<input type="hidden" name="next" value="{{next }}" id="next" />{% endif %}10 {% if post_comment_next %}<input type="hidden" name="next" value="{{ post_comment_next }}" id="next" />{% endif %} 11 11 <p class="submit"> 12 12 <input type="submit" name="submit" value="{% trans "Remove" %}" /> or <a href="{{ comment.get_absolute_url }}">cancel</a> 13 13 </p> -
contrib/comments/templates/comments/form.html
1 1 {% load comments i18n %} 2 2 <form action="{% comment_form_target %}" method="post">{% csrf_token %} 3 {% if next %}<input type="hidden" name="next" value="{{next }}" />{% endif %}3 {% if post_comment_next %}<input type="hidden" name="next" value="{{ post_comment_next }}" />{% endif %} 4 4 {% for field in form %} 5 5 {% if field.is_hidden %} 6 6 {{ field }} -
contrib/comments/templates/comments/flag.html
7 7 <h1>{% trans "Really flag this comment?" %}</h1> 8 8 <blockquote>{{ comment|linebreaks }}</blockquote> 9 9 <form action="." method="post">{% csrf_token %} 10 {% if next %}<input type="hidden" name="next" value="{{next }}" id="next" />{% endif %}10 {% if post_comment_next %}<input type="hidden" name="next" value="{{ post_comment_next }}" id="next" />{% endif %} 11 11 <p class="submit"> 12 12 <input type="submit" name="submit" value="{% trans "Flag" %}" /> or <a href="{{ comment.get_absolute_url }}">cancel</a> 13 13 </p>