X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/1a949f7c97dc2f34c135f5cdf088df2927d3d652..93aa3d97dc752c3d5f0c65ac5710753a4dcf3b2c:/forum/skins/default/templates/user.html diff --git a/forum/skins/default/templates/user.html b/forum/skins/default/templates/user.html index ad71505..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 %}
- {% include "user_info.html" %} - {% include "user_tabs.html" %} + {% include "users/info.html" %} + {% include "users/tabs.html" %} {% block usercontent %} {% endblock %} - {%comment%}{% include "user_footer.html" %}{%endcomment%}
{% endblock %}