annotate gpp/templates/shoutbox/shoutbox.html @ 334:6805d15cda13

Adding a script I had to write on the fly to filter out posts from the posts csv file that had no parent topics. MyISAM let me get away with that, but InnoDB won't.
author Brian Neal <bgneal@gmail.com>
date Sat, 26 Feb 2011 01:28:22 +0000
parents 88b2b9cb8c1f
children
rev   line source
gremmie@1 1 {% extends 'side_block.html' %}
bgneal@310 2 {% load url from future %}
bgneal@270 3 {% load core_tags %}
gremmie@1 4 {% block block_title %}Shoutbox{% endblock %}
gremmie@1 5 {% block block_content %}
bgneal@12 6 <div id="shoutbox-shout-container">
bgneal@272 7 {% for shout in shouts reversed %}
gremmie@1 8 <p>
gremmie@1 9 <span class="shoutbox-user">{{ shout.user.username }}:</span>
bgneal@270 10 <span class="shoutbox-shout">{{ shout.html|safe }}</span><br />
bgneal@270 11 <span class="shoutbox-date">{{ shout.shout_date|elapsed }}</span>
gremmie@1 12 </p>
gremmie@1 13 {% endfor %}
gremmie@1 14 </div>
bgneal@272 15 <center>
bgneal@272 16 <button type="button" id="shoutbox-prev" title="Previous">&laquo;</button>
bgneal@310 17 <a href="{% url 'shoutbox-history' %}">Shout History</a>
bgneal@272 18 <button type="button" id="shoutbox-next" title="Next">&raquo;</button>
bgneal@272 19 </center>
gremmie@1 20 {% if user.is_authenticated %}
gremmie@1 21 <center>
bgneal@194 22 <div>
gremmie@1 23 <input type="text" maxlength="2048" size="13" name="msg" value="" id="shoutbox-smiley-input" />
gremmie@1 24 <br />
bgneal@12 25 <input id="shoutbox-submit" type="submit" value="Shout" />
bgneal@12 26 <input id="shoutbox-smilies" type="button" value="Smilies" />
bgneal@194 27 </div>
gremmie@1 28 <div id="shoutbox-smiley-frame" style="display:none;">
bgneal@312 29 <img id="shoutbox-busy-icon" src="{{ STATIC_URL }}icons/ajax_busy.gif" alt="Please wait" />
gremmie@1 30 </div>
gremmie@1 31 </center>
gremmie@1 32 {% else %}
gremmie@1 33 <p>
bgneal@310 34 Please <a href="{% url 'accounts-login' %}">login</a> or
bgneal@310 35 <a href="{% url 'accounts-register' %}">register</a> to shout.
gremmie@1 36 </p>
gremmie@1 37 {% endif %}
gremmie@1 38 {% endblock %}