Mercurial > public > sg101
comparison gpp/templates/bio/view_profile.html @ 71:fbef4f76492b
Created a bool_icon template tag to graphically display an icon to represent yes/no. Updated profile template to use it.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Wed, 01 Jul 2009 18:34:09 +0000 |
parents | c0d3b09c9b95 |
children | 903ae6168071 |
comparison
equal
deleted
inserted
replaced
70:c0d3b09c9b95 | 71:fbef4f76492b |
---|---|
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 {% block title %}User Profile for {{ subject.username }}{% endblock %} | 5 {% block title %}User Profile for {{ subject.username }}{% endblock %} |
5 {% block content %} | 6 {% block content %} |
6 <div class="user_profile"> | 7 <div class="user_profile"> |
7 <h2>User Profile for {{ subject.username }}</h2> | 8 <h2>User Profile for {{ subject.username }}</h2> |
8 <p>{% avatar subject %}</p> | 9 <p>{% avatar subject %}</p> |
9 <table> | 10 <table> |
10 <tr><th>Full Name</th><td>{{ subject.get_full_name }}</td></tr> | 11 <tr><th>Full Name</th><td>{{ subject.get_full_name }}</td></tr> |
11 <tr><th>Date Joined</th><td>{{ subject.date_joined|date:"F d, Y" }}</td></tr> | 12 <tr><th>Date Joined</th><td>{{ subject.date_joined|date:"F d, Y" }}</td></tr> |
12 <tr><th>Last Login</th><td>{{ subject.last_login|date:"F d, Y @ H:i" }}</td></tr> | 13 <tr><th>Last Login</th><td>{{ subject.last_login|date:"F d, Y @ H:i" }}</td></tr> |
13 <tr><th>Active Member</th><td>{{ subject.is_active|yesno:"Yes,No" }}</td></tr> | 14 <tr><th>Active Member</th><td>{% bool_icon subject.is_active %}</td></tr> |
14 <tr><th>Staff Member</th><td>{{ subject.is_staff|yesno:"Yes,No" }}</td></tr> | 15 <tr><th>Staff Member</th><td>{% bool_icon subject.is_staff %}</td></tr> |
15 {% if profile.location %} | 16 {% if profile.location %} |
16 <tr><th>Location</th><td>{{ profile.location }}</td></tr> | 17 <tr><th>Location</th><td>{{ profile.location }}</td></tr> |
17 {% endif %} | 18 {% endif %} |
18 {% if profile.occupation %} | 19 {% if profile.occupation %} |
19 <tr><th>Occupation</th><td>{{ profile.occupation }}</td></tr> | 20 <tr><th>Occupation</th><td>{{ profile.occupation }}</td></tr> |