Show More
@@ -1,136 +1,136 b'' | |||||
1 | {% extends "boards/base.html" %} |
|
1 | {% extends "boards/base.html" %} | |
2 |
|
2 | |||
3 | {% load i18n %} |
|
3 | {% load i18n %} | |
4 | {% load cache %} |
|
4 | {% load cache %} | |
5 | {% load static from staticfiles %} |
|
5 | {% load static from staticfiles %} | |
6 | {% load board %} |
|
6 | {% load board %} | |
7 |
|
7 | |||
8 | {% block head %} |
|
8 | {% block head %} | |
9 | <title>Neboard - {{ thread.get_opening_post.get_title }}</title> |
|
9 | <title>Neboard - {{ thread.get_opening_post.get_title }}</title> | |
10 | {% endblock %} |
|
10 | {% endblock %} | |
11 |
|
11 | |||
12 | {% block content %} |
|
12 | {% block content %} | |
13 | {% spaceless %} |
|
13 | {% spaceless %} | |
14 | {% get_current_language as LANGUAGE_CODE %} |
|
14 | {% get_current_language as LANGUAGE_CODE %} | |
15 |
|
15 | |||
16 | <script src="{% static 'js/thread_update.js' %}"></script> |
|
|||
17 | <script src="{% static 'js/thread.js' %}"></script> |
|
|||
18 |
|
||||
19 | {% cache 600 thread_view thread.id thread.last_edit_time moderator LANGUAGE_CODE %} |
|
16 | {% cache 600 thread_view thread.id thread.last_edit_time moderator LANGUAGE_CODE %} | |
20 |
|
17 | |||
21 | <div class="image-mode-tab"> |
|
18 | <div class="image-mode-tab"> | |
22 | <a class="current_mode" href="{% url 'thread' thread.get_opening_post.id %}">{% trans 'Normal mode' %}</a>, |
|
19 | <a class="current_mode" href="{% url 'thread' thread.get_opening_post.id %}">{% trans 'Normal mode' %}</a>, | |
23 | <a href="{% url 'thread_mode' thread.get_opening_post.id 'gallery' %}">{% trans 'Gallery mode' %}</a> |
|
20 | <a href="{% url 'thread_mode' thread.get_opening_post.id 'gallery' %}">{% trans 'Gallery mode' %}</a> | |
24 | </div> |
|
21 | </div> | |
25 |
|
22 | |||
26 | {% if bumpable %} |
|
23 | {% if bumpable %} | |
27 | <div class="bar-bg"> |
|
24 | <div class="bar-bg"> | |
28 | <div class="bar-value" style="width:{{ bumplimit_progress }}%" id="bumplimit_progress"> |
|
25 | <div class="bar-value" style="width:{{ bumplimit_progress }}%" id="bumplimit_progress"> | |
29 | </div> |
|
26 | </div> | |
30 | <div class="bar-text"> |
|
27 | <div class="bar-text"> | |
31 | <span id="left_to_limit">{{ posts_left }}</span> {% trans 'posts to bumplimit' %} |
|
28 | <span id="left_to_limit">{{ posts_left }}</span> {% trans 'posts to bumplimit' %} | |
32 | </div> |
|
29 | </div> | |
33 | </div> |
|
30 | </div> | |
34 | {% endif %} |
|
31 | {% endif %} | |
35 | <div class="thread"> |
|
32 | <div class="thread"> | |
36 | {% for post in posts %} |
|
33 | {% for post in posts %} | |
37 | {% if bumpable %} |
|
34 | {% if bumpable %} | |
38 | <div class="post" id="{{ post.id }}"> |
|
35 | <div class="post" id="{{ post.id }}"> | |
39 | {% else %} |
|
36 | {% else %} | |
40 | <div class="post dead_post" id="{{ post.id }}"> |
|
37 | <div class="post dead_post" id="{{ post.id }}"> | |
41 | {% endif %} |
|
38 | {% endif %} | |
42 | {% if post.image %} |
|
39 | {% if post.image %} | |
43 | <div class="image"> |
|
40 | <div class="image"> | |
44 | <a |
|
41 | <a | |
45 | class="thumb" |
|
42 | class="thumb" | |
46 | href="{{ post.image.url }}"><img |
|
43 | href="{{ post.image.url }}"><img | |
47 | src="{{ post.image.url_200x150 }}" |
|
44 | src="{{ post.image.url_200x150 }}" | |
48 | alt="{{ post.id }}" |
|
45 | alt="{{ post.id }}" | |
49 | width="{{ post.image_pre_width }}" |
|
46 | width="{{ post.image_pre_width }}" | |
50 | height="{{ post.image_pre_height }}" |
|
47 | height="{{ post.image_pre_height }}" | |
51 | data-width="{{ post.image_width }}" |
|
48 | data-width="{{ post.image_width }}" | |
52 | data-height="{{ post.image_height }}"/> |
|
49 | data-height="{{ post.image_height }}"/> | |
53 | </a> |
|
50 | </a> | |
54 | </div> |
|
51 | </div> | |
55 | {% endif %} |
|
52 | {% endif %} | |
56 | <div class="message"> |
|
53 | <div class="message"> | |
57 | <div class="post-info"> |
|
54 | <div class="post-info"> | |
58 | <span class="title">{{ post.title }}</span> |
|
55 | <span class="title">{{ post.title }}</span> | |
59 | <a class="post_id" href="#{{ post.id }}"> |
|
56 | <a class="post_id" href="#{{ post.id }}"> | |
60 | ({{ post.id }})</a> |
|
57 | ({{ post.id }})</a> | |
61 | [{{ post.pub_time }}] |
|
58 | [{{ post.pub_time }}] | |
62 | [<a href="#" onclick="javascript:addQuickReply('{{ post.id }}') |
|
59 | [<a href="#" onclick="javascript:addQuickReply('{{ post.id }}') | |
63 | ; return false;">>></a>] |
|
60 | ; return false;">>></a>] | |
64 |
|
61 | |||
65 | {% if moderator %} |
|
62 | {% if moderator %} | |
66 | <span class="moderator_info"> |
|
63 | <span class="moderator_info"> | |
67 | [<a href="{% url 'delete' post_id=post.id %}" |
|
64 | [<a href="{% url 'delete' post_id=post.id %}" | |
68 | >{% trans 'Delete' %}</a>] |
|
65 | >{% trans 'Delete' %}</a>] | |
69 | ({{ post.poster_ip }}) |
|
66 | ({{ post.poster_ip }}) | |
70 | [<a href="{% url 'ban' post_id=post.id %}?next={{ request.path }}" |
|
67 | [<a href="{% url 'ban' post_id=post.id %}?next={{ request.path }}" | |
71 | >{% trans 'Ban IP' %}</a>] |
|
68 | >{% trans 'Ban IP' %}</a>] | |
72 | </span> |
|
69 | </span> | |
73 | {% endif %} |
|
70 | {% endif %} | |
74 | </div> |
|
71 | </div> | |
75 | {% autoescape off %} |
|
72 | {% autoescape off %} | |
76 | {{ post.text.rendered }} |
|
73 | {{ post.text.rendered }} | |
77 | {% endautoescape %} |
|
74 | {% endautoescape %} | |
78 | {% if post.is_referenced %} |
|
75 | {% if post.is_referenced %} | |
79 | <div class="refmap"> |
|
76 | <div class="refmap"> | |
80 | {% trans "Replies" %}: |
|
77 | {% trans "Replies" %}: | |
81 | {% for ref_post in post.get_sorted_referenced_posts %} |
|
78 | {% for ref_post in post.get_sorted_referenced_posts %} | |
82 | <a href="{% post_url ref_post.id %}">>>{{ ref_post.id }}</a |
|
79 | <a href="{% post_url ref_post.id %}">>>{{ ref_post.id }}</a | |
83 | >{% if not forloop.last %},{% endif %} |
|
80 | >{% if not forloop.last %},{% endif %} | |
84 | {% endfor %} |
|
81 | {% endfor %} | |
85 | </div> |
|
82 | </div> | |
86 | {% endif %} |
|
83 | {% endif %} | |
87 | </div> |
|
84 | </div> | |
88 | {% if forloop.first %} |
|
85 | {% if forloop.first %} | |
89 | <div class="metadata"> |
|
86 | <div class="metadata"> | |
90 | <span class="tags"> |
|
87 | <span class="tags"> | |
91 | {% for tag in thread.get_tags %} |
|
88 | {% for tag in thread.get_tags %} | |
92 | <a class="tag" href="{% url 'tag' tag.name %}"> |
|
89 | <a class="tag" href="{% url 'tag' tag.name %}"> | |
93 | #{{ tag.name }}</a |
|
90 | #{{ tag.name }}</a | |
94 | >{% if not forloop.last %},{% endif %} |
|
91 | >{% if not forloop.last %},{% endif %} | |
95 | {% endfor %} |
|
92 | {% endfor %} | |
96 | </span> |
|
93 | </span> | |
97 | </div> |
|
94 | </div> | |
98 | {% endif %} |
|
95 | {% endif %} | |
99 | </div> |
|
96 | </div> | |
100 | {% endfor %} |
|
97 | {% endfor %} | |
101 | </div> |
|
98 | </div> | |
102 | {% endcache %} |
|
99 | {% endcache %} | |
103 |
|
100 | |||
104 | <div class="post-form-w"> |
|
101 | <div class="post-form-w"> | |
105 | <script src="{% static 'js/panel.js' %}"></script> |
|
102 | <script src="{% static 'js/panel.js' %}"></script> | |
106 | <div class="form-title">{% trans "Reply to thread" %} #{{ thread.get_opening_post.id }}</div> |
|
103 | <div class="form-title">{% trans "Reply to thread" %} #{{ thread.get_opening_post.id }}</div> | |
107 | <div class="post-form"> |
|
104 | <div class="post-form"> | |
108 | <form id="form" enctype="multipart/form-data" method="post" |
|
105 | <form id="form" enctype="multipart/form-data" method="post" | |
109 | >{% csrf_token %} |
|
106 | >{% csrf_token %} | |
110 | {{ form.as_div }} |
|
107 | {{ form.as_div }} | |
111 | <div class="form-submit"> |
|
108 | <div class="form-submit"> | |
112 | <input type="submit" value="{% trans "Post" %}"/> |
|
109 | <input type="submit" value="{% trans "Post" %}"/> | |
113 | </div> |
|
110 | </div> | |
114 | </form> |
|
111 | </form> | |
115 | <div><a href="{% url "staticpage" name="help" %}"> |
|
112 | <div><a href="{% url "staticpage" name="help" %}"> | |
116 | {% trans 'Text syntax' %}</a></div> |
|
113 | {% trans 'Text syntax' %}</a></div> | |
117 | </div> |
|
114 | </div> | |
118 | </div> |
|
115 | </div> | |
119 |
|
116 | |||
|
117 | <script src="{% static 'js/thread_update.js' %}"></script> | |||
|
118 | <script src="{% static 'js/thread.js' %}"></script> | |||
|
119 | ||||
120 | {% endspaceless %} |
|
120 | {% endspaceless %} | |
121 | {% endblock %} |
|
121 | {% endblock %} | |
122 |
|
122 | |||
123 | {% block metapanel %} |
|
123 | {% block metapanel %} | |
124 |
|
124 | |||
125 | {% get_current_language as LANGUAGE_CODE %} |
|
125 | {% get_current_language as LANGUAGE_CODE %} | |
126 |
|
126 | |||
127 | <span class="metapanel" data-last-update="{{ last_update }}"> |
|
127 | <span class="metapanel" data-last-update="{{ last_update }}"> | |
128 | {% cache 600 thread_meta thread.last_edit_time moderator LANGUAGE_CODE %} |
|
128 | {% cache 600 thread_meta thread.last_edit_time moderator LANGUAGE_CODE %} | |
129 | <span id="reply-count">{{ thread.get_reply_count }}</span> {% trans 'replies' %}, |
|
129 | <span id="reply-count">{{ thread.get_reply_count }}</span> {% trans 'replies' %}, | |
130 | <span id="image-count">{{ thread.get_images_count }}</span> {% trans 'images' %}. |
|
130 | <span id="image-count">{{ thread.get_images_count }}</span> {% trans 'images' %}. | |
131 | {% trans 'Last update: ' %}{{ thread.last_edit_time }} |
|
131 | {% trans 'Last update: ' %}{{ thread.last_edit_time }} | |
132 | [<a href="rss/">RSS</a>] |
|
132 | [<a href="rss/">RSS</a>] | |
133 | {% endcache %} |
|
133 | {% endcache %} | |
134 | </span> |
|
134 | </span> | |
135 |
|
135 | |||
136 | {% endblock %} |
|
136 | {% endblock %} |
General Comments 0
You need to be logged in to leave comments.
Login now