comparison gpp/templates/forums/topic.html @ 312:88b2b9cb8c1f

Fixing #142; cut over to the django.contrib.staticfiles app.
author Brian Neal <bgneal@gmail.com>
date Thu, 27 Jan 2011 02:56:10 +0000
parents daa2916f5b34
children cfad8d605cb8
comparison
equal deleted inserted replaced
311:b1c39788e511 312:88b2b9cb8c1f
6 {% block content %} 6 {% block content %}
7 {% forum_navigation topic %} 7 {% forum_navigation topic %}
8 8
9 <div class="forum-block"> 9 <div class="forum-block">
10 {% if topic.sticky %} 10 {% if topic.sticky %}
11 <img src="{{ MEDIA_URL }}/icons/asterisk_orange.png" alt="Sticky" title="Sticky" /> 11 <img src="{{ STATIC_URL }}icons/asterisk_orange.png" alt="Sticky" title="Sticky" />
12 {% endif %} 12 {% endif %}
13 {% if topic.locked %} 13 {% if topic.locked %}
14 <img src="{{ MEDIA_URL }}/icons/lock.png" alt="Lock" title="This topic is locked" /> 14 <img src="{{ STATIC_URL }}icons/lock.png" alt="Lock" title="This topic is locked" />
15 {% endif %} 15 {% endif %}
16 {% if can_reply %} 16 {% if can_reply %}
17 {% if topic.locked or topic.sticky %}&bull;{% endif %} 17 {% if topic.locked or topic.sticky %}&bull;{% endif %}
18 {% if last_page %} 18 {% if last_page %}
19 <a href="#forum-reply-form">New Reply</a> 19 <a href="#forum-reply-form">New Reply</a>
39 <input type="submit" value="{% if topic.locked %}Unlock{% else %}Lock{% endif %} Topic" /> 39 <input type="submit" value="{% if topic.locked %}Unlock{% else %}Lock{% endif %} Topic" />
40 </form> 40 </form>
41 <form action="{% url 'forums-mod_topic_delete' topic.id %}" method="post">{% csrf_token %} 41 <form action="{% url 'forums-mod_topic_delete' topic.id %}" method="post">{% csrf_token %}
42 <input type="submit" value="Delete Topic" id="forum-mod-del-topic" /> 42 <input type="submit" value="Delete Topic" id="forum-mod-del-topic" />
43 </form> 43 </form>
44 <a href="{% url 'forums-mod_topic_move' topic.id %}"><img src="{{ MEDIA_URL }}icons/application_go.png" alt="Move Topic" title="Move Topic" /></a> 44 <a href="{% url 'forums-mod_topic_move' topic.id %}"><img src="{{ STATIC_URL }}icons/application_go.png" alt="Move Topic" title="Move Topic" /></a>
45 <a href="{% url 'forums-mod_topic_move' topic.id %}">Move this topic</a> 45 <a href="{% url 'forums-mod_topic_move' topic.id %}">Move this topic</a>
46 <a href="{% url 'forums-mod_topic_split' topic.id %}"><img src="{{ MEDIA_URL }}icons/arrow_branch.png" alt="Split Topic" title="Split Topic" /></a> 46 <a href="{% url 'forums-mod_topic_split' topic.id %}"><img src="{{ STATIC_URL }}icons/arrow_branch.png" alt="Split Topic" title="Split Topic" /></a>
47 <a href="{% url 'forums-mod_topic_split' topic.id %}">Split this topic</a> 47 <a href="{% url 'forums-mod_topic_split' topic.id %}">Split this topic</a>
48 </div> 48 </div>
49 {% endif %} 49 {% endif %}
50 50
51 {% if last_page and can_reply %} 51 {% if last_page and can_reply %}
57 <form action={% if is_favorite %}"{% url 'forums-unfavorite_topic' topic.id %}"{% else %}"{% url 'forums-favorite_topic' topic.id %}"{% endif %} method="post">{% csrf_token %} 57 <form action={% if is_favorite %}"{% url 'forums-unfavorite_topic' topic.id %}"{% else %}"{% url 'forums-favorite_topic' topic.id %}"{% endif %} method="post">{% csrf_token %}
58 <fieldset> 58 <fieldset>
59 <legend>Favorite Options</legend> 59 <legend>Favorite Options</legend>
60 <p> 60 <p>
61 {% if is_favorite %} 61 {% if is_favorite %}
62 <img src="{{ MEDIA_URL }}icons/delete.png" alt="Favorite" /> 62 <img src="{{ STATIC_URL }}icons/delete.png" alt="Favorite" />
63 You currently have saved this topic in your list of favorites. 63 You currently have saved this topic in your list of favorites.
64 <input type="submit" value="Remove from favorites" /> 64 <input type="submit" value="Remove from favorites" />
65 {% else %} 65 {% else %}
66 <img src="{{ MEDIA_URL }}icons/add.png" alt="Favorite" /> 66 <img src="{{ STATIC_URL }}icons/add.png" alt="Favorite" />
67 Would you like to save this topic to your favorites list? 67 Would you like to save this topic to your favorites list?
68 <input type="submit" value="Save to favorites" /> 68 <input type="submit" value="Save to favorites" />
69 {% endif %} 69 {% endif %}
70 </p> 70 </p>
71 <p> 71 <p>
78 <form action={% if is_subscribed %}"{% url 'forums-unsubscribe_topic' topic.id %}"{% else %}"{% url 'forums-subscribe_topic' topic.id %}"{% endif %} method="post">{% csrf_token %} 78 <form action={% if is_subscribed %}"{% url 'forums-unsubscribe_topic' topic.id %}"{% else %}"{% url 'forums-subscribe_topic' topic.id %}"{% endif %} method="post">{% csrf_token %}
79 <fieldset> 79 <fieldset>
80 <legend>Subscription Options</legend> 80 <legend>Subscription Options</legend>
81 <p> 81 <p>
82 {% if is_subscribed %} 82 {% if is_subscribed %}
83 <img src="{{ MEDIA_URL }}icons/email_delete.png" alt="Email" /> 83 <img src="{{ STATIC_URL }}icons/email_delete.png" alt="Email" />
84 You are currently subscribed to this topic and will receive an email when new replies are posted. 84 You are currently subscribed to this topic and will receive an email when new replies are posted.
85 <input type="submit" value="Unsubscribe Me" /> 85 <input type="submit" value="Unsubscribe Me" />
86 {% else %} 86 {% else %}
87 <img src="{{ MEDIA_URL }}icons/email_add.png" alt="Email" /> 87 <img src="{{ STATIC_URL }}icons/email_add.png" alt="Email" />
88 Would you like to receive an email when someone replies to this topic? 88 Would you like to receive an email when someone replies to this topic?
89 <input type="submit" value="Subscribe via Email" /> 89 <input type="submit" value="Subscribe via Email" />
90 {% endif %} 90 {% endif %}
91 </p> 91 </p>
92 <p> 92 <p>