annotate gpp/templates/bio/view_profile.html @ 12:f408971657b9

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