gremmie@1
|
1 {% extends 'bio/base.html' %}
|
bgneal@310
|
2 {% load url from future %}
|
gremmie@1
|
3 {% load avatar_tags %}
|
gremmie@1
|
4 {% block title %}Member List{% endblock %}
|
gremmie@1
|
5 {% block bio_css %}
|
bgneal@312
|
6 <link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/tab-nav.css" />
|
bgneal@312
|
7 <link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/pagination.css" />
|
gremmie@1
|
8 {% endblock %}
|
gremmie@1
|
9 {% block content %}
|
gremmie@1
|
10 <h2>Member List</h2>
|
bgneal@149
|
11 <p>Surfguitar101.com currently has {{ num_members }} active members. Looking for a
|
bgneal@310
|
12 particular user? Try our <a href="{% url 'bio-member_search' %}">member search</a>, or
|
bgneal@310
|
13 you can use our <a href="{% url 'haystack_search' %}">search function</a> to search
|
bgneal@223
|
14 user profiles.
|
bgneal@223
|
15 </p>
|
gremmie@1
|
16 {% if page.object_list %}
|
gremmie@1
|
17 <ul class="tab-nav">
|
bgneal@310
|
18 <li><a href="{% url 'bio-member_list' type='user' %}"
|
gremmie@1
|
19 {% ifequal type "user" %}class="active" {% endifequal %}>User</a></li>
|
bgneal@310
|
20 <li><a href="{% url 'bio-member_list' type='date' %}"
|
gremmie@1
|
21 {% ifequal type "date" %}class="active" {% endifequal %}>Date</a></li>
|
gremmie@1
|
22 </ul>
|
gremmie@1
|
23
|
gremmie@1
|
24 {% include 'core/pagination.html' %}
|
gremmie@1
|
25 <div class="members-list">
|
gremmie@1
|
26 <table>
|
gremmie@1
|
27 <tr>
|
gremmie@1
|
28 <th>Avatar</th>
|
gremmie@1
|
29 <th>Username</th>
|
gremmie@1
|
30 <th>Full Name</th>
|
gremmie@1
|
31 <th>Location</th>
|
gremmie@1
|
32 <th>Date Joined</th>
|
gremmie@1
|
33 <th>Contact</th>
|
gremmie@1
|
34 </tr>
|
gremmie@1
|
35 {% for u in page.object_list %}
|
gremmie@1
|
36 <tr class="{% cycle 'even' 'odd' %}">
|
bgneal@310
|
37 <td><a href="{% url 'bio-view_profile' username=u.username %}">{% avatar u %}</a></td>
|
bgneal@310
|
38 <td><a href="{% url 'bio-view_profile' username=u.username %}" title="View profile for {{ u.username }}">{{ u.username }}</a></td>
|
gremmie@1
|
39 <td>{{ u.get_full_name }}</td>
|
bgneal@118
|
40 <td>{{ u.user_profile.location }}</td>
|
gremmie@1
|
41 <td>{{ u.date_joined|date:"M. d, Y" }}</td>
|
gremmie@1
|
42 <td>
|
bgneal@310
|
43 {% ifnotequal user u %}<a href="{% url 'messages-compose_to' u.username %}">
|
bgneal@312
|
44 <img src="{{ STATIC_URL }}icons/note.png" alt="PM" title="Send private message" /></a>{% endifnotequal %}
|
bgneal@118
|
45 {% if not u.user_profile.hide_email %}<a href="mailto:{{ u.email }}">
|
bgneal@312
|
46 <img src="{{ STATIC_URL }}icons/email.png" alt="Email" title="Send Email" /></a>{% endif %}
|
gremmie@1
|
47 </td>
|
gremmie@1
|
48 </tr>
|
gremmie@1
|
49 {% endfor %}
|
gremmie@1
|
50 </table>
|
gremmie@1
|
51 </div>
|
gremmie@1
|
52
|
gremmie@1
|
53 {% include 'core/pagination.html' %}
|
gremmie@1
|
54 {% endif %}
|
gremmie@1
|
55 {% endblock %}
|