]> git.openstreetmap.org Git - osqa.git/blob - forum/skins/default/templates/users.html
fix in email sender, it was aplitting the attachments, or creating multiple, don...
[osqa.git] / forum / skins / default / templates / 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             $("#nav_users").attr('className',"on");
12             $("#type-user").attr('checked',true);
13             var orderby = "{{ tab_id }}";
14             $("#sort_" + orderby).attr('className',"on");
15             
16             Hilite.exact = false;
17             Hilite.elementid = "main-body";
18             Hilite.debug_referrer = location.href;
19         });
20         </script>
21 {% endblock %}
22 {% block content %}
23 <div class="tabBar">
24     <div class="headUsers">{% trans "Users" %}</div>
25     <div class="tabsA">
26         <a id="sort_reputation" href="{% url users %}?sort=reputation" class="off" title="{% trans "reputation" %}">{% trans "reputation" %}</a>
27         <a id="sort_newest" href="{% url users %}?sort=newest" class="off" title="{% trans "recent" %}">{% trans "recent" %}</a>
28         <a id="sort_last" href="{% url users %}?sort=last" class="off" title="{% trans "oldest" %}">{% trans "oldest" %}</a>
29         <a id="sort_user" href="{% url users %}?sort=user" class="off" title="{% trans "by username" %}">{% trans "by username" %}</a>
30     </div>
31 </div>
32 <div id="main-body" style="width:100%">
33     <p>        
34         {% if suser %}
35                         {% blocktrans %}users matching query {{suser}}:{% endblocktrans %}
36         {% endif %}
37     
38         {% if not users.object_list %}
39             <span>{% trans "Nothing found." %}</span>
40         {% endif %}
41     </p>
42     <div class="userList">
43         <table class="list-table">
44             <tr>    
45                 <td class="list-td">
46                     {% for user in users.object_list %}
47                     
48                     <div class="user">
49                         <ul>
50                                 <li class="thumb"><a href="/users/{{ user.id }}/{{ user.username|slugify }}/">{% gravatar user 32 %}</a></li>
51                                 <li><a href="/users/{{ user.id }}/{{ user.username|slugify }}/">{{user.username}}</a></li>
52                                 <li>{% get_score_badge user %}</li>
53                             </ul>
54                     </div>
55                     
56             {% if forloop.counter|divisibleby:"7" %}
57                 </td>
58                 <td>
59             {% endif %}
60
61                     {% endfor %}
62                 </td>
63             </tr>   
64         </table>
65     </div>
66 </div>
67 {% endblock %}
68 {% block tail %}
69 <div class="pager">
70     {% cnprog_paginator context %}
71 </div>              
72 {% endblock %}
73 <!-- end users.html -->