annotate gpp/templates/shoutbox/shoutbox.html @ 5:63696b279e35

Display news links and send to friend on the summary page. Use icons.
author Brian Neal <bgneal@gmail.com>
date Sat, 11 Apr 2009 19:45:17 +0000
parents dbd703f7d63a
children f408971657b9
rev   line source
gremmie@1 1 {% extends 'side_block.html' %}
gremmie@1 2 {% load smiley_tags %}
gremmie@1 3 {% block block_title %}Shoutbox{% endblock %}
gremmie@1 4 {% block block_content %}
gremmie@1 5 {% if shouts %}
gremmie@1 6 <!--<div id="marqueecontainer" onmouseover="copyspeed=pausespeed" onmouseout="copyspeed=marqueespeed">-->
gremmie@1 7 <div id="marqueecontainer">
gremmie@1 8 <!--<div id="vmarquee" style="position: absolute; width: 98%; overflow:auto;">-->
gremmie@1 9 {# for shout in shouts reversed #}
gremmie@1 10 {% for shout in shouts %}
gremmie@1 11 <p>
gremmie@1 12 <span class="shoutbox-user">{{ shout.user.username }}:</span>
gremmie@1 13 <span class="shoutbox-shout">{{ shout.shout|smilify|urlizetrunc:15 }}</span>
gremmie@1 14 <span class="shoutbox-date">{{ shout.shout_date|date:"D M d Y H:i:s" }}</span>
gremmie@1 15 </p>
gremmie@1 16 {% endfor %}
gremmie@1 17 <!--</div>-->
gremmie@1 18 </div>
gremmie@1 19 {% endif %}
gremmie@1 20 <center><a href="{% url shoutbox-view page=1 %}">Shout History</a></center>
gremmie@1 21 {% if user.is_authenticated %}
gremmie@1 22 <center>
gremmie@1 23 <form action="{% url shoutbox-shout %}" method="post">
gremmie@1 24 <input type="text" maxlength="2048" size="13" name="msg" value="" id="shoutbox-smiley-input" />
gremmie@1 25 <br />
gremmie@1 26 <input type="submit" value="Shout" />
gremmie@1 27 <input type="button" value="Smilies" onclick="sb_toggle_smilies();" />
gremmie@1 28 </form>
gremmie@1 29 <div id="shoutbox-smiley-frame" style="display:none;">
gremmie@1 30 {% smiley_farm %}
gremmie@1 31 </div>
gremmie@1 32 </center>
gremmie@1 33 {% else %}
gremmie@1 34 <p>
gremmie@1 35 Please <a href="{% url accounts-login %}">login</a> or
gremmie@1 36 <a href="{% url accounts-register %}">register</a> to shout.
gremmie@1 37 </p>
gremmie@1 38 {% endif %}
gremmie@1 39 {% endblock %}