Mercurial > public > sg101
comparison gpp/templates/bio/view_profile.html @ 312:88b2b9cb8c1f
Fixing #142; cut over to the django.contrib.staticfiles app.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Thu, 27 Jan 2011 02:56:10 +0000 |
parents | daa2916f5b34 |
children | e0523e17ea43 |
comparison
equal
deleted
inserted
replaced
311:b1c39788e511 | 312:88b2b9cb8c1f |
---|---|
9 <script type="text/javascript"> | 9 <script type="text/javascript"> |
10 $(document).ready(function() { | 10 $(document).ready(function() { |
11 $('#bio_profile tr:even').addClass('even'); | 11 $('#bio_profile tr:even').addClass('even'); |
12 }); | 12 }); |
13 </script> | 13 </script> |
14 <script type="text/javascript" src="{{ MEDIA_URL }}js/bio.js"></script> | 14 <script type="text/javascript" src="{{ STATIC_URL }}js/bio.js"></script> |
15 {% endblock %} | 15 {% endblock %} |
16 {% block content %} | 16 {% block content %} |
17 <div class="user_profile"> | 17 <div class="user_profile"> |
18 <h2>User Profile for {{ subject.username }}</h2> | 18 <h2>User Profile for {{ subject.username }}</h2> |
19 {% if messages %} | 19 {% if messages %} |
77 </td></tr> | 77 </td></tr> |
78 </table> | 78 </table> |
79 </div> | 79 </div> |
80 {% if this_is_me %} | 80 {% if this_is_me %} |
81 <ul class="icon-list"> | 81 <ul class="icon-list"> |
82 <li><a href="{% url 'bio-edit_profile' %}"><img src="{{ MEDIA_URL }}icons/application_edit.png" alt="Edit Profile" /></a> | 82 <li><a href="{% url 'bio-edit_profile' %}"><img src="{{ STATIC_URL }}icons/application_edit.png" alt="Edit Profile" /></a> |
83 <a href="{% url 'bio-edit_profile' %}">Edit Profile</a></li> | 83 <a href="{% url 'bio-edit_profile' %}">Edit Profile</a></li> |
84 <li><a href="{% url 'bio-change_avatar' %}"><img src="{{ MEDIA_URL }}icons/image_edit.png" alt="Change Avatar" /></a> | 84 <li><a href="{% url 'bio-change_avatar' %}"><img src="{{ STATIC_URL }}icons/image_edit.png" alt="Change Avatar" /></a> |
85 <a href="{% url 'bio-change_avatar' %}">Change Avatar</a></li> | 85 <a href="{% url 'bio-change_avatar' %}">Change Avatar</a></li> |
86 <li><a href="{% url 'bio-edit_elsewhere' %}"><img src="{{ MEDIA_URL }}icons/link_edit.png" alt="Edit Links" /></a> | 86 <li><a href="{% url 'bio-edit_elsewhere' %}"><img src="{{ STATIC_URL }}icons/link_edit.png" alt="Edit Links" /></a> |
87 <a href="{% url 'bio-edit_elsewhere' %}">Edit Elsewhere Links</a></li> | 87 <a href="{% url 'bio-edit_elsewhere' %}">Edit Elsewhere Links</a></li> |
88 <li><a href="{% url 'django.contrib.auth.views.password_change' %}"><img src="{{ MEDIA_URL }}icons/key.png" alt="Change Password" /></a> | 88 <li><a href="{% url 'django.contrib.auth.views.password_change' %}"><img src="{{ STATIC_URL }}icons/key.png" alt="Change Password" /></a> |
89 <a href="{% url 'django.contrib.auth.views.password_change' %}">Change Password</a></li> | 89 <a href="{% url 'django.contrib.auth.views.password_change' %}">Change Password</a></li> |
90 </ul> | 90 </ul> |
91 {% else %} | 91 {% else %} |
92 {% if user.is_authenticated %} | 92 {% if user.is_authenticated %} |
93 <ul class="icon-list"> | 93 <ul class="icon-list"> |
94 <li><a href="{% url 'messages-compose_to' subject.username %}"><img src="{{ MEDIA_URL }}icons/note.png" alt="PM" title="Send Private Message" /></a> <a href="{% url 'messages-compose_to' subject.username %}">Send a private message to {{ subject.username }}</a></li> | 94 <li><a href="{% url 'messages-compose_to' subject.username %}"><img src="{{ STATIC_URL }}icons/note.png" alt="PM" title="Send Private Message" /></a> <a href="{% url 'messages-compose_to' subject.username %}">Send a private message to {{ subject.username }}</a></li> |
95 <li><a href="{% url 'forums-posts_for_user' username=subject.username %}"><img src="{{ MEDIA_URL }}icons/comments.png" | 95 <li><a href="{% url 'forums-posts_for_user' username=subject.username %}"><img src="{{ STATIC_URL }}icons/comments.png" |
96 alt="Forum Posts" title="View forum posts by {{ subject.username }}" /></a> <a href="{% url 'forums-posts_for_user' username=subject.username %}">View forum posts by {{ subject.username }}</a></li> | 96 alt="Forum Posts" title="View forum posts by {{ subject.username }}" /></a> <a href="{% url 'forums-posts_for_user' username=subject.username %}">View forum posts by {{ subject.username }}</a></li> |
97 <li><img src="{{ MEDIA_URL }}icons/flag_red.png" alt="Flag" /> | 97 <li><img src="{{ STATIC_URL }}icons/flag_red.png" alt="Flag" /> |
98 <a href="#" class="profile-flag" id="fp-{{ profile.id }}">Report this profile</a></li> | 98 <a href="#" class="profile-flag" id="fp-{{ profile.id }}">Report this profile</a></li> |
99 </ul> | 99 </ul> |
100 {% endif %} | 100 {% endif %} |
101 {% endif %} | 101 {% endif %} |
102 {% endblock %} | 102 {% endblock %} |