Mercurial > public > sg101
annotate gpp/templates/bio/members.html @ 285:8fd4984d5c3b
This is a first rough commit for #95, adding the ability to embed YouTube videos in forum posts. Some more polish and testing needs to happen at this point. I wanted to get all these changes off my hard drive and into the repository.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Thu, 14 Oct 2010 02:39:35 +0000 |
parents | 7ddd60164245 |
children | daa2916f5b34 |
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@223 | 11 particular user? Try our <a href="{% url bio-member_search %}">member search</a>, or |
bgneal@223 | 12 you can use our <a href="{% url haystack_search %}">search function</a> to search |
bgneal@223 | 13 user profiles. |
bgneal@223 | 14 </p> |
gremmie@1 | 15 {% if page.object_list %} |
gremmie@1 | 16 <ul class="tab-nav"> |
bgneal@243 | 17 <li><a href="{% url bio-member_list type='user' %}" |
gremmie@1 | 18 {% ifequal type "user" %}class="active" {% endifequal %}>User</a></li> |
bgneal@243 | 19 <li><a href="{% url bio-member_list type='date' %}" |
gremmie@1 | 20 {% ifequal type "date" %}class="active" {% endifequal %}>Date</a></li> |
gremmie@1 | 21 </ul> |
gremmie@1 | 22 |
gremmie@1 | 23 {% include 'core/pagination.html' %} |
gremmie@1 | 24 <div class="members-list"> |
gremmie@1 | 25 <table> |
gremmie@1 | 26 <tr> |
gremmie@1 | 27 <th>Avatar</th> |
gremmie@1 | 28 <th>Username</th> |
gremmie@1 | 29 <th>Full Name</th> |
gremmie@1 | 30 <th>Location</th> |
gremmie@1 | 31 <th>Date Joined</th> |
gremmie@1 | 32 <th>Contact</th> |
gremmie@1 | 33 </tr> |
gremmie@1 | 34 {% for u in page.object_list %} |
gremmie@1 | 35 <tr class="{% cycle 'even' 'odd' %}"> |
gremmie@1 | 36 <td><a href="{% url bio-view_profile username=u.username %}">{% avatar u %}</a></td> |
gremmie@1 | 37 <td><a href="{% url bio-view_profile username=u.username %}" title="View profile for {{ u.username }}">{{ u.username }}</a></td> |
gremmie@1 | 38 <td>{{ u.get_full_name }}</td> |
bgneal@118 | 39 <td>{{ u.user_profile.location }}</td> |
gremmie@1 | 40 <td>{{ u.date_joined|date:"M. d, Y" }}</td> |
gremmie@1 | 41 <td> |
gremmie@1 | 42 {% ifnotequal user u %}<a href="{% url messages-compose_to u.username %}"> |
gremmie@1 | 43 <img src="{{ MEDIA_URL }}icons/note.png" alt="PM" title="Send private message" /></a>{% endifnotequal %} |
bgneal@118 | 44 {% if not u.user_profile.hide_email %}<a href="mailto:{{ u.email }}"> |
gremmie@1 | 45 <img src="{{ MEDIA_URL }}icons/email.png" alt="Email" title="Send Email" /></a>{% endif %} |
gremmie@1 | 46 </td> |
gremmie@1 | 47 </tr> |
gremmie@1 | 48 {% endfor %} |
gremmie@1 | 49 </table> |
gremmie@1 | 50 </div> |
gremmie@1 | 51 |
gremmie@1 | 52 {% include 'core/pagination.html' %} |
gremmie@1 | 53 {% endif %} |
gremmie@1 | 54 {% endblock %} |