annotate gpp/templates/news/story_summary.html @ 224:76ad86454ce9

For #51, adding podcasts to Haystack search.
author Brian Neal <bgneal@gmail.com>
date Tue, 08 Jun 2010 03:09:48 +0000
parents da46e77cd804
children 1246a4f1ab4f
rev   line source
bgneal@205 1 {% load tagging_tags %}
gremmie@1 2 {% load comment_tags %}
gremmie@1 3 {% get_comment_count for story as comment_count %}
gremmie@1 4 <div class="news-story-container">
bgneal@32 5 {% if on_home %}
bgneal@32 6 <h3><a href="{{ story.get_absolute_url }}">{{ story.title }}</a></h3>
bgneal@32 7 {% else %}
bgneal@5 8 <h4><a href="{{ story.get_absolute_url }}">{{ story.title }}</a></h4>
bgneal@32 9 {% endif %}
gremmie@1 10 <div class="news-details">
bgneal@204 11 Submitted by {{ story.submitter.username }} on {{ story.date_submitted|date:"F d, Y" }}.
gremmie@1 12 </div>
bgneal@197 13 <a href="{% url news.views.category category=story.category.id page=1 %}">
gremmie@1 14 <img src="{{ story.category.icon.url }}" alt="{{ story.category.title }}" title="{{ story.category.title }}"
gremmie@1 15 class="news-icon" /></a>
gremmie@1 16 <div class="news-content">
gremmie@1 17 {{ story.short_text|safe }}
gremmie@1 18 </div>
bgneal@5 19 {% if story.long_text %}
gremmie@1 20 <p>
bgneal@5 21 <img src="{{ MEDIA_URL }}icons/bullet_go.png" alt="Read More" />
bgneal@5 22 <a href="{{ story.get_absolute_url }}">There is more to this story, continue reading ...</a>
bgneal@5 23 </p>
gremmie@1 24 {% endif %}
bgneal@5 25 <hr />
bgneal@5 26 <p>
bgneal@197 27 Category: <a href="{% url news.views.category category=story.category.id page=1 %}">{{ story.category.title }}</a>
bgneal@24 28 <img src="{{ MEDIA_URL }}icons/comments.png" alt="Comments" title="Comments" />
bgneal@5 29 <a href="{{ story.get_absolute_url }}">{{ comment_count }} comment{{ comment_count|pluralize }}</a>
bgneal@5 30 <a href="{{ story.get_absolute_url }}"><img src="{{ MEDIA_URL }}icons/link.png" alt="Permalink" title="Permalink" /></a>
bgneal@5 31 {% if user.is_authenticated %}
bgneal@5 32 <a href="{% url news.views.email_story story.id %}"><img src="{{ MEDIA_URL }}icons/email_go.png"
bgneal@5 33 alt="Send this story to a friend" title="Send this story to a friend" /></a>
bgneal@5 34 {% endif %}
gremmie@1 35 </p>
bgneal@205 36 {% tags_for_object story as story_tags %}
bgneal@205 37 {% if story_tags %}
gremmie@1 38 <div class="news-tags">
bgneal@24 39 <img src="{{ MEDIA_URL }}icons/tag_blue.png" alt="Tags" title="Tags" /> Tags:
gremmie@1 40 <ul>
bgneal@205 41 {% for tag in story_tags %}
bgneal@197 42 <li><a href="{% url news-tag_page tag_name=tag page=1 %}">{{ tag }}</a></li>
gremmie@1 43 {% endfor %}
gremmie@1 44 </ul>
gremmie@1 45 </div>
gremmie@1 46 {% endif %}
gremmie@1 47 </div>