annotate gpp/templates/bio/members.html @ 149:ab7830b067b3

Implement ticket #40. Added a simple way to search for usernames and then view their profile. Moved this ajax username search feature out of the messages app and into core.
author Brian Neal <bgneal@gmail.com>
date Mon, 14 Dec 2009 05:07:28 +0000
parents 152d77265da6
children 2baadae33f2e
rev   line source
gremmie@1 1 {% extends 'bio/base.html' %}
gremmie@1 2 {% load avatar_tags %}
gremmie@1 3 {% block title %}Member List{% endblock %}
gremmie@1 4 {% block bio_css %}
gremmie@1 5 <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/tab-nav.css" />
gremmie@1 6 <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/pagination.css" />
gremmie@1 7 {% endblock %}
gremmie@1 8 {% block content %}
gremmie@1 9 <h2>Member List</h2>
bgneal@149 10 <p>Surfguitar101.com currently has {{ num_members }} active members. Looking for a
bgneal@149 11 particular user? Try our <a href="{% url bio-member_search %}">member search</a>.</p>
gremmie@1 12 {% if page.object_list %}
gremmie@1 13 <ul class="tab-nav">
gremmie@1 14 <li><a href="{% url bio-members_full type="user",page="1" %}"
gremmie@1 15 {% ifequal type "user" %}class="active" {% endifequal %}>User</a></li>
gremmie@1 16 <li><a href="{% url bio-members_full type="date",page="1" %}"
gremmie@1 17 {% ifequal type "date" %}class="active" {% endifequal %}>Date</a></li>
gremmie@1 18 </ul>
gremmie@1 19
gremmie@1 20 {% include 'core/pagination.html' %}
gremmie@1 21 <div class="members-list">
gremmie@1 22 <table>
gremmie@1 23 <tr>
gremmie@1 24 <th>Avatar</th>
gremmie@1 25 <th>Username</th>
gremmie@1 26 <th>Full Name</th>
gremmie@1 27 <th>Location</th>
gremmie@1 28 <th>Date Joined</th>
gremmie@1 29 <th>Contact</th>
gremmie@1 30 </tr>
gremmie@1 31 {% for u in page.object_list %}
gremmie@1 32 <tr class="{% cycle 'even' 'odd' %}">
gremmie@1 33 <td><a href="{% url bio-view_profile username=u.username %}">{% avatar u %}</a></td>
gremmie@1 34 <td><a href="{% url bio-view_profile username=u.username %}" title="View profile for {{ u.username }}">{{ u.username }}</a></td>
gremmie@1 35 <td>{{ u.get_full_name }}</td>
bgneal@118 36 <td>{{ u.user_profile.location }}</td>
gremmie@1 37 <td>{{ u.date_joined|date:"M. d, Y" }}</td>
gremmie@1 38 <td>
gremmie@1 39 {% ifnotequal user u %}<a href="{% url messages-compose_to u.username %}">
gremmie@1 40 <img src="{{ MEDIA_URL }}icons/note.png" alt="PM" title="Send private message" /></a>{% endifnotequal %}
bgneal@118 41 {% if not u.user_profile.hide_email %}<a href="mailto:{{ u.email }}">
gremmie@1 42 <img src="{{ MEDIA_URL }}icons/email.png" alt="Email" title="Send Email" /></a>{% endif %}
gremmie@1 43 </td>
gremmie@1 44 </tr>
gremmie@1 45 {% endfor %}
gremmie@1 46 </table>
gremmie@1 47 </div>
gremmie@1 48
gremmie@1 49 {% include 'core/pagination.html' %}
gremmie@1 50 {% endif %}
gremmie@1 51 {% endblock %}