diff options
Diffstat (limited to 'askbot/skins/default/templates/user_moderate.html')
-rw-r--r-- | askbot/skins/default/templates/user_moderate.html | 36 |
1 files changed, 17 insertions, 19 deletions
diff --git a/askbot/skins/default/templates/user_moderate.html b/askbot/skins/default/templates/user_moderate.html index 5edff0c2..168fe661 100644 --- a/askbot/skins/default/templates/user_moderate.html +++ b/askbot/skins/default/templates/user_moderate.html @@ -1,65 +1,63 @@ -{% extends "user.html" %} +{% extends "user.jinja.html" %} <!-- user_moderate.html --> -{% load i18n %} -{% load smart_if %} {% block usercontent %} {% if request.user != view_user %} - <h3>{% blocktrans with view_user.username as username and view_user.get_status_display as status %}{{username}}'s current status is "{{status}}"{% endblocktrans %} + <h3>{% trans username=view_user.username, status=view_user.get_status_display() %}{{username}}'s current status is "{{status}}"{% endtrans %} </h3> {% if user_status_changed %} - <p class="action-status"><span>{% trans "User status changed" %}</span></p> + <p class="action-status"><span>{% trans %}User status changed{% endtrans %}</span></p> {% endif %} <form method="post"> <input type="hidden" name="sort" value="moderate"/> <table class="form-as-table"> - {{ change_user_status_form.as_table }} + {{ change_user_status_form.as_table() }} </table> - <input type="submit" class="submit" name="change_status" value="{% trans "Save" %}" /> + <input type="submit" class="submit" name="change_status" value="{% trans %}Save{% endtrans %}" /> </form> {% endif %} <hr/> <h3> {% if request.user == view_user %} - {% blocktrans with view_user.reputation as reputation %}Your current reputation is {{reputation}} points{% endblocktrans %} + {% trans reputation=view_user.reputation %}Your current reputation is {{reputation}} points{% endtrans %} {% else %} - {% blocktrans with view_user.reputation as reputation %}User's current reputation is {{reputation}} points{% endblocktrans %} + {% trans reputation=view_user.reputation %}User's current reputation is {{reputation}} points{% endtrans %} {% endif %} </h3> {% if user_rep_changed %} - <p class="action-status"><span>{% trans "User reputation changed" %}</span></p> + <p class="action-status"><span>{% trans %}User reputation changed{% endtrans %}</span></p> {% endif %} <form method="post"> <input type="hidden" name="sort" value="moderate"/> <table class="form-as-table"> - {{ change_user_reputation_form.as_table }} + {{ change_user_reputation_form.as_table() }} </table> - <input type="submit" class="submit" name="subtract_reputation" value="{% trans "Subtract" %}" /> - <input type="submit" class="submit" name="add_reputation" value="{% trans "Add" %}" /> + <input type="submit" class="submit" name="subtract_reputation" value="{% trans %}Subtract{% endtrans %}" /> + <input type="submit" class="submit" name="add_reputation" value="{% trans %}Add{% endtrans %}" /> </form> {% if request.user != view_user %} <hr/> -<h3>{% blocktrans with view_user.username as username %}Send message to {{username}}{% endblocktrans %}</h3> -<p>{% trans "An email will be sent to the user with 'reply-to' field set to your email address. Please make sure that your address is entered correctly." %}</p> +<h3>{% trans username=view_user.username %}Send message to {{username}}{% endtrans %}</h3> +<p>{% trans %}An email will be sent to the user with 'reply-to' field set to your email address. Please make sure that your address is entered correctly.{% endtrans %}</p> {% if message_sent %} - <p class="action-status"><span>{% trans "Message sent" %}</span></p> + <p class="action-status"><span>{% trans %}Message sent{% endtrans %}</span></p> {% endif %} <form method="post"> <input type="hidden" name="sort" value="moderate"/> <div class="form-row-vertical"> <label for="id_subject_line">{{ send_message_form.subject_line.label}}</label> {% if send_message_form.subject_line.errors %} - <p class="error">{{send_message_form.subject_line.errors|join:', '}}</p> + <p class="error">{{send_message_form.subject_line.errors|join(', ')}}</p> {% endif %} {{ send_message_form.subject_line}} </div> <div class="form-row-vertical"> <label for="id_body_text">{{ send_message_form.body_text.label}}</label> {% if send_message_form.body_text.errors %} - <p class="error">{{send_message_form.body_text.errors|join:', '}}</p> + <p class="error">{{send_message_form.body_text.errors|join(', ')}}</p> {% endif %} {{ send_message_form.body_text}} </div> - <input type="submit" class="submit" name="send_message" value="{% trans "Send message" %}" /> + <input type="submit" class="submit" name="send_message" value="{% trans %}Send message{% endtrans %}" /> </form> {% endif %} {% endblock %} |