Mercurial > public > sg101
diff 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 |
line wrap: on
line diff
--- a/gpp/templates/bio/view_profile.html Thu Jan 20 04:40:14 2011 +0000 +++ b/gpp/templates/bio/view_profile.html Thu Jan 27 02:56:10 2011 +0000 @@ -11,7 +11,7 @@ $('#bio_profile tr:even').addClass('even'); }); </script> -<script type="text/javascript" src="{{ MEDIA_URL }}js/bio.js"></script> +<script type="text/javascript" src="{{ STATIC_URL }}js/bio.js"></script> {% endblock %} {% block content %} <div class="user_profile"> @@ -79,22 +79,22 @@ </div> {% if this_is_me %} <ul class="icon-list"> - <li><a href="{% url 'bio-edit_profile' %}"><img src="{{ MEDIA_URL }}icons/application_edit.png" alt="Edit Profile" /></a> + <li><a href="{% url 'bio-edit_profile' %}"><img src="{{ STATIC_URL }}icons/application_edit.png" alt="Edit Profile" /></a> <a href="{% url 'bio-edit_profile' %}">Edit Profile</a></li> - <li><a href="{% url 'bio-change_avatar' %}"><img src="{{ MEDIA_URL }}icons/image_edit.png" alt="Change Avatar" /></a> + <li><a href="{% url 'bio-change_avatar' %}"><img src="{{ STATIC_URL }}icons/image_edit.png" alt="Change Avatar" /></a> <a href="{% url 'bio-change_avatar' %}">Change Avatar</a></li> - <li><a href="{% url 'bio-edit_elsewhere' %}"><img src="{{ MEDIA_URL }}icons/link_edit.png" alt="Edit Links" /></a> + <li><a href="{% url 'bio-edit_elsewhere' %}"><img src="{{ STATIC_URL }}icons/link_edit.png" alt="Edit Links" /></a> <a href="{% url 'bio-edit_elsewhere' %}">Edit Elsewhere Links</a></li> - <li><a href="{% url 'django.contrib.auth.views.password_change' %}"><img src="{{ MEDIA_URL }}icons/key.png" alt="Change Password" /></a> + <li><a href="{% url 'django.contrib.auth.views.password_change' %}"><img src="{{ STATIC_URL }}icons/key.png" alt="Change Password" /></a> <a href="{% url 'django.contrib.auth.views.password_change' %}">Change Password</a></li> </ul> {% else %} {% if user.is_authenticated %} <ul class="icon-list"> - <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> - <li><a href="{% url 'forums-posts_for_user' username=subject.username %}"><img src="{{ MEDIA_URL }}icons/comments.png" + <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> + <li><a href="{% url 'forums-posts_for_user' username=subject.username %}"><img src="{{ STATIC_URL }}icons/comments.png" 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> - <li><img src="{{ MEDIA_URL }}icons/flag_red.png" alt="Flag" /> + <li><img src="{{ STATIC_URL }}icons/flag_red.png" alt="Flag" /> <a href="#" class="profile-flag" id="fp-{{ profile.id }}">Report this profile</a></li> </ul> {% endif %}