Mercurial > public > sg101
annotate gpp/templates/news/index.html @ 481:9f888dbe61ce
Fixing #230; add a scrollbar to the PM popup dialog if necessary. This wasn't as easy as I thought. Had to wrap the PM text in a div with its styling (max-height and overflow). If I then resized the dialog, I'd get two scrollbars. So for now, made the dialog non-resizable.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Fri, 07 Oct 2011 02:11:33 +0000 |
parents | 88b2b9cb8c1f |
children | bbbc357ac5f3 |
rev | line source |
---|---|
gremmie@1 | 1 {% extends 'news/base.html' %} |
gremmie@1 | 2 {% block title %}News: {{ title }}{% endblock %} |
gremmie@1 | 3 {% block news_css %} |
bgneal@312 | 4 <link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/pagination.css" /> |
gremmie@1 | 5 {% endblock %} |
gremmie@1 | 6 {% block news_content %} |
gremmie@1 | 7 <h3>{{ title }}</h3> |
gremmie@1 | 8 |
bgneal@240 | 9 {% if page.object_list %} |
gremmie@1 | 10 {% include 'core/pagination.html' %} |
gremmie@1 | 11 {% for story in page.object_list %} |
gremmie@1 | 12 {% include 'news/story_summary.html' %} |
gremmie@1 | 13 {% endfor %} |
bgneal@240 | 14 {% include 'core/pagination.html' %} |
gremmie@1 | 15 <div style="clear:right;"></div> |
gremmie@1 | 16 {% else %} |
bgneal@240 | 17 <p>No news at this time.</p> |
gremmie@1 | 18 {% endif %} |
gremmie@1 | 19 |
gremmie@1 | 20 {% endblock %} |