comparison gpp/templates/news/story.html @ 240:1246a4f1ab4f

For #93: fix url scheme for the news application.
author Brian Neal <bgneal@gmail.com>
date Wed, 15 Sep 2010 00:14:54 +0000
parents da46e77cd804
children daa2916f5b34
comparison
equal deleted inserted replaced
239:dcc929973bba 240:1246a4f1ab4f
17 <div class="news-details"> 17 <div class="news-details">
18 Submitted by {{ story.submitter.username }} on {{ story.date_submitted|date:"F d, Y" }}. 18 Submitted by {{ story.submitter.username }} on {{ story.date_submitted|date:"F d, Y" }}.
19 </div> 19 </div>
20 <hr /> 20 <hr />
21 <div class="news-content"> 21 <div class="news-content">
22 <a href="{% url news.views.category category=story.category.id page=1 %}"> 22 <a href="{% url news-category slug=story.category.slug %}">
23 <img src="{{ story.category.icon.url }}" alt="{{ story.category.title }}" title="{{ story.category.title }}" 23 <img src="{{ story.category.icon.url }}" alt="{{ story.category.title }}" title="{{ story.category.title }}"
24 class="news-icon" /></a> 24 class="news-icon" /></a>
25 {{ story.short_text|safe }} 25 {{ story.short_text|safe }}
26 {{ story.long_text|safe }} 26 {{ story.long_text|safe }}
27 <br clear="all" /> 27 <br clear="all" />
28 <hr /> 28 <hr />
29 <p> 29 <p>
30 Category: <a href="{% url news.views.category category=story.category.id page=1 %}">{{ story.category.title }}</a> 30 Category: <a href="{% url news-category slug=story.category.slug %}">{{ story.category.title }}</a>
31 <a href="{{ story.get_absolute_url }}"><img src="{{ MEDIA_URL }}icons/link.png" 31 <a href="{{ story.get_absolute_url }}"><img src="{{ MEDIA_URL }}icons/link.png"
32 alt="Story Permalink" title="Story Permalink" /></a> 32 alt="Story Permalink" title="Story Permalink" /></a>
33 {% if user.is_authenticated %} 33 {% if user.is_authenticated %}
34 <a href="{% url news.views.email_story story.id %}"><img src="{{ MEDIA_URL }}icons/email_go.png" 34 <a href="{% url news.views.email_story story.id %}"><img src="{{ MEDIA_URL }}icons/email_go.png"
35 alt="Send this story to a friend" title="Send this story to a friend" /></a> 35 alt="Send this story to a friend" title="Send this story to a friend" /></a>
39 {% if story_tags %} 39 {% if story_tags %}
40 <div class="news-tags"> 40 <div class="news-tags">
41 <img src="{{ MEDIA_URL }}icons/tag_blue.png" alt="Tags" title="Tags" /> Tags: 41 <img src="{{ MEDIA_URL }}icons/tag_blue.png" alt="Tags" title="Tags" /> Tags:
42 <ul> 42 <ul>
43 {% for tag in story_tags %} 43 {% for tag in story_tags %}
44 <li><a href="{% url news-tag_page tag_name=tag.name page=1 %}">{{ tag.name }}</a></li> 44 <li><a href="{% url news-tag_page tag_name=tag.name %}">{{ tag.name }}</a></li>
45 {% endfor %} 45 {% endfor %}
46 </ul> 46 </ul>
47 </div> 47 </div>
48 {% endif %} 48 {% endif %}
49 </div> 49 </div>