diff gpp/templates/news/story.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 c3cc431b7fb9
line wrap: on
line diff
--- a/gpp/templates/news/story.html	Thu Jan 20 04:40:14 2011 +0000
+++ b/gpp/templates/news/story.html	Thu Jan 27 02:56:10 2011 +0000
@@ -5,12 +5,12 @@
 {% load script_tags %}
 {% block title %}News: {{ story.title }}{% endblock %}
 {% block news_css %}
-<link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/comments.css" />
+<link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/comments.css" />
 {% endblock %}
 {% block custom_js %}
 {% if story.can_comment_on %}
 {% script_tags "markitup jquery-ui" %}
-<script type="text/javascript" src="{{ MEDIA_URL }}js/comments.js"></script>
+<script type="text/javascript" src="{{ STATIC_URL }}js/comments.js"></script>
 {% endif %}
 {% endblock %}
 {% block news_content %}
@@ -29,17 +29,17 @@
    <hr />
    <p>
    Category: <a href="{% url 'news-category' slug=story.category.slug %}">{{ story.category.title }}</a>
-   <a href="{{ story.get_absolute_url }}"><img src="{{ MEDIA_URL }}icons/link.png"
+   <a href="{{ story.get_absolute_url }}"><img src="{{ STATIC_URL }}icons/link.png"
       alt="Story Permalink" title="Story Permalink" /></a>
 {% if user.is_authenticated %}
-   <a href="{% url 'news.views.email_story' story.id %}"><img src="{{ MEDIA_URL }}icons/email_go.png"
+   <a href="{% url 'news.views.email_story' story.id %}"><img src="{{ STATIC_URL }}icons/email_go.png"
       alt="Send this story to a friend" title="Send this story to a friend" /></a>
 {% endif %}
    </p>
    {% tags_for_object story as story_tags %}
    {% if story_tags %}
    <div class="news-tags">
-      <img src="{{ MEDIA_URL }}icons/tag_blue.png" alt="Tags" title="Tags" /> Tags:
+      <img src="{{ STATIC_URL }}icons/tag_blue.png" alt="Tags" title="Tags" /> Tags:
       <ul>
          {% for tag in story_tags %}
             <li><a href="{% url 'news-tag_page' tag_name=tag.name %}">{{ tag.name }}</a></li>