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