##// END OF EJS Templates
Fixed adding thread to favorites
neko259 -
r1423:adc29226 default
parent child Browse files
Show More
@@ -1,75 +1,76 b''
1 1 {% extends "boards/thread.html" %}
2 2
3 3 {% load i18n %}
4 4 {% load static from staticfiles %}
5 5 {% load board %}
6 6 {% load tz %}
7 7
8 8 {% block thread_content %}
9 9 {% get_current_language as LANGUAGE_CODE %}
10 10 {% get_current_timezone as TIME_ZONE %}
11 11
12 12 <div class="tag_info">
13 13 <h2>
14 14 <form action="{% url 'thread' opening_post.id %}" method="post" class="post-button-form">
15 {% csrf_token %}
15 16 {% if is_favorite %}
16 17 <button name="method" value="unsubscribe" class="fav">β˜…</button>
17 18 {% else %}
18 19 <button name="method" value="subscribe" class="not_fav">β˜…</button>
19 20 {% endif %}
20 21 </form>
21 22 {{ opening_post.get_title_or_text }}
22 23 </h2>
23 24 </div>
24 25
25 26 {% if bumpable and thread.has_post_limit %}
26 27 <div class="bar-bg">
27 28 <div class="bar-value" style="width:{{ bumplimit_progress }}%" id="bumplimit_progress">
28 29 </div>
29 30 <div class="bar-text">
30 31 <span id="left_to_limit">{{ posts_left }}</span> {% trans 'posts to bumplimit' %}
31 32 </div>
32 33 </div>
33 34 {% endif %}
34 35
35 36 <div class="thread">
36 37 {% for post in thread.get_replies %}
37 38 {% post_view post reply_link=True %}
38 39 {% endfor %}
39 40 </div>
40 41
41 42 {% if not thread.is_archived %}
42 43 <div class="post-form-w">
43 44 <script src="{% static 'js/panel.js' %}"></script>
44 45 <div class="form-title">{% trans "Reply to thread" %} #{{ opening_post.id }}<span class="reply-to-message"> {% trans "to message " %} #<span id="reply-to-message-id"></span></span></div>
45 46 <div class="post-form" id="compact-form">
46 47 <div class="swappable-form-full">
47 48 <form enctype="multipart/form-data" method="post" id="form">{% csrf_token %}
48 49 <div class="compact-form-text"></div>
49 50 {{ form.as_div }}
50 51 <div class="form-submit">
51 52 <input type="submit" value="{% trans "Post" %}"/>
52 53 <button id="preview-button" onclick="return false;">{% trans 'Preview' %}</button>
53 54 </div>
54 55 </form>
55 56 </div>
56 57 <div id="preview-text"></div>
57 58 <div>
58 59 {% with size=max_file_size|filesizeformat %}
59 60 {% blocktrans %}Max file size is {{ size }}.{% endblocktrans %}
60 61 {% endwith %}
61 62 </div>
62 63 <div><a href="{% url "staticpage" name="help" %}">
63 64 {% trans 'Text syntax' %}</a></div>
64 65 <div><a id="form-close-button" href="#" onClick="resetFormPosition(); return false;">{% trans 'Close form' %}</a></div>
65 66 </div>
66 67 </div>
67 68
68 69 <script src="{% static 'js/jquery.form.min.js' %}"></script>
69 70 {% endif %}
70 71
71 72 <script src="{% static 'js/form.js' %}"></script>
72 73 <script src="{% static 'js/thread.js' %}"></script>
73 74 <script src="{% static 'js/thread_update.js' %}"></script>
74 75 <script src="{% static 'js/3party/centrifuge.js' %}"></script>
75 76 {% endblock %}
General Comments 0
You need to be logged in to leave comments. Login now