annotate gpp/templates/news/story_summary.html @ 494:3800f3bcf4a8

Changed to HMTL5 in base template.
author Brian Neal <bgneal@gmail.com>
date Sat, 05 Nov 2011 15:54:53 +0000
parents bdcce55f137e
children
rev   line source
bgneal@310 1 {% load url from future %}
bgneal@205 2 {% load tagging_tags %}
bgneal@493 3 {% load bio_tags %}
gremmie@1 4 {% load comment_tags %}
bgneal@484 5 {% load core_tags %}
bgneal@380 6 <div class="news-story-container solid-background">
bgneal@32 7 {% if on_home %}
bgneal@32 8 <h3><a href="{{ story.get_absolute_url }}">{{ story.title }}</a></h3>
bgneal@32 9 {% else %}
bgneal@5 10 <h4><a href="{{ story.get_absolute_url }}">{{ story.title }}</a></h4>
bgneal@32 11 {% endif %}
gremmie@1 12 <div class="news-details">
bgneal@493 13 Submitted by {% profile_link story.submitter.username %} on {{ story.date_submitted|date:"F d, Y" }}.
gremmie@1 14 </div>
bgneal@310 15 <a href="{% url 'news-category' slug=story.category.slug %}">
gremmie@1 16 <img src="{{ story.category.icon.url }}" alt="{{ story.category.title }}" title="{{ story.category.title }}"
gremmie@1 17 class="news-icon" /></a>
gremmie@1 18 <div class="news-content">
gremmie@1 19 {{ story.short_text|safe }}
gremmie@1 20 </div>
bgneal@5 21 {% if story.long_text %}
gremmie@1 22 <p>
bgneal@312 23 <img src="{{ STATIC_URL }}icons/bullet_go.png" alt="Read More" />
bgneal@5 24 <a href="{{ story.get_absolute_url }}">There is more to this story, continue reading ...</a>
bgneal@5 25 </p>
gremmie@1 26 {% endif %}
bgneal@5 27 <hr />
bgneal@5 28 <p>
bgneal@310 29 Category: <a href="{% url 'news-category' slug=story.category.slug %}">{{ story.category.title }}</a>
bgneal@312 30 <img src="{{ STATIC_URL }}icons/comments.png" alt="Comments" title="Comments" />
bgneal@399 31 <a href="{{ story.get_absolute_url }}">{{ story.comment_count }} comment{{ story.comment_count|pluralize }}</a>
bgneal@312 32 <a href="{{ story.get_absolute_url }}"><img src="{{ STATIC_URL }}icons/link.png" alt="Permalink" title="Permalink" /></a>
bgneal@5 33 {% if user.is_authenticated %}
bgneal@312 34 <a href="{% url 'news.views.email_story' story.id %}"><img src="{{ STATIC_URL }}icons/email_go.png"
bgneal@5 35 alt="Send this story to a friend" title="Send this story to a friend" /></a>
bgneal@5 36 {% endif %}
gremmie@1 37 </p>
bgneal@399 38 {% if story.tag_list %}
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@399 42 {% for tag in story.tag_list %}
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 %}
bgneal@484 48 {% social_sharing story.title story.get_absolute_url %}
gremmie@1 49 </div>