Show More
@@ -0,0 +1,67 b'' | |||||
|
1 | {% extends "boards/thread.html" %} | |||
|
2 | ||||
|
3 | {% load i18n %} | |||
|
4 | {% load cache %} | |||
|
5 | {% load static from staticfiles %} | |||
|
6 | {% load board %} | |||
|
7 | ||||
|
8 | {% block content %} | |||
|
9 | {% get_current_language as LANGUAGE_CODE %} | |||
|
10 | ||||
|
11 | {% cache 600 thread_view thread.id thread.last_edit_time moderator LANGUAGE_CODE %} | |||
|
12 | ||||
|
13 | <div class="image-mode-tab"> | |||
|
14 | <a class="current_mode" href="{% url 'thread' opening_post.id %}">{% trans 'Normal mode' %}</a>, | |||
|
15 | <a href="{% url 'thread_gallery' opening_post.id %}">{% trans 'Gallery mode' %}</a> | |||
|
16 | </div> | |||
|
17 | ||||
|
18 | {% if bumpable %} | |||
|
19 | <div class="bar-bg"> | |||
|
20 | <div class="bar-value" style="width:{{ bumplimit_progress }}%" id="bumplimit_progress"> | |||
|
21 | </div> | |||
|
22 | <div class="bar-text"> | |||
|
23 | <span id="left_to_limit">{{ posts_left }}</span> {% trans 'posts to bumplimit' %} | |||
|
24 | </div> | |||
|
25 | </div> | |||
|
26 | {% endif %} | |||
|
27 | ||||
|
28 | <div class="thread"> | |||
|
29 | {% for post in thread.get_replies %} | |||
|
30 | {% post_view post moderator=moderator %} | |||
|
31 | {% endfor %} | |||
|
32 | </div> | |||
|
33 | ||||
|
34 | {% if not thread.archived %} | |||
|
35 | <div class="post-form-w"> | |||
|
36 | <script src="{% static 'js/panel.js' %}"></script> | |||
|
37 | <div class="form-title">{% trans "Reply to thread" %} #{{ opening_post.id }}</div> | |||
|
38 | <div class="post-form" id="compact-form"> | |||
|
39 | <div class="swappable-form-full"> | |||
|
40 | <form enctype="multipart/form-data" method="post" id="form">{% csrf_token %} | |||
|
41 | <div class="compact-form-text"></div> | |||
|
42 | {{ form.as_div }} | |||
|
43 | <div class="form-submit"> | |||
|
44 | <input type="submit" value="{% trans "Post" %}"/> | |||
|
45 | </div> | |||
|
46 | (ctrl-enter) | |||
|
47 | </form> | |||
|
48 | </div> | |||
|
49 | <div><a href="{% url "staticpage" name="help" %}"> | |||
|
50 | {% trans 'Text syntax' %}</a></div> | |||
|
51 | </div> | |||
|
52 | </div> | |||
|
53 | ||||
|
54 | <script src="{% static 'js/jquery.form.min.js' %}"></script> | |||
|
55 | {% endif %} | |||
|
56 | ||||
|
57 | <script src="{% static 'js/form.js' %}"></script> | |||
|
58 | <script src="{% static 'js/thread.js' %}"></script> | |||
|
59 | <script src="{% static 'js/thread_update.js' %}"></script> | |||
|
60 | <script src="{% static 'js/3party/centrifuge.js' %}"></script> | |||
|
61 | ||||
|
62 | {% endcache %} | |||
|
63 | {% endblock %} | |||
|
64 | ||||
|
65 | {% block thread_meta_panel %} | |||
|
66 | <button id="autoupdate">{% trans 'Update' %}</button> | |||
|
67 | {% endblock %} |
General Comments 0
You need to be logged in to leave comments.
Login now