annotate gpp/templates/news/story_summary.html @ 25:81e2449a5932

Center the text in the IRC status block.
author Brian Neal <bgneal@gmail.com>
date Sun, 19 Apr 2009 21:58:47 +0000
parents c284c0e5c5db
children 07da6967fc40
rev   line source
gremmie@1 1 {% load comment_tags %}
gremmie@1 2 {% get_comment_count for story as comment_count %}
gremmie@1 3 <div class="news-story-container">
bgneal@5 4 <h4><a href="{{ story.get_absolute_url }}">{{ story.title }}</a></h4>
gremmie@1 5 <div class="news-details">
gremmie@1 6 Submitted by {{ story.submitter.username }} on {{ story.date_published|date:"F d, Y" }}.
gremmie@1 7 </div>
gremmie@1 8 <a href="{% url news.views.category category=story.category.id,page=1 %}">
gremmie@1 9 <img src="{{ story.category.icon.url }}" alt="{{ story.category.title }}" title="{{ story.category.title }}"
gremmie@1 10 class="news-icon" /></a>
gremmie@1 11 <div class="news-content">
gremmie@1 12 {{ story.short_text|safe }}
gremmie@1 13 </div>
bgneal@5 14 {% if story.long_text %}
gremmie@1 15 <p>
bgneal@5 16 <img src="{{ MEDIA_URL }}icons/bullet_go.png" alt="Read More" />
bgneal@5 17 <a href="{{ story.get_absolute_url }}">There is more to this story, continue reading ...</a>
bgneal@5 18 </p>
gremmie@1 19 {% endif %}
bgneal@5 20 <hr />
bgneal@5 21 <p>
bgneal@24 22 Category: <a href="{% url news.views.category category=story.category.id,page=1 %}">{{ story.category.title }}</a>
bgneal@24 23 <img src="{{ MEDIA_URL }}icons/comments.png" alt="Comments" title="Comments" />
bgneal@5 24 <a href="{{ story.get_absolute_url }}">{{ comment_count }} comment{{ comment_count|pluralize }}</a>
bgneal@5 25 <a href="{{ story.get_absolute_url }}"><img src="{{ MEDIA_URL }}icons/link.png" alt="Permalink" title="Permalink" /></a>
bgneal@5 26 {% if user.is_authenticated %}
bgneal@5 27 <a href="{% url news.views.email_story story.id %}"><img src="{{ MEDIA_URL }}icons/email_go.png"
bgneal@5 28 alt="Send this story to a friend" title="Send this story to a friend" /></a>
bgneal@5 29 {% endif %}
gremmie@1 30 </p>
gremmie@1 31 {% if story_tags %}
gremmie@1 32 <div class="news-tags">
bgneal@24 33 <img src="{{ MEDIA_URL }}icons/tag_blue.png" alt="Tags" title="Tags" /> Tags:
gremmie@1 34 <ul>
gremmie@1 35 {% for tag in story_tags %}
gremmie@1 36 <li><a href="{% url news-tag_page tag_name=tag.name,page=1 %}">{{ tag.name }}</a></li>
gremmie@1 37 {% endfor %}
gremmie@1 38 </ul>
gremmie@1 39 </div>
gremmie@1 40 {% endif %}
gremmie@1 41 </div>