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