annotate gpp/templates/news/story_summary.html @ 317:2934a867c2ef

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