Mercurial > public > sg101
comparison gpp/templates/bio/view_profile.html @ 125:903ae6168071
Bio: added odd/even styling to profiles. Make member's list viewable to logged in users only.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sat, 14 Nov 2009 20:09:17 +0000 |
parents | fbef4f76492b |
children | 7ea842744a57 |
comparison
equal
deleted
inserted
replaced
124:9c18250972d5 | 125:903ae6168071 |
---|---|
1 {% extends 'bio/base.html' %} | 1 {% extends 'bio/base.html' %} |
2 {% load avatar_tags %} | 2 {% load avatar_tags %} |
3 {% load elsewhere_tags %} | 3 {% load elsewhere_tags %} |
4 {% load core_tags %} | 4 {% load core_tags %} |
5 {% load forum_tags %} | |
5 {% block title %}User Profile for {{ subject.username }}{% endblock %} | 6 {% block title %}User Profile for {{ subject.username }}{% endblock %} |
7 {% block custom_js %} | |
8 <script type="text/javascript"> | |
9 $(document).ready(function() { | |
10 $('#bio_profile tr:even').addClass('even'); | |
11 }); | |
12 </script> | |
13 {% endblock %} | |
6 {% block content %} | 14 {% block content %} |
7 <div class="user_profile"> | 15 <div class="user_profile"> |
8 <h2>User Profile for {{ subject.username }}</h2> | 16 <h2>User Profile for {{ subject.username }}</h2> |
9 <p>{% avatar subject %}</p> | 17 <p>{% avatar subject %}</p> |
10 <table> | 18 <table id="bio_profile"> |
11 <tr><th>Full Name</th><td>{{ subject.get_full_name }}</td></tr> | 19 <tr><th>Full Name</th><td>{{ subject.get_full_name }}</td></tr> |
12 <tr><th>Date Joined</th><td>{{ subject.date_joined|date:"F d, Y" }}</td></tr> | 20 <tr><th>Date Joined</th><td>{{ subject.date_joined|date:"F d, Y" }}</td></tr> |
13 <tr><th>Last Login</th><td>{{ subject.last_login|date:"F d, Y @ H:i" }}</td></tr> | 21 <tr><th>Last Login</th><td>{% forum_date subject.last_login user %}</td></tr> |
14 <tr><th>Active Member</th><td>{% bool_icon subject.is_active %}</td></tr> | 22 <tr><th>Active Member</th><td>{% bool_icon subject.is_active %}</td></tr> |
15 <tr><th>Staff Member</th><td>{% bool_icon subject.is_staff %}</td></tr> | 23 <tr><th>Staff Member</th><td>{% bool_icon subject.is_staff %}</td></tr> |
16 {% if profile.location %} | 24 {% if profile.location %} |
17 <tr><th>Location</th><td>{{ profile.location }}</td></tr> | 25 <tr><th>Location</th><td>{{ profile.location }}</td></tr> |
18 {% endif %} | 26 {% endif %} |