Mercurial > public > sg101
comparison gpp/templates/forums/topic.html @ 89:021492db4aad
Forums: Got the reply function working.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sat, 12 Sep 2009 21:29:31 +0000 |
parents | 515d1daec811 |
children | 317c7bcaecee |
comparison
equal
deleted
inserted
replaced
88:3abf0b045749 | 89:021492db4aad |
---|---|
1 {% extends 'base.html' %} | 1 {% extends 'base.html' %} |
2 {% load avatar_tags %} | |
3 {% block title %}Forums: {{ topic.name }}{% endblock %} | 2 {% block title %}Forums: {{ topic.name }}{% endblock %} |
3 {% block custom_js %}{% if last_page %}{{ form.media }}{% endif %}{% endblock %} | |
4 {% block content %} | 4 {% block content %} |
5 <h2>Forums: {{ topic.name }}</h2> | 5 <h2>Forums: {{ topic.name }}</h2> |
6 | 6 |
7 <h3> | 7 <h3> |
8 <a href="{% url forums-index %}">SurfGuitar101 Forum Index</a> » | 8 <a href="{% url forums-index %}">SurfGuitar101 Forum Index</a> » |
16 {% else %} | 16 {% else %} |
17 <a href="">New Reply</a> • | 17 <a href="">New Reply</a> • |
18 {% endif %} | 18 {% endif %} |
19 <a href="{% url forums-new_topic slug=forum.slug %}">New Topic</a> | 19 <a href="{% url forums-new_topic slug=forum.slug %}">New Topic</a> |
20 | 20 |
21 <table class="forum-topic"> | 21 <table class="forum-topic" id="forum-topic"> |
22 {% for post in posts %} | 22 {% for post in posts %} |
23 <tr class="forum-post"> | 23 {% include 'forums/display_post.html' %} |
24 <td class="forum-post-author"> | |
25 <a name="p{{ post.id }}"></a> | |
26 <a href="{% url bio-view_profile username=post.user.username %}">{{ post.user.username }}</a><br /> | |
27 {% avatar post.user %} | |
28 </td> | |
29 <td class="forum-post-body"> | |
30 <div class="forum-post-info quiet"> | |
31 <a href="{{ post.get_absolute_url }}"><img src="{{ MEDIA_URL }}icons/link.png" alt="Link" title="Link to this post" /></a> | |
32 Posted on {{ post.creation_date|date:"M d, Y H:i" }} | |
33 </div> | |
34 <div class="forum-post-body"> | |
35 {{ post.html|safe }} | |
36 </div> | |
37 </td> | |
38 </tr> | |
39 {% endfor %} | 24 {% endfor %} |
40 </table> | 25 </table> |
41 {% if last_page and user.is_authenticated %} | 26 {% if last_page and user.is_authenticated %} |
42 <a name="forum-reply-form"></a> | 27 <a name="forum-reply-form"></a> |
43 <form action="" method="post"> | 28 <form action="" method="post" id="forums-quick-reply"> |
44 <fieldset> | 29 <fieldset> |
45 <legend>Reply to "{{ topic.name }}"</legend> | 30 <legend>Reply to "{{ topic.name }}"</legend> |
46 {{ form.as_p }} | 31 {{ form.as_p }} |
47 <input type="submit" value="Submit Reply" /> | 32 <input type="submit" value="Submit Reply" id="forums-reply-post" /> |
48 </fieldset> | 33 </fieldset> |
49 </form> | 34 </form> |
50 {% endif %} | 35 {% endif %} |
51 </div> | 36 </div> |
52 {% endblock %} | 37 {% endblock %} |