gremmie@1
|
1 {% extends 'news/base.html' %}
|
bgneal@310
|
2 {% load url from future %}
|
gremmie@1
|
3 {% load tagging_tags %}
|
gremmie@1
|
4 {% load comment_tags %}
|
bgneal@6
|
5 {% load script_tags %}
|
gremmie@1
|
6 {% block title %}News: {{ story.title }}{% endblock %}
|
gremmie@1
|
7 {% block news_css %}
|
bgneal@312
|
8 <link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/comments.css" />
|
gremmie@1
|
9 {% endblock %}
|
gremmie@1
|
10 {% block custom_js %}
|
bgneal@6
|
11 {% if story.can_comment_on %}
|
bgneal@127
|
12 {% script_tags "markitup jquery-ui" %}
|
bgneal@312
|
13 <script type="text/javascript" src="{{ STATIC_URL }}js/comments.js"></script>
|
bgneal@6
|
14 {% endif %}
|
gremmie@1
|
15 {% endblock %}
|
gremmie@1
|
16 {% block news_content %}
|
bgneal@380
|
17 <div class="solid-background">
|
gremmie@1
|
18 <h3>{{ story.title }}</h3>
|
gremmie@1
|
19 <div class="news-details">
|
bgneal@204
|
20 Submitted by {{ story.submitter.username }} on {{ story.date_submitted|date:"F d, Y" }}.
|
gremmie@1
|
21 </div>
|
bgneal@5
|
22 <hr />
|
gremmie@1
|
23 <div class="news-content">
|
bgneal@310
|
24 <a href="{% url 'news-category' slug=story.category.slug %}">
|
gremmie@1
|
25 <img src="{{ story.category.icon.url }}" alt="{{ story.category.title }}" title="{{ story.category.title }}"
|
gremmie@1
|
26 class="news-icon" /></a>
|
gremmie@1
|
27 {{ story.short_text|safe }}
|
gremmie@1
|
28 {{ story.long_text|safe }}
|
gremmie@1
|
29 <br clear="all" />
|
bgneal@5
|
30 <hr />
|
bgneal@24
|
31 <p>
|
bgneal@310
|
32 Category: <a href="{% url 'news-category' slug=story.category.slug %}">{{ story.category.title }}</a>
|
bgneal@312
|
33 <a href="{{ story.get_absolute_url }}"><img src="{{ STATIC_URL }}icons/link.png"
|
bgneal@24
|
34 alt="Story Permalink" title="Story Permalink" /></a>
|
bgneal@24
|
35 {% if user.is_authenticated %}
|
bgneal@312
|
36 <a href="{% url 'news.views.email_story' story.id %}"><img src="{{ STATIC_URL }}icons/email_go.png"
|
bgneal@24
|
37 alt="Send this story to a friend" title="Send this story to a friend" /></a>
|
bgneal@24
|
38 {% endif %}
|
bgneal@24
|
39 </p>
|
bgneal@205
|
40 {% tags_for_object story as story_tags %}
|
bgneal@205
|
41 {% if story_tags %}
|
gremmie@1
|
42 <div class="news-tags">
|
bgneal@312
|
43 <img src="{{ STATIC_URL }}icons/tag_blue.png" alt="Tags" title="Tags" /> Tags:
|
gremmie@1
|
44 <ul>
|
gremmie@1
|
45 {% for tag in story_tags %}
|
bgneal@310
|
46 <li><a href="{% url 'news-tag_page' tag_name=tag.name %}">{{ tag.name }}</a></li>
|
gremmie@1
|
47 {% endfor %}
|
gremmie@1
|
48 </ul>
|
gremmie@1
|
49 </div>
|
gremmie@1
|
50 {% endif %}
|
gremmie@1
|
51 </div>
|
gremmie@1
|
52 {% get_comment_count for story as comment_count %}
|
gremmie@1
|
53 <p>This story has <span id="comment-count">{{ comment_count }}</span> comment{{ comment_count|pluralize }}.</p>
|
gremmie@1
|
54 <hr />
|
gremmie@1
|
55 {% render_comment_list story %}
|
gremmie@1
|
56 {% if story.can_comment_on %}
|
gremmie@1
|
57 <p>Leave a comment?</p>
|
gremmie@1
|
58 {% render_comment_form for story %}
|
gremmie@1
|
59 {% else %}
|
gremmie@1
|
60 <p>Comments are closed for this story. If you'd like to share your thoughts on this story
|
bgneal@310
|
61 with the site staff, you can <a href="{% url 'contact-form' %}">contact us directly</a>.</p>
|
gremmie@1
|
62 {% endif %}
|
bgneal@380
|
63 </div>
|
gremmie@1
|
64 {% endblock %}
|