]> git.openstreetmap.org Git - osqa.git/blob - forum/skins/default/templates/user.html
Closing OSQA 35. Give admins and moderators an easy way to award karma points.
[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 {% load smart_if %}
7
8 {% block title %}{% spaceless %}{{ page_title }}{% endspaceless %}{% endblock %}
9 {% block forestyle%}
10     <style type="text/css">
11                 .history-table td { padding: 5px; }
12                 .user-stats-table { margin-left:50px; }
13         </style>
14 {% endblock %}
15 {% block forejs %}
16     {% if request.user.is_superuser or request.user == view_user %}
17         <script type='text/javascript' src='{% media  "/media/js/jquery.form.js" %}'></script>
18         <script type="text/javascript">google.load("jquery", "1.4.2");google.load("jqueryui", "1.8.1");</script>
19         <script src="{% media "/media/js/osqa.user.js" %}" type="text/javascript"></script>
20
21         <link rel="stylesheet" href="http://jquery-ui.googlecode.com/svn/tags/latest/themes/base/jquery-ui.css" type="text/css" media="all" />
22         <link rel="stylesheet" href="http://static.jquery.com/ui/css/demo-docs-theme/ui.theme.css" type="text/css" media="all" />
23         <link rel="stylesheet" type="text/css" media="screen" href="{% media "/media/style/user.css" %}"/>
24     {% endif %}
25     <script type="text/javascript">
26         var viewUserID = {{view_user.id}};
27         $().ready(function(){
28             {% ifequal view_user request.user%}
29                 $("#nav_profile").attr('className',"on");
30             {% else %}
31                 $("#nav_users").attr('className',"on");
32             {% endifequal %}
33         });
34     </script>
35     {% block userjs %}
36     {% endblock %}
37 {% endblock %}
38 {% block content %}
39     <div id="mainbar-full">
40         {% include "users/info.html" %}
41         {% include "users/tabs.html" %}
42         {% block usercontent %}
43         {% endblock %}
44         {%comment%}{% include "users/footer.html" %}{%endcomment%}
45         </div>
46 {% endblock %}<!-- end user.html -->