comparison gpp/templates/news/story.html @ 484:bbbc357ac5f3

For #233; first commit for adding social media sharing buttons to news stories.
author Brian Neal <bgneal@gmail.com>
date Tue, 18 Oct 2011 00:04:37 +0000
parents c3cc431b7fb9
children f0f3966ea44f
comparison
equal deleted inserted replaced
483:3ac558402014 484:bbbc357ac5f3
1 {% extends 'news/base.html' %} 1 {% extends 'news/base.html' %}
2 {% load url from future %} 2 {% load url from future %}
3 {% load tagging_tags %} 3 {% load tagging_tags %}
4 {% load comment_tags %} 4 {% load comment_tags %}
5 {% load script_tags %} 5 {% load script_tags %}
6 {% load core_tags %}
6 {% block title %}News: {{ story.title }}{% endblock %} 7 {% block title %}News: {{ story.title }}{% endblock %}
8 {% block custom_meta %}
9 {% open_graph_meta_tags story %}
10 {% endblock %}
7 {% block news_css %} 11 {% block news_css %}
8 <link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/comments.css" /> 12 <link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/comments.css" />
9 {% endblock %} 13 {% endblock %}
10 {% block custom_js %} 14 {% block custom_js %}
11 {% if story.can_comment_on %} 15 {% if story.can_comment_on %}
12 {% script_tags "markitup jquery-ui" %} 16 {% script_tags "markitup jquery-ui" %}
13 <script type="text/javascript" src="{{ STATIC_URL }}js/comments.js"></script> 17 <script type="text/javascript" src="{{ STATIC_URL }}js/comments.js"></script>
14 {% endif %} 18 {% endif %}
19 {% script_tags "social" %}
15 {% endblock %} 20 {% endblock %}
16 {% block news_content %} 21 {% block news_content %}
17 <div class="solid-background"> 22 <div class="solid-background">
18 <h3>{{ story.title }}</h3> 23 <h3>{{ story.title }}</h3>
19 <div class="news-details"> 24 <div class="news-details">
46 <li><a href="{% url 'news-tag_page' tag_name=tag.name %}">{{ tag.name }}</a></li> 51 <li><a href="{% url 'news-tag_page' tag_name=tag.name %}">{{ tag.name }}</a></li>
47 {% endfor %} 52 {% endfor %}
48 </ul> 53 </ul>
49 </div> 54 </div>
50 {% endif %} 55 {% endif %}
56 {% social_sharing story.title story.get_absolute_url %}
51 </div> 57 </div>
52 {% get_comment_count for story as comment_count %} 58 {% get_comment_count for story as comment_count %}
53 <p>This story has <span id="comment-count">{{ comment_count }}</span> comment{{ comment_count|pluralize }}.</p> 59 <p>This story has <span id="comment-count">{{ comment_count }}</span> comment{{ comment_count|pluralize }}.</p>
54 <hr /> 60 <hr />
55 {% render_comment_list story %} 61 {% render_comment_list story %}