summaryrefslogtreecommitdiffstats
path: root/askbot/skins/default/templates/widgets/user_list.html
blob: 2e78bd0c94b3d7bdd7ef5282f6938ff99aa8acba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{% from "macros.html" import gravatar %}
<div class="userList">
    <table class="list-table">
        <tr>
            <td class="list-td">
                {% for user in users %}
                <div class="user">
                    <ul>
                            <li class="thumb">{{ gravatar(user, 32) }}</li>
                            <li><a href="{% url user_profile user.id, user.username|slugify %}{% if profile_section %}?sort={{profile_section}}{% endif %}">{{user.username|escape}}</a>{{ user_country_flag(user) }}</li>
                            <li>{{ 
                                    user_score_and_badge_summary(
                                        user, 
                                        karma_mode = karma_mode,
                                        badges_mode = badges_mode
                                    )
                                }}</li>
                        </ul>
                </div>
                    {% if loop.index is divisibleby 7 %}
            </td>
            <td>
                    {% endif %}
                {% endfor %}
            </td>
        </tr>   
    </table>
</div>