Mercurial > public > sg101
comparison 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 |
comparison
equal
deleted
inserted
replaced
311:b1c39788e511 | 312:88b2b9cb8c1f |
---|---|
3 {% load tagging_tags %} | 3 {% load tagging_tags %} |
4 {% load comment_tags %} | 4 {% load comment_tags %} |
5 {% load script_tags %} | 5 {% load script_tags %} |
6 {% block title %}News: {{ story.title }}{% endblock %} | 6 {% block title %}News: {{ story.title }}{% endblock %} |
7 {% block news_css %} | 7 {% block news_css %} |
8 <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/comments.css" /> | 8 <link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/comments.css" /> |
9 {% endblock %} | 9 {% endblock %} |
10 {% block custom_js %} | 10 {% block custom_js %} |
11 {% if story.can_comment_on %} | 11 {% if story.can_comment_on %} |
12 {% script_tags "markitup jquery-ui" %} | 12 {% script_tags "markitup jquery-ui" %} |
13 <script type="text/javascript" src="{{ MEDIA_URL }}js/comments.js"></script> | 13 <script type="text/javascript" src="{{ STATIC_URL }}js/comments.js"></script> |
14 {% endif %} | 14 {% endif %} |
15 {% endblock %} | 15 {% endblock %} |
16 {% block news_content %} | 16 {% block news_content %} |
17 <h3>{{ story.title }}</h3> | 17 <h3>{{ story.title }}</h3> |
18 <div class="news-details"> | 18 <div class="news-details"> |
27 {{ story.long_text|safe }} | 27 {{ story.long_text|safe }} |
28 <br clear="all" /> | 28 <br clear="all" /> |
29 <hr /> | 29 <hr /> |
30 <p> | 30 <p> |
31 Category: <a href="{% url 'news-category' slug=story.category.slug %}">{{ story.category.title }}</a> | 31 Category: <a href="{% url 'news-category' slug=story.category.slug %}">{{ story.category.title }}</a> |
32 <a href="{{ story.get_absolute_url }}"><img src="{{ MEDIA_URL }}icons/link.png" | 32 <a href="{{ story.get_absolute_url }}"><img src="{{ STATIC_URL }}icons/link.png" |
33 alt="Story Permalink" title="Story Permalink" /></a> | 33 alt="Story Permalink" title="Story Permalink" /></a> |
34 {% if user.is_authenticated %} | 34 {% if user.is_authenticated %} |
35 <a href="{% url 'news.views.email_story' story.id %}"><img src="{{ MEDIA_URL }}icons/email_go.png" | 35 <a href="{% url 'news.views.email_story' story.id %}"><img src="{{ STATIC_URL }}icons/email_go.png" |
36 alt="Send this story to a friend" title="Send this story to a friend" /></a> | 36 alt="Send this story to a friend" title="Send this story to a friend" /></a> |
37 {% endif %} | 37 {% endif %} |
38 </p> | 38 </p> |
39 {% tags_for_object story as story_tags %} | 39 {% tags_for_object story as story_tags %} |
40 {% if story_tags %} | 40 {% if story_tags %} |
41 <div class="news-tags"> | 41 <div class="news-tags"> |
42 <img src="{{ MEDIA_URL }}icons/tag_blue.png" alt="Tags" title="Tags" /> Tags: | 42 <img src="{{ STATIC_URL }}icons/tag_blue.png" alt="Tags" title="Tags" /> Tags: |
43 <ul> | 43 <ul> |
44 {% for tag in story_tags %} | 44 {% for tag in story_tags %} |
45 <li><a href="{% url 'news-tag_page' tag_name=tag.name %}">{{ tag.name }}</a></li> | 45 <li><a href="{% url 'news-tag_page' tag_name=tag.name %}">{{ tag.name }}</a></li> |
46 {% endfor %} | 46 {% endfor %} |
47 </ul> | 47 </ul> |