]> git.openstreetmap.org Git - osqa.git/blob - forum/skins/default/templates/user.html
Closing http://jira.osqa.net/browse/OSQA-224
[osqa.git] / forum / skins / default / templates / user.html
1 {% extends "base_content.html" %}
2 <!-- user.html -->
3 {% load extra_tags %}
4 {% load extra_filters %}
5 {% load humanize %}
6 {% block title %}{% spaceless %}{{ page_title }}{% endspaceless %}{% endblock %}
7 {% block forestyle%}
8     <style type="text/css">
9                 .history-table td { padding: 5px; }
10                 .user-stats-table { margin-left:50px; }
11         </style>
12 {% endblock %}
13 {% block forejs %}
14     {% if request.user.is_superuser %}
15         <script type='text/javascript' src='{% media  "/media/js/jquery.form.js" %}'></script>
16     {% endif %}
17     <script type="text/javascript">
18         var viewUserID = {{view_user.id}};
19         $().ready(function(){
20             {% ifequal view_user request.user%}
21                 $("#nav_profile").attr('className',"on");
22             {% else %}
23                 $("#nav_users").attr('className',"on");
24             {% endifequal %}
25         });
26
27         $(document).ready( function(){
28             var options = {
29                            success: function(a,b){$('.admin #action_status').html($.i18n._('changes saved'));},
30                            dataType:'json',
31                            timeout:5000,
32                            url: scriptUrl + $.i18n._('moderate-user/') + viewUserID +  '/'
33                             };
34             var form = $('.admin #moderate_user_form').ajaxForm(options);
35             var box = $('.admin input#id_is_approved').click(function(){
36                 $('.admin #action_status').html($.i18n._('sending data...'));
37                 form.ajaxSubmit(options);
38             });
39         });
40     </script>
41     {% block userjs %}
42     {% endblock %}
43 {% endblock %}
44 {% block content %}
45     <div id="mainbar-full">
46         {% include "users/info.html" %}
47         {% include "users/tabs.html" %}
48         {% block usercontent %}
49         {% endblock %}
50         {%comment%}{% include "users/footer.html" %}{%endcomment%}
51         </div>
52 {% endblock %}<!-- end user.html -->