annotate gpp/templates/bio/view_profile.html @ 110:c329bfaed4a7

Forums: implemented the move topic feature.
author Brian Neal <bgneal@gmail.com>
date Sat, 26 Sep 2009 20:19:45 +0000
parents fbef4f76492b
children 903ae6168071
rev   line source
gremmie@1 1 {% extends 'bio/base.html' %}
gremmie@1 2 {% load avatar_tags %}
bgneal@29 3 {% load elsewhere_tags %}
bgneal@71 4 {% load core_tags %}
gremmie@1 5 {% block title %}User Profile for {{ subject.username }}{% endblock %}
gremmie@1 6 {% block content %}
gremmie@1 7 <div class="user_profile">
gremmie@1 8 <h2>User Profile for {{ subject.username }}</h2>
gremmie@1 9 <p>{% avatar subject %}</p>
gremmie@1 10 <table>
gremmie@1 11 <tr><th>Full Name</th><td>{{ subject.get_full_name }}</td></tr>
gremmie@1 12 <tr><th>Date Joined</th><td>{{ subject.date_joined|date:"F d, Y" }}</td></tr>
gremmie@1 13 <tr><th>Last Login</th><td>{{ subject.last_login|date:"F d, Y @ H:i" }}</td></tr>
bgneal@71 14 <tr><th>Active Member</th><td>{% bool_icon subject.is_active %}</td></tr>
bgneal@71 15 <tr><th>Staff Member</th><td>{% bool_icon subject.is_staff %}</td></tr>
gremmie@1 16 {% if profile.location %}
gremmie@1 17 <tr><th>Location</th><td>{{ profile.location }}</td></tr>
gremmie@1 18 {% endif %}
gremmie@1 19 {% if profile.occupation %}
gremmie@1 20 <tr><th>Occupation</th><td>{{ profile.occupation }}</td></tr>
gremmie@1 21 {% endif %}
gremmie@1 22 {% if profile.birthday %}
gremmie@1 23 <tr><th>Birthday</th><td>{{ profile.birthday|date:"F d" }}</td></tr>
gremmie@1 24 {% endif %}
gremmie@1 25 {% if profile.interests %}
gremmie@1 26 <tr><th>Interests</th><td>{{ profile.interests }}</td></tr>
gremmie@1 27 {% endif %}
gremmie@1 28 {% if not profile.hide_email %}
gremmie@1 29 <tr><th>Email</th><td>{{ subject.email }}</td></tr>
gremmie@1 30 {% endif %}
gremmie@1 31 {% if profile.icq %}
gremmie@1 32 <tr><th>ICQ</th><td>{{ profile.icq }}</td></tr>
gremmie@1 33 {% endif %}
gremmie@1 34 {% if profile.profile_html %}
gremmie@1 35 <tr><th>Profile</th><td>{{ profile.profile_html|safe }}</td></tr>
gremmie@1 36 {% endif %}
gremmie@1 37 {% if profile.signature_html %}
gremmie@1 38 <tr><th>Signature</th><td>{{ profile.signature_html|safe }}</td></tr>
gremmie@1 39 {% endif %}
bgneal@29 40 <tr><th>Elsewhere</th><td>{% elsewhere_links subject %}</td></tr>
bgneal@70 41 <tr><th>Time Zone</th><td>{{ profile.time_zone }}</td></tr>
gremmie@1 42 </table>
gremmie@1 43 </div>
gremmie@1 44 {% if this_is_me %}
bgneal@29 45 <ul class="icon-list">
gremmie@1 46 <li><a href="{% url bio-edit_profile %}"><img src="{{ MEDIA_URL }}icons/application_edit.png" alt="Edit Profile" /></a>
gremmie@1 47 <a href="{% url bio-edit_profile %}">Edit Profile</a></li>
gremmie@1 48 <li><a href="{% url bio-change_avatar %}"><img src="{{ MEDIA_URL }}icons/image_edit.png" alt="Change Avatar" /></a>
gremmie@1 49 <a href="{% url bio-change_avatar %}">Change Avatar</a></li>
bgneal@31 50 <li><a href="{% url bio-edit_elsewhere %}"><img src="{{ MEDIA_URL }}icons/link_edit.png" alt="Edit Links" /></a>
bgneal@31 51 <a href="{% url bio-edit_elsewhere %}">Edit Elsewhere Links</a></li>
gremmie@1 52 <li><a href="{% url django.contrib.auth.views.password_change %}"><img src="{{ MEDIA_URL }}icons/key.png" alt="Change Password" /></a>
gremmie@1 53 <a href="{% url django.contrib.auth.views.password_change %}">Change Password</a></li>
gremmie@1 54 </ul>
gremmie@1 55 {% else %}
gremmie@1 56 {% if user.is_authenticated %}
gremmie@1 57 <p>
gremmie@1 58 <a href="{% url messages-compose_to subject.username %}">
gremmie@1 59 <img src="{{ MEDIA_URL }}icons/note.png" alt="PM" title="Send Private Message" /></a>
gremmie@1 60 <a href="{% url messages-compose_to subject.username %}">Send a private message to {{ subject.username }}</a>
gremmie@1 61 </p>
gremmie@1 62 {% endif %}
gremmie@1 63 {% endif %}
gremmie@1 64 {% endblock %}