X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/0f2d00f9d7d5d28149707f66c719b28edfe51aed..44a7a70655e9baca5545d7e5debb7965523a32a2:/forum/skins/default/templates/user.html diff --git a/forum/skins/default/templates/user.html b/forum/skins/default/templates/user.html index c1998f8..ec852cc 100644 --- a/forum/skins/default/templates/user.html +++ b/forum/skins/default/templates/user.html @@ -3,6 +3,8 @@ {% load extra_tags %} {% load extra_filters %} {% load humanize %} +{% load smart_if %} + {% block title %}{% spaceless %}{{ page_title }}{% endspaceless %}{% endblock %} {% block forestyle%} {% endblock %} {% block forejs %} - {% if request.user.is_superuser %} - - {% endif %} - + - $(document).ready( function(){ - var options = { - success: function(a,b){$('.admin #action_status').html($.i18n._('changes saved'));}, - dataType:'json', - timeout:5000, - url: scriptUrl + $.i18n._('moderate-user/') + viewUserID + '/' - }; - var form = $('.admin #moderate_user_form').ajaxForm(options); - var box = $('.admin input#id_is_approved').click(function(){ - $('.admin #action_status').html($.i18n._('sending data...')); - form.ajaxSubmit(options); - }); - }); - - {% block userjs %} - {% endblock %} + + + + {% endif %} + {% block userjs %}{% endblock %} {% endblock %} {% block content %}
@@ -47,6 +35,5 @@ {% include "users/tabs.html" %} {% block usercontent %} {% endblock %} - {%comment%}{% include "users/footer.html" %}{%endcomment%}
{% endblock %}