Mercurial > public > sg101
annotate gpp/templates/news/index.html @ 486:7854d75427af
For #233, add a meta description field for news stories. This field will get put in the open graph meta tag for better descriptions when shared on social media sites.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Tue, 18 Oct 2011 23:23:42 +0000 |
parents | bbbc357ac5f3 |
children | f0f3966ea44f |
rev | line source |
---|---|
gremmie@1 | 1 {% extends 'news/base.html' %} |
bgneal@484 | 2 {% load script_tags %} |
gremmie@1 | 3 {% block title %}News: {{ title }}{% endblock %} |
gremmie@1 | 4 {% block news_css %} |
bgneal@312 | 5 <link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/pagination.css" /> |
gremmie@1 | 6 {% endblock %} |
bgneal@484 | 7 {% block custom_js %} |
bgneal@484 | 8 {% script_tags "social" %} |
bgneal@484 | 9 {% endblock %} |
gremmie@1 | 10 {% block news_content %} |
gremmie@1 | 11 <h3>{{ title }}</h3> |
gremmie@1 | 12 |
bgneal@240 | 13 {% if page.object_list %} |
gremmie@1 | 14 {% include 'core/pagination.html' %} |
gremmie@1 | 15 {% for story in page.object_list %} |
gremmie@1 | 16 {% include 'news/story_summary.html' %} |
gremmie@1 | 17 {% endfor %} |
bgneal@240 | 18 {% include 'core/pagination.html' %} |
gremmie@1 | 19 <div style="clear:right;"></div> |
gremmie@1 | 20 {% else %} |
bgneal@240 | 21 <p>No news at this time.</p> |
gremmie@1 | 22 {% endif %} |
gremmie@1 | 23 |
gremmie@1 | 24 {% endblock %} |