Mercurial > public > sg101
comparison gpp/templates/news/story_summary.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 |
---|---|
8 <h4><a href="{{ story.get_absolute_url }}">{{ story.title }}</a></h4> | 8 <h4><a href="{{ story.get_absolute_url }}">{{ story.title }}</a></h4> |
9 {% endif %} | 9 {% endif %} |
10 <div class="news-details"> | 10 <div class="news-details"> |
11 Submitted by {{ story.submitter.username }} on {{ story.date_submitted|date:"F d, Y" }}. | 11 Submitted by {{ story.submitter.username }} on {{ story.date_submitted|date:"F d, Y" }}. |
12 </div> | 12 </div> |
13 <a href="{% url news.views.category category=story.category.id page=1 %}"> | 13 <a href="{% url news-category slug=story.category.slug %}"> |
14 <img src="{{ story.category.icon.url }}" alt="{{ story.category.title }}" title="{{ story.category.title }}" | 14 <img src="{{ story.category.icon.url }}" alt="{{ story.category.title }}" title="{{ story.category.title }}" |
15 class="news-icon" /></a> | 15 class="news-icon" /></a> |
16 <div class="news-content"> | 16 <div class="news-content"> |
17 {{ story.short_text|safe }} | 17 {{ story.short_text|safe }} |
18 </div> | 18 </div> |
22 <a href="{{ story.get_absolute_url }}">There is more to this story, continue reading ...</a> | 22 <a href="{{ story.get_absolute_url }}">There is more to this story, continue reading ...</a> |
23 </p> | 23 </p> |
24 {% endif %} | 24 {% endif %} |
25 <hr /> | 25 <hr /> |
26 <p> | 26 <p> |
27 Category: <a href="{% url news.views.category category=story.category.id page=1 %}">{{ story.category.title }}</a> | 27 Category: <a href="{% url news-category slug=story.category.slug %}">{{ story.category.title }}</a> |
28 <img src="{{ MEDIA_URL }}icons/comments.png" alt="Comments" title="Comments" /> | 28 <img src="{{ MEDIA_URL }}icons/comments.png" alt="Comments" title="Comments" /> |
29 <a href="{{ story.get_absolute_url }}">{{ comment_count }} comment{{ comment_count|pluralize }}</a> | 29 <a href="{{ story.get_absolute_url }}">{{ comment_count }} comment{{ comment_count|pluralize }}</a> |
30 <a href="{{ story.get_absolute_url }}"><img src="{{ MEDIA_URL }}icons/link.png" alt="Permalink" title="Permalink" /></a> | 30 <a href="{{ story.get_absolute_url }}"><img src="{{ MEDIA_URL }}icons/link.png" alt="Permalink" title="Permalink" /></a> |
31 {% if user.is_authenticated %} | 31 {% if user.is_authenticated %} |
32 <a href="{% url news.views.email_story story.id %}"><img src="{{ MEDIA_URL }}icons/email_go.png" | 32 <a href="{% url news.views.email_story story.id %}"><img src="{{ MEDIA_URL }}icons/email_go.png" |
37 {% if story_tags %} | 37 {% if story_tags %} |
38 <div class="news-tags"> | 38 <div class="news-tags"> |
39 <img src="{{ MEDIA_URL }}icons/tag_blue.png" alt="Tags" title="Tags" /> Tags: | 39 <img src="{{ MEDIA_URL }}icons/tag_blue.png" alt="Tags" title="Tags" /> Tags: |
40 <ul> | 40 <ul> |
41 {% for tag in story_tags %} | 41 {% for tag in story_tags %} |
42 <li><a href="{% url news-tag_page tag_name=tag page=1 %}">{{ tag }}</a></li> | 42 <li><a href="{% url news-tag_page tag_name=tag %}">{{ tag }}</a></li> |
43 {% endfor %} | 43 {% endfor %} |
44 </ul> | 44 </ul> |
45 </div> | 45 </div> |
46 {% endif %} | 46 {% endif %} |
47 </div> | 47 </div> |