Mercurial > public > sg101
diff gpp/templates/news/story.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 | b6263ac72052 |
line wrap: on
line diff
--- a/gpp/templates/news/story.html Sat Apr 11 18:52:19 2009 +0000 +++ b/gpp/templates/news/story.html Sat Apr 11 19:45:17 2009 +0000 @@ -18,6 +18,7 @@ <div class="news-details"> Submitted by {{ story.submitter.username }} on {{ story.date_published|date:"F d, Y" }}. </div> +<hr /> <div class="news-content"> <a href="{% url news.views.category category=story.category.id,page=1 %}"> <img src="{{ story.category.icon.url }}" alt="{{ story.category.title }}" title="{{ story.category.title }}" @@ -27,8 +28,9 @@ <br clear="all" /> {% tags_for_object story as story_tags %} {% if story_tags %} + <hr /> <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> @@ -39,8 +41,10 @@ <p> <a href="{{ story.get_absolute_url }}"><img src="{{ MEDIA_URL }}icons/link.png" alt="Story Permalink" title="Story 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> </div> {% get_comment_count for story as comment_count %}