comparison gpp/templates/news/index.html @ 490:f0f3966ea44f

For #233, switched to asynchronous loading of the social media sharing javascript. Also switched to Facebook's javascript SDK instead of using an iframe for the like/share button.
author Brian Neal <bgneal@gmail.com>
date Thu, 20 Oct 2011 00:36:37 +0000
parents bbbc357ac5f3
children
comparison
equal deleted inserted replaced
489:f785a646a5fc 490:f0f3966ea44f
2 {% load script_tags %} 2 {% load script_tags %}
3 {% block title %}News: {{ title }}{% endblock %} 3 {% block title %}News: {{ title }}{% endblock %}
4 {% block news_css %} 4 {% block news_css %}
5 <link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/pagination.css" /> 5 <link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/pagination.css" />
6 {% endblock %} 6 {% endblock %}
7 {% block custom_js %} 7 {% block begin_body %}{% include 'core/social_sharing_begin.html' %}{% endblock %}
8 {% script_tags "social" %}
9 {% endblock %}
10 {% block news_content %} 8 {% block news_content %}
11 <h3>{{ title }}</h3> 9 <h3>{{ title }}</h3>
12 10
13 {% if page.object_list %} 11 {% if page.object_list %}
14 {% include 'core/pagination.html' %} 12 {% include 'core/pagination.html' %}
20 {% else %} 18 {% else %}
21 <p>No news at this time.</p> 19 <p>No news at this time.</p>
22 {% endif %} 20 {% endif %}
23 21
24 {% endblock %} 22 {% endblock %}
23 {% block end_body %}{% include 'core/social_sharing_end.html' %}{% endblock %}