comparison gpp/templates/bio/view_profile.html @ 1:dbd703f7d63a

Initial import of sg101 stuff from private repository.
author gremmie
date Mon, 06 Apr 2009 02:43:12 +0000
parents
children 74f04122295e
comparison
equal deleted inserted replaced
0:900ba3c7b765 1:dbd703f7d63a
1 {% extends 'bio/base.html' %}
2 {% load avatar_tags %}
3 {% block title %}User Profile for {{ subject.username }}{% endblock %}
4 {% block content %}
5 <div class="user_profile">
6 <h2>User Profile for {{ subject.username }}</h2>
7 <p>{% avatar subject %}</p>
8 <table>
9 <tr><th>Full Name</th><td>{{ subject.get_full_name }}</td></tr>
10 <tr><th>Date Joined</th><td>{{ subject.date_joined|date:"F d, Y" }}</td></tr>
11 <tr><th>Last Login</th><td>{{ subject.last_login|date:"F d, Y @ H:i" }}</td></tr>
12 <tr><th>Active Member</th><td>{{ subject.is_active|yesno:"Yes,No" }}</td></tr>
13 <tr><th>Staff Member</th><td>{{ subject.is_staff|yesno:"Yes,No" }}</td></tr>
14 {% if profile.location %}
15 <tr><th>Location</th><td>{{ profile.location }}</td></tr>
16 {% endif %}
17 {% if profile.occupation %}
18 <tr><th>Occupation</th><td>{{ profile.occupation }}</td></tr>
19 {% endif %}
20 {% if profile.birthday %}
21 <tr><th>Birthday</th><td>{{ profile.birthday|date:"F d" }}</td></tr>
22 {% endif %}
23 {% if profile.interests %}
24 <tr><th>Interests</th><td>{{ profile.interests }}</td></tr>
25 {% endif %}
26 {% if profile.website_1 %}
27 <tr><th>Website 1</th><td><a href="{{ profile.website_1 }}">{{ profile.website_1 }}</a></td></tr>
28 {% endif %}
29 {% if profile.website_2 %}
30 <tr><th>Website 2</th><td><a href="{{ profile.website_2 }}">{{ profile.website_2 }}</a></td></tr>
31 {% endif %}
32 {% if profile.website_3 %}
33 <tr><th>Website 3</th><td><a href="{{ profile.website_3 }}">{{ profile.website_3 }}</a></td></tr>
34 {% endif %}
35 {% if not profile.hide_email %}
36 <tr><th>Email</th><td>{{ subject.email }}</td></tr>
37 {% endif %}
38 {% if profile.icq %}
39 <tr><th>ICQ</th><td>{{ profile.icq }}</td></tr>
40 {% endif %}
41 {% if profile.aim %}
42 <tr><th>AIM</th><td>{{ profile.aim }}</td></tr>
43 {% endif %}
44 {% if profile.yim %}
45 <tr><th>YIM</th><td>{{ profile.yim }}</td></tr>
46 {% endif %}
47 {% if profile.msnm %}
48 <tr><th>MSN</th><td>{{ profile.msnm }}</td></tr>
49 {% endif %}
50 {% if profile.twitter %}
51 <tr><th>Twitter</th><td><a href="{{ profile.twitter }}">{{ profile.twitter }}</a></td></tr>
52 {% endif %}
53 {% if profile.profile_html %}
54 <tr><th>Profile</th><td>{{ profile.profile_html|safe }}</td></tr>
55 {% endif %}
56 {% if profile.signature_html %}
57 <tr><th>Signature</th><td>{{ profile.signature_html|safe }}</td></tr>
58 {% endif %}
59 </table>
60 </div>
61 {% if this_is_me %}
62 <ul>
63 <li><a href="{% url bio-edit_profile %}"><img src="{{ MEDIA_URL }}icons/application_edit.png" alt="Edit Profile" /></a>
64 <a href="{% url bio-edit_profile %}">Edit Profile</a></li>
65 <li><a href="{% url bio-change_avatar %}"><img src="{{ MEDIA_URL }}icons/image_edit.png" alt="Change Avatar" /></a>
66 <a href="{% url bio-change_avatar %}">Change Avatar</a></li>
67 <li><a href="{% url django.contrib.auth.views.password_change %}"><img src="{{ MEDIA_URL }}icons/key.png" alt="Change Password" /></a>
68 <a href="{% url django.contrib.auth.views.password_change %}">Change Password</a></li>
69 </ul>
70 {% else %}
71 {% if user.is_authenticated %}
72 <p>
73 <a href="{% url messages-compose_to subject.username %}">
74 <img src="{{ MEDIA_URL }}icons/note.png" alt="PM" title="Send Private Message" /></a>
75 <a href="{% url messages-compose_to subject.username %}">Send a private message to {{ subject.username }}</a>
76 </p>
77 {% endif %}
78 {% endif %}
79 {% endblock %}