annotate gpp/templates/bio/members.html @ 68:cce1fc3f8752

#16, GCalendar: clean up exception class. Put a try catch around the ExecuteBatch, as I saw it fail. No need to add any logging.
author Brian Neal <bgneal@gmail.com>
date Sun, 28 Jun 2009 18:48:08 +0000
parents dbd703f7d63a
children a20b2c492d55
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>
gremmie@1 10
gremmie@1 11 {% if page.object_list %}
gremmie@1 12 <ul class="tab-nav">
gremmie@1 13 <li><a href="{% url bio-members_full type="user",page="1" %}"
gremmie@1 14 {% ifequal type "user" %}class="active" {% endifequal %}>User</a></li>
gremmie@1 15 <li><a href="{% url bio-members_full type="date",page="1" %}"
gremmie@1 16 {% ifequal type "date" %}class="active" {% endifequal %}>Date</a></li>
gremmie@1 17 </ul>
gremmie@1 18
gremmie@1 19 {% include 'core/pagination.html' %}
gremmie@1 20 <div class="members-list">
gremmie@1 21 <table>
gremmie@1 22 <tr>
gremmie@1 23 <th>Avatar</th>
gremmie@1 24 <th>Username</th>
gremmie@1 25 <th>Full Name</th>
gremmie@1 26 <th>Location</th>
gremmie@1 27 <th>Date Joined</th>
gremmie@1 28 <th>Contact</th>
gremmie@1 29 </tr>
gremmie@1 30 {% for u in page.object_list %}
gremmie@1 31 <tr class="{% cycle 'even' 'odd' %}">
gremmie@1 32 <td><a href="{% url bio-view_profile username=u.username %}">{% avatar u %}</a></td>
gremmie@1 33 <td><a href="{% url bio-view_profile username=u.username %}" title="View profile for {{ u.username }}">{{ u.username }}</a></td>
gremmie@1 34 <td>{{ u.get_full_name }}</td>
gremmie@1 35 <td>{{ u.get_profile.location }}</td>
gremmie@1 36 <td>{{ u.date_joined|date:"M. d, Y" }}</td>
gremmie@1 37 <td>
gremmie@1 38 {% ifnotequal user u %}<a href="{% url messages-compose_to u.username %}">
gremmie@1 39 <img src="{{ MEDIA_URL }}icons/note.png" alt="PM" title="Send private message" /></a>{% endifnotequal %}
gremmie@1 40 {% if not u.get_profile.hide_email %}<a href="mailto:{{ u.email }}">
gremmie@1 41 <img src="{{ MEDIA_URL }}icons/email.png" alt="Email" title="Send Email" /></a>{% endif %}
gremmie@1 42 </td>
gremmie@1 43 </tr>
gremmie@1 44 {% endfor %}
gremmie@1 45 </table>
gremmie@1 46 </div>
gremmie@1 47
gremmie@1 48 {% include 'core/pagination.html' %}
gremmie@1 49 {% endif %}
gremmie@1 50 {% endblock %}