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