diff gpp/templates/news/story_summary.html @ 5:63696b279e35

Display news links and send to friend on the summary page. Use icons.
author Brian Neal <bgneal@gmail.com>
date Sat, 11 Apr 2009 19:45:17 +0000
parents dbd703f7d63a
children c284c0e5c5db
line wrap: on
line diff
--- a/gpp/templates/news/story_summary.html	Sat Apr 11 18:52:19 2009 +0000
+++ b/gpp/templates/news/story_summary.html	Sat Apr 11 19:45:17 2009 +0000
@@ -1,7 +1,7 @@
 {% load comment_tags %}
 {% get_comment_count for story as comment_count %}
 <div class="news-story-container">
-<h4><a href="{% url news.views.story story.id %}">{{ story.title }}</a></h4>
+<h4><a href="{{ story.get_absolute_url }}">{{ story.title }}</a></h4>
 <div class="news-details">
    Submitted by {{ story.submitter.username }} on {{ story.date_published|date:"F d, Y" }}.
 </div>
@@ -11,15 +11,25 @@
 <div class="news-content">
    {{ story.short_text|safe }}
 </div>
+{% if story.long_text %}
 <p>
-{% if story.long_text or comment_count %}
-<a href="{% url news.views.story story.id %}">Read more...</a> |
+<img src="{{ MEDIA_URL }}icons/bullet_go.png" alt="Read More" />
+<a href="{{ story.get_absolute_url }}">There is more to this story, continue reading ...</a>
+</p>
 {% endif %}
-<a href="{% url news.views.story story.id %}">{{ comment_count }} comment{{ comment_count|pluralize }}</a>.
+<hr />
+<p>
+<img src="{{ MEDIA_URL }}icons/comments.png" alt="Comments" />
+<a href="{{ story.get_absolute_url }}">{{ comment_count }} comment{{ comment_count|pluralize }}</a>
+<a href="{{ story.get_absolute_url }}"><img src="{{ MEDIA_URL }}icons/link.png" alt="Permalink" title="Permalink" /></a>
+{% if user.is_authenticated %}
+<a href="{% url news.views.email_story story.id %}"><img src="{{ MEDIA_URL }}icons/email_go.png"
+   alt="Send this story to a friend" title="Send this story to a friend" /></a>
+{% endif %}
 </p>
 {% if story_tags %}
 <div class="news-tags">
-   <span>Tags:</span>
+   <img src="{{ MEDIA_URL }}icons/tag_blue.png" alt="Tags" title="Tags" />
    <ul>
       {% for tag in story_tags %}
          <li><a href="{% url news-tag_page tag_name=tag.name,page=1 %}">{{ tag.name }}</a></li>