Mercurial > public > sg101
comparison gpp/templates/forums/topic.html @ 181:500e5875a306
Implementing #61: adding a forum topic subscription feature.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sun, 28 Mar 2010 01:07:47 +0000 |
parents | 2d299909e074 |
children | 6a5549c2efb5 |
comparison
equal
deleted
inserted
replaced
180:aef00df91165 | 181:500e5875a306 |
---|---|
55 | 55 |
56 {% if last_page and can_reply %} | 56 {% if last_page and can_reply %} |
57 <a name="forum-reply-form"></a> | 57 <a name="forum-reply-form"></a> |
58 {% show_form "Reply to Topic" form "Submit Reply" 1 MEDIA_URL %} | 58 {% show_form "Reply to Topic" form "Submit Reply" 1 MEDIA_URL %} |
59 {% endif %} | 59 {% endif %} |
60 | |
61 {% if user.is_authenticated %} | |
62 <form action={% if is_subscribed %}"{% url forums-unsubscribe_topic topic.id %}"{% else %}"{% url forums-subscribe_topic topic.id %}"{% endif %} method="post"> | |
63 <fieldset> | |
64 <legend>Subscription Options</legend> | |
65 <p> | |
66 {% if is_subscribed %} | |
67 <img src="{{ MEDIA_URL }}icons/email_delete.png" alt="Email" /> | |
68 You are currently subscribed to this topic and will receive an email when new replies are posted. | |
69 <input type="submit" value="Unsubscribe Me" /> | |
70 {% else %} | |
71 <img src="{{ MEDIA_URL }}icons/email_add.png" alt="Email" /> | |
72 Would you like to receive an email when someone replies to this topic? | |
73 <input type="submit" value="Subscribe via Email" /> | |
74 {% endif %} | |
75 </p> | |
76 <p> | |
77 To manage all your forum topic subscriptions, please visit your | |
78 <a href="{% url forums-manage_subscriptions %}">subscriptions page</a>. | |
79 </p> | |
80 </fieldset> | |
81 </form> | |
82 {% endif %} | |
60 </div> | 83 </div> |
61 {% endblock %} | 84 {% endblock %} |