comparison gpp/templates/bio/members.html @ 310:daa2916f5b34

Fixing 145; New url tag behavior (forwards compatibility) in Django 1.3.
author Brian Neal <bgneal@gmail.com>
date Thu, 20 Jan 2011 04:03:48 +0000
parents 7ddd60164245
children 88b2b9cb8c1f
comparison
equal deleted inserted replaced
309:8a0bae48b6ca 310:daa2916f5b34
1 {% extends 'bio/base.html' %} 1 {% extends 'bio/base.html' %}
2 {% load url from future %}
2 {% load avatar_tags %} 3 {% load avatar_tags %}
3 {% block title %}Member List{% endblock %} 4 {% block title %}Member List{% endblock %}
4 {% block bio_css %} 5 {% 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/tab-nav.css" />
6 <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/pagination.css" /> 7 <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/pagination.css" />
7 {% endblock %} 8 {% endblock %}
8 {% block content %} 9 {% block content %}
9 <h2>Member List</h2> 10 <h2>Member List</h2>
10 <p>Surfguitar101.com currently has {{ num_members }} active members. Looking for a 11 <p>Surfguitar101.com currently has {{ num_members }} active members. Looking for a
11 particular user? Try our <a href="{% url bio-member_search %}">member search</a>, or 12 particular user? Try our <a href="{% url 'bio-member_search' %}">member search</a>, or
12 you can use our <a href="{% url haystack_search %}">search function</a> to search 13 you can use our <a href="{% url 'haystack_search' %}">search function</a> to search
13 user profiles. 14 user profiles.
14 </p> 15 </p>
15 {% if page.object_list %} 16 {% if page.object_list %}
16 <ul class="tab-nav"> 17 <ul class="tab-nav">
17 <li><a href="{% url bio-member_list type='user' %}" 18 <li><a href="{% url 'bio-member_list' type='user' %}"
18 {% ifequal type "user" %}class="active" {% endifequal %}>User</a></li> 19 {% ifequal type "user" %}class="active" {% endifequal %}>User</a></li>
19 <li><a href="{% url bio-member_list type='date' %}" 20 <li><a href="{% url 'bio-member_list' type='date' %}"
20 {% ifequal type "date" %}class="active" {% endifequal %}>Date</a></li> 21 {% ifequal type "date" %}class="active" {% endifequal %}>Date</a></li>
21 </ul> 22 </ul>
22 23
23 {% include 'core/pagination.html' %} 24 {% include 'core/pagination.html' %}
24 <div class="members-list"> 25 <div class="members-list">
31 <th>Date Joined</th> 32 <th>Date Joined</th>
32 <th>Contact</th> 33 <th>Contact</th>
33 </tr> 34 </tr>
34 {% for u in page.object_list %} 35 {% for u in page.object_list %}
35 <tr class="{% cycle 'even' 'odd' %}"> 36 <tr class="{% cycle 'even' 'odd' %}">
36 <td><a href="{% url bio-view_profile username=u.username %}">{% avatar u %}</a></td> 37 <td><a href="{% url 'bio-view_profile' username=u.username %}">{% avatar u %}</a></td>
37 <td><a href="{% url bio-view_profile username=u.username %}" title="View profile for {{ u.username }}">{{ u.username }}</a></td> 38 <td><a href="{% url 'bio-view_profile' username=u.username %}" title="View profile for {{ u.username }}">{{ u.username }}</a></td>
38 <td>{{ u.get_full_name }}</td> 39 <td>{{ u.get_full_name }}</td>
39 <td>{{ u.user_profile.location }}</td> 40 <td>{{ u.user_profile.location }}</td>
40 <td>{{ u.date_joined|date:"M. d, Y" }}</td> 41 <td>{{ u.date_joined|date:"M. d, Y" }}</td>
41 <td> 42 <td>
42 {% ifnotequal user u %}<a href="{% url messages-compose_to u.username %}"> 43 {% ifnotequal user u %}<a href="{% url 'messages-compose_to' u.username %}">
43 <img src="{{ MEDIA_URL }}icons/note.png" alt="PM" title="Send private message" /></a>{% endifnotequal %} 44 <img src="{{ MEDIA_URL }}icons/note.png" alt="PM" title="Send private message" /></a>{% endifnotequal %}
44 {% if not u.user_profile.hide_email %}<a href="mailto:{{ u.email }}"> 45 {% if not u.user_profile.hide_email %}<a href="mailto:{{ u.email }}">
45 <img src="{{ MEDIA_URL }}icons/email.png" alt="Email" title="Send Email" /></a>{% endif %} 46 <img src="{{ MEDIA_URL }}icons/email.png" alt="Email" title="Send Email" /></a>{% endif %}
46 </td> 47 </td>
47 </tr> 48 </tr>