Mercurial > public > sg101
annotate gpp/templates/shoutbox/view.html @ 102:e67c4dd98db5
Forums: new topic form sprouts boolean fields for sticky and locking if the user has rights. Implemented the locked logic. Fixed a bug where topics where getting out of order (the view_count was bumping the update_date because of auto_now).
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Wed, 16 Sep 2009 02:01:57 +0000 |
parents | 777451a98f9d |
children | e1d1a70d312d |
rev | line source |
---|---|
gremmie@1 | 1 {% extends 'base.html' %} |
gremmie@1 | 2 {% load avatar_tags %} |
gremmie@1 | 3 {% load smiley_tags %} |
bgneal@6 | 4 {% load script_tags %} |
gremmie@1 | 5 {% block custom_css %} |
gremmie@1 | 6 <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/shoutbox_app.css" /> |
gremmie@1 | 7 <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/pagination.css" /> |
gremmie@1 | 8 {% endblock %} |
gremmie@1 | 9 {% block custom_js %} |
bgneal@6 | 10 {% script_tags "jquery-jeditable" %} |
gremmie@1 | 11 <script type="text/javascript" src="{{ MEDIA_URL }}js/shoutbox_app.js"></script> |
gremmie@1 | 12 {% endblock %} |
gremmie@1 | 13 {% block title %}Shout History{% endblock %} |
gremmie@1 | 14 {% block content %} |
gremmie@1 | 15 <h2>Shout History</h2> |
gremmie@1 | 16 {% if page.object_list %} |
gremmie@1 | 17 {% include 'core/pagination.html' %} |
gremmie@1 | 18 |
gremmie@1 | 19 <div class="shoutbox-history"> |
gremmie@1 | 20 <table> |
gremmie@1 | 21 {% for shout in page.object_list %} |
bgneal@13 | 22 {% include "shoutbox/shout_detail.html" %} |
gremmie@1 | 23 {% endfor %} |
gremmie@1 | 24 </table> |
gremmie@1 | 25 </div> |
gremmie@1 | 26 |
gremmie@1 | 27 {% include 'core/pagination.html' %} |
gremmie@1 | 28 {% else %} |
gremmie@1 | 29 <p>No shouts at this time.</p> |
gremmie@1 | 30 {% endif %} |
gremmie@1 | 31 {% endblock %} |