gremmie@1: {% extends 'news/base.html' %} gremmie@1: {% load tagging_tags %} gremmie@1: {% load comment_tags %} bgneal@6: {% load script_tags %} gremmie@1: {% block title %}News: {{ story.title }}{% endblock %} gremmie@1: {% block news_css %} gremmie@1: <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/comments.css" /> gremmie@1: {% endblock %} gremmie@1: {% block custom_js %} bgneal@6: {% if story.can_comment_on %} bgneal@127: {% script_tags "markitup jquery-ui" %} gremmie@1: <script type="text/javascript" src="{{ MEDIA_URL }}js/comments.js"></script> bgneal@6: {% endif %} gremmie@1: {% endblock %} gremmie@1: {% block news_content %} gremmie@1: <h3>{{ story.title }}</h3> gremmie@1: <div class="news-details"> gremmie@1: Submitted by {{ story.submitter.username }} on {{ story.date_published|date:"F d, Y" }}. gremmie@1: </div> bgneal@5: <hr /> gremmie@1: <div class="news-content"> gremmie@1: <a href="{% url news.views.category category=story.category.id,page=1 %}"> gremmie@1: <img src="{{ story.category.icon.url }}" alt="{{ story.category.title }}" title="{{ story.category.title }}" gremmie@1: class="news-icon" /></a> gremmie@1: {{ story.short_text|safe }} gremmie@1: {{ story.long_text|safe }} gremmie@1: <br clear="all" /> gremmie@1: {% tags_for_object story as story_tags %} gremmie@1: {% if story_tags %} bgneal@5: <hr /> bgneal@24: <p> bgneal@24: Category: <a href="{% url news.views.category category=story.category.id,page=1 %}">{{ story.category.title }}</a> bgneal@24: <a href="{{ story.get_absolute_url }}"><img src="{{ MEDIA_URL }}icons/link.png" bgneal@24: alt="Story Permalink" title="Story Permalink" /></a> bgneal@24: {% if user.is_authenticated %} bgneal@24: <a href="{% url news.views.email_story story.id %}"><img src="{{ MEDIA_URL }}icons/email_go.png" bgneal@24: alt="Send this story to a friend" title="Send this story to a friend" /></a> bgneal@24: {% endif %} bgneal@24: </p> gremmie@1: <div class="news-tags"> bgneal@24: <img src="{{ MEDIA_URL }}icons/tag_blue.png" alt="Tags" title="Tags" /> Tags: gremmie@1: <ul> gremmie@1: {% for tag in story_tags %} gremmie@1: <li><a href="{% url news-tag_page tag_name=tag.name,page=1 %}">{{ tag.name }}</a></li> gremmie@1: {% endfor %} gremmie@1: </ul> gremmie@1: </div> gremmie@1: {% endif %} gremmie@1: </div> gremmie@1: {% get_comment_count for story as comment_count %} gremmie@1: <p>This story has <span id="comment-count">{{ comment_count }}</span> comment{{ comment_count|pluralize }}.</p> gremmie@1: <hr /> gremmie@1: {% render_comment_list story %} gremmie@1: {% if story.can_comment_on %} gremmie@1: <p>Leave a comment?</p> gremmie@1: {% render_comment_form for story %} gremmie@1: {% else %} gremmie@1: <p>Comments are closed for this story. If you'd like to share your thoughts on this story gremmie@1: with the site staff, you can <a href="{% url contact-form %}">contact us directly</a>.</p> gremmie@1: {% endif %} gremmie@1: {% endblock %}