Mercurial > public > sg101
comparison gpp/templates/bio/members.html @ 1:dbd703f7d63a
Initial import of sg101 stuff from private repository.
author | gremmie |
---|---|
date | Mon, 06 Apr 2009 02:43:12 +0000 |
parents | |
children | a20b2c492d55 |
comparison
equal
deleted
inserted
replaced
0:900ba3c7b765 | 1:dbd703f7d63a |
---|---|
1 {% extends 'bio/base.html' %} | |
2 {% load avatar_tags %} | |
3 {% block title %}Member List{% endblock %} | |
4 {% block bio_css %} | |
5 <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/tab-nav.css" /> | |
6 <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/pagination.css" /> | |
7 {% endblock %} | |
8 {% block content %} | |
9 <h2>Member List</h2> | |
10 | |
11 {% if page.object_list %} | |
12 <ul class="tab-nav"> | |
13 <li><a href="{% url bio-members_full type="user",page="1" %}" | |
14 {% ifequal type "user" %}class="active" {% endifequal %}>User</a></li> | |
15 <li><a href="{% url bio-members_full type="date",page="1" %}" | |
16 {% ifequal type "date" %}class="active" {% endifequal %}>Date</a></li> | |
17 </ul> | |
18 | |
19 {% include 'core/pagination.html' %} | |
20 <div class="members-list"> | |
21 <table> | |
22 <tr> | |
23 <th>Avatar</th> | |
24 <th>Username</th> | |
25 <th>Full Name</th> | |
26 <th>Location</th> | |
27 <th>Date Joined</th> | |
28 <th>Contact</th> | |
29 </tr> | |
30 {% for u in page.object_list %} | |
31 <tr class="{% cycle 'even' 'odd' %}"> | |
32 <td><a href="{% url bio-view_profile username=u.username %}">{% avatar u %}</a></td> | |
33 <td><a href="{% url bio-view_profile username=u.username %}" title="View profile for {{ u.username }}">{{ u.username }}</a></td> | |
34 <td>{{ u.get_full_name }}</td> | |
35 <td>{{ u.get_profile.location }}</td> | |
36 <td>{{ u.date_joined|date:"M. d, Y" }}</td> | |
37 <td> | |
38 {% ifnotequal user u %}<a href="{% url messages-compose_to u.username %}"> | |
39 <img src="{{ MEDIA_URL }}icons/note.png" alt="PM" title="Send private message" /></a>{% endifnotequal %} | |
40 {% if not u.get_profile.hide_email %}<a href="mailto:{{ u.email }}"> | |
41 <img src="{{ MEDIA_URL }}icons/email.png" alt="Email" title="Send Email" /></a>{% endif %} | |
42 </td> | |
43 </tr> | |
44 {% endfor %} | |
45 </table> | |
46 </div> | |
47 | |
48 {% include 'core/pagination.html' %} | |
49 {% endif %} | |
50 {% endblock %} |