]> git.openstreetmap.org Git - osqa.git/blob - forum/skins/default/templates/users/users.html
Fixes OSQA 393, cannot send feedback when user is authenticated.
[osqa.git] / forum / skins / default / templates / users / users.html
1 {% extends "base_content.html" %}
2 <!-- users.html -->
3 {% load extra_tags %}
4 {% load humanize %}
5 {% load i18n %}
6 {% block title %}{% spaceless %}{% trans "Users" %}{% endspaceless %}{% endblock %}
7 {% block forejs %}
8        <script type="text/javascript">
9            //todo move javascript out
10         $().ready(function(){
11             $("#type-user").attr('checked',true);
12             var orderby = "{{ tab_id }}";
13             $("#sort_" + orderby).attr('className',"on");
14             
15             Hilite.exact = false;
16             Hilite.elementid = "main-body";
17             Hilite.debug_referrer = location.href;
18         });
19         </script>
20 {% endblock %}
21 {% block content %}
22 <div class="tabBar">
23     <div class="headUsers">{% trans "Users" %}</div>
24     <div class="tabsA">
25         <a id="sort_reputation" href="{% url users %}?sort=reputation" class="off" title="{% trans "reputation" %}">{% trans "reputation" %}</a>
26         <a id="sort_newest" href="{% url users %}?sort=newest" class="off" title="{% trans "recent" %}">{% trans "recent" %}</a>
27         <a id="sort_last" href="{% url users %}?sort=last" class="off" title="{% trans "oldest" %}">{% trans "oldest" %}</a>
28         <a id="sort_user" href="{% url users %}?sort=user" class="off" title="{% trans "by username" %}">{% trans "by username" %}</a>
29     </div>
30 </div>
31 <div id="main-body" style="width:100%">
32     <p>        
33         {% if suser %}
34                         {% blocktrans %}users matching query {{suser}}:{% endblocktrans %}
35         {% endif %}
36     
37         {% if not users.object_list %}
38             <span>{% trans "Nothing found." %}</span>
39         {% endif %}
40     </p>
41     <div class="userList">
42         <table class="list-table">
43             <tr>    
44                 <td class="list-td">
45                     {% for user in users.object_list %}
46                     
47                     <div class="user">
48                         <ul>
49                             <li class="thumb"><a href="{{ user.get_profile_url }} ">{% gravatar user 32 %}</a></li>
50                             <li><a {% if user.is_suspended %}class="suspended-user" {% endif %}href="{{ user.get_profile_url }}">{{ user.decorated_name }}</a></li>
51                             <li>{% get_score_badge user %}</li>
52                         </ul>
53                     </div>
54                     
55             {% if forloop.counter|divisibleby:"7" %}
56                 </td>
57                 <td>
58             {% endif %}
59
60                     {% endfor %}
61                 </td>
62             </tr>   
63         </table>
64     </div>
65 </div>
66 {% endblock %}
67 {% block tail %}
68 <div class="pager">
69     {% cnprog_paginator context %}
70 </div>              
71 {% endblock %}
72 <!-- end users.html -->