comparison gpp/templates/shoutbox/shoutbox.html @ 1:dbd703f7d63a

Initial import of sg101 stuff from private repository.
author gremmie
date Mon, 06 Apr 2009 02:43:12 +0000
parents
children f408971657b9
comparison
equal deleted inserted replaced
0:900ba3c7b765 1:dbd703f7d63a
1 {% extends 'side_block.html' %}
2 {% load smiley_tags %}
3 {% block block_title %}Shoutbox{% endblock %}
4 {% block block_content %}
5 {% if shouts %}
6 <!--<div id="marqueecontainer" onmouseover="copyspeed=pausespeed" onmouseout="copyspeed=marqueespeed">-->
7 <div id="marqueecontainer">
8 <!--<div id="vmarquee" style="position: absolute; width: 98%; overflow:auto;">-->
9 {# for shout in shouts reversed #}
10 {% for shout in shouts %}
11 <p>
12 <span class="shoutbox-user">{{ shout.user.username }}:</span>
13 <span class="shoutbox-shout">{{ shout.shout|smilify|urlizetrunc:15 }}</span>
14 <span class="shoutbox-date">{{ shout.shout_date|date:"D M d Y H:i:s" }}</span>
15 </p>
16 {% endfor %}
17 <!--</div>-->
18 </div>
19 {% endif %}
20 <center><a href="{% url shoutbox-view page=1 %}">Shout History</a></center>
21 {% if user.is_authenticated %}
22 <center>
23 <form action="{% url shoutbox-shout %}" method="post">
24 <input type="text" maxlength="2048" size="13" name="msg" value="" id="shoutbox-smiley-input" />
25 <br />
26 <input type="submit" value="Shout" />
27 <input type="button" value="Smilies" onclick="sb_toggle_smilies();" />
28 </form>
29 <div id="shoutbox-smiley-frame" style="display:none;">
30 {% smiley_farm %}
31 </div>
32 </center>
33 {% else %}
34 <p>
35 Please <a href="{% url accounts-login %}">login</a> or
36 <a href="{% url accounts-register %}">register</a> to shout.
37 </p>
38 {% endif %}
39 {% endblock %}