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

Initial import of sg101 stuff from private repository.
author gremmie
date Mon, 06 Apr 2009 02:43:12 +0000
parents
children b6263ac72052
comparison
equal deleted inserted replaced
0:900ba3c7b765 1:dbd703f7d63a
1 {% extends 'base.html' %}
2 {% load avatar_tags %}
3 {% load smiley_tags %}
4 {% block custom_css %}
5 <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/shoutbox_app.css" />
6 <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/pagination.css" />
7 {% endblock %}
8 {% block custom_js %}
9 <script type="text/javascript" src="{{ MEDIA_URL }}js/jquery-1.2.6.min.js"></script>
10 <script type="text/javascript" src="{{ MEDIA_URL }}js/jquery.jeditable.mini.js"></script>
11 <script type="text/javascript" src="{{ MEDIA_URL }}js/shoutbox_app.js"></script>
12 {% endblock %}
13 {% block title %}Shout History{% endblock %}
14 {% block content %}
15 <h2>Shout History</h2>
16 {% if page.object_list %}
17 {% include 'core/pagination.html' %}
18
19 <div class="shoutbox-history">
20 <table>
21 {% for shout in page.object_list %}
22 <tr>
23 <th>
24 <a href="{% url bio-view_profile username=shout.user.username %}">{% avatar shout.user %}</a>
25 <a href="{% url bio-view_profile username=shout.user.username %}">{{ shout.user.username }}</a>
26 </th>
27 <td>
28 <div {% ifequal user shout.user %}class="edit" id="shout-{{ shout.id }}"{% endifequal %}>{{ shout.shout|smilify|urlize }}</div>
29 </div>
30 <br />
31 <span class="date">{{ shout.shout_date|date:"D M d Y H:i:s" }}</span>
32 {% ifequal user shout.user %}
33 | <a href="#" class="shout-del" id="shout-del-{{ shout.id }}">Delete</a>
34 {% endifequal %}
35 </td>
36 </tr>
37 {% endfor %}
38 </table>
39 </div>
40
41 {% include 'core/pagination.html' %}
42 {% else %}
43 <p>No shouts at this time.</p>
44 {% endif %}
45 {% endblock %}