gremmie@1: {% extends 'news/base.html' %} bgneal@310: {% load url from future %} gremmie@1: {% load tagging_tags %} bgneal@493: {% load bio_tags %} gremmie@1: {% load comment_tags %} bgneal@6: {% load script_tags %} bgneal@484: {% load core_tags %} gremmie@1: {% block title %}News: {{ story.title }}{% endblock %} bgneal@484: {% block custom_meta %} bgneal@484: {% open_graph_meta_tags story %} bgneal@484: {% endblock %} gremmie@1: {% block news_css %} bgneal@312: <link rel="stylesheet" type="text/css" href="{{ STATIC_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" %} bgneal@312: <script type="text/javascript" src="{{ STATIC_URL }}js/comments.js"></script> bgneal@6: {% endif %} gremmie@1: {% endblock %} bgneal@490: {% block begin_body %}{% include 'core/social_sharing_begin.html' %}{% endblock %} gremmie@1: {% block news_content %} bgneal@380: <div class="solid-background"> gremmie@1: <h3>{{ story.title }}</h3> gremmie@1: <div class="news-details"> bgneal@493: Submitted by {% profile_link story.submitter.username %} on {{ story.date_submitted|date:"F d, Y" }}. gremmie@1: </div> bgneal@5: <hr /> gremmie@1: <div class="news-content"> bgneal@310: <a href="{% url 'news-category' slug=story.category.slug %}"> 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" /> bgneal@5: <hr /> bgneal@24: <p> bgneal@310: Category: <a href="{% url 'news-category' slug=story.category.slug %}">{{ story.category.title }}</a> bgneal@312: <a href="{{ story.get_absolute_url }}"><img src="{{ STATIC_URL }}icons/link.png" bgneal@24: alt="Story Permalink" title="Story Permalink" /></a> bgneal@24: {% if user.is_authenticated %} bgneal@312: <a href="{% url 'news.views.email_story' story.id %}"><img src="{{ STATIC_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> bgneal@205: {% tags_for_object story as story_tags %} bgneal@205: {% if story_tags %} gremmie@1: <div class="news-tags"> bgneal@312: <img src="{{ STATIC_URL }}icons/tag_blue.png" alt="Tags" title="Tags" /> Tags: gremmie@1: <ul> gremmie@1: {% for tag in story_tags %} bgneal@310: <li><a href="{% url 'news-tag_page' tag_name=tag.name %}">{{ tag.name }}</a></li> gremmie@1: {% endfor %} gremmie@1: </ul> gremmie@1: </div> gremmie@1: {% endif %} bgneal@484: {% social_sharing story.title story.get_absolute_url %} 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 bgneal@310: with the site staff, you can <a href="{% url 'contact-form' %}">contact us directly</a>.</p> gremmie@1: {% endif %} bgneal@380: </div> gremmie@1: {% endblock %} bgneal@490: {% block end_body %}{% include 'core/social_sharing_end.html' %}{% endblock %}