##// END OF EJS Templates
Fixed a typo in thread JS.
neko259 -
r262:356869eb default
parent child Browse files
Show More
@@ -1,143 +1,143 b''
1 {% extends "boards/base.html" %}
1 {% extends "boards/base.html" %}
2
2
3 {% load i18n %}
3 {% load i18n %}
4 {% load markup %}
4 {% load markup %}
5 {% load cache %}
5 {% load cache %}
6 {% load static from staticfiles %}
6 {% load static from staticfiles %}
7
7
8 {% block head %}
8 {% block head %}
9 <title>Neboard - {{ posts.0.get_title }}</title>
9 <title>Neboard - {{ posts.0.get_title }}</title>
10 {% endblock %}
10 {% endblock %}
11
11
12 {% block content %}
12 {% block content %}
13 {% get_current_language as LANGUAGE_CODE %}
13 {% get_current_language as LANGUAGE_CODE %}
14
14
15 <script src="{% static 'js/thread.js' }%"></script>
15 <script src="{% static 'js/thread.js' %}"></script>
16
16
17 {% if posts %}
17 {% if posts %}
18 {% cache 600 thread_view posts.0.last_edit_time moderator LANGUAGE_CODE %}
18 {% cache 600 thread_view posts.0.last_edit_time moderator LANGUAGE_CODE %}
19 <div class="thread">
19 <div class="thread">
20 {% for post in posts %}
20 {% for post in posts %}
21 {% if bumpable %}
21 {% if bumpable %}
22 <div class="post" id="{{ post.id }}">
22 <div class="post" id="{{ post.id }}">
23 {% else %}
23 {% else %}
24 <div class="post dead_post" id="{{ post.id }}">
24 <div class="post dead_post" id="{{ post.id }}">
25 {% endif %}
25 {% endif %}
26 {% if post.image %}
26 {% if post.image %}
27 <div class="image">
27 <div class="image">
28 <a
28 <a
29 class="thumb"
29 class="thumb"
30 href="{{ post.image.url }}"><img
30 href="{{ post.image.url }}"><img
31 src="{{ post.image.url_200x150 }}"
31 src="{{ post.image.url_200x150 }}"
32 alt="{{ post.id }}"
32 alt="{{ post.id }}"
33 data-width="{{ post.image_width }}"
33 data-width="{{ post.image_width }}"
34 data-height="{{ post.image_height }}"/>
34 data-height="{{ post.image_height }}"/>
35 </a>
35 </a>
36 </div>
36 </div>
37 {% endif %}
37 {% endif %}
38 <div class="message">
38 <div class="message">
39 <div class="post-info">
39 <div class="post-info">
40 <span class="title">{{ post.title }}</span>
40 <span class="title">{{ post.title }}</span>
41 <a class="post_id" href="#{{ post.id }}">
41 <a class="post_id" href="#{{ post.id }}">
42 (#{{ post.id }})</a>
42 (#{{ post.id }})</a>
43 [{{ post.pub_time }}]
43 [{{ post.pub_time }}]
44 [<a href="#" onclick="javascript:addQuickReply('{{ post.id }}')
44 [<a href="#" onclick="javascript:addQuickReply('{{ post.id }}')
45 ; return false;">&gt;&gt;</a>]
45 ; return false;">&gt;&gt;</a>]
46
46
47 {% if moderator %}
47 {% if moderator %}
48 <span class="moderator_info">
48 <span class="moderator_info">
49 [<a href="{% url 'delete' post_id=post.id %}"
49 [<a href="{% url 'delete' post_id=post.id %}"
50 >{% trans 'Delete' %}</a>]
50 >{% trans 'Delete' %}</a>]
51 ({{ post.poster_ip }})
51 ({{ post.poster_ip }})
52 [<a href="{% url 'ban' post_id=post.id %}?next={{ request.path }}"
52 [<a href="{% url 'ban' post_id=post.id %}?next={{ request.path }}"
53 >{% trans 'Ban IP' %}</a>]
53 >{% trans 'Ban IP' %}</a>]
54 </span>
54 </span>
55 {% endif %}
55 {% endif %}
56 </div>
56 </div>
57 {% autoescape off %}
57 {% autoescape off %}
58 {{ post.text.rendered }}
58 {{ post.text.rendered }}
59 {% endautoescape %}
59 {% endautoescape %}
60 </div>
60 </div>
61 {% if post.id == posts.0.id %}
61 {% if post.id == posts.0.id %}
62 <div class="metadata">
62 <div class="metadata">
63 <span class="tags">{% trans 'Tags' %}:
63 <span class="tags">{% trans 'Tags' %}:
64 {% for tag in post.tags.all %}
64 {% for tag in post.tags.all %}
65 <a class="tag" href="{% url 'tag' tag.name %}">
65 <a class="tag" href="{% url 'tag' tag.name %}">
66 {{ tag.name }}</a>
66 {{ tag.name }}</a>
67 {% endfor %}
67 {% endfor %}
68 </span>
68 </span>
69 </div>
69 </div>
70 {% endif %}
70 {% endif %}
71 </div>
71 </div>
72 {% endfor %}
72 {% endfor %}
73 </div>
73 </div>
74 {% endcache %}
74 {% endcache %}
75 {% endif %}
75 {% endif %}
76
76
77 <form id="form" enctype="multipart/form-data" method="post"
77 <form id="form" enctype="multipart/form-data" method="post"
78 >{% csrf_token %}
78 >{% csrf_token %}
79 <div class="post-form-w">
79 <div class="post-form-w">
80 <div class="form-title">{% trans "Reply to thread" %} #{{ posts.0.id }}</div>
80 <div class="form-title">{% trans "Reply to thread" %} #{{ posts.0.id }}</div>
81 <div class="post-form">
81 <div class="post-form">
82 <div class="form-row">
82 <div class="form-row">
83 <div class="form-label">{% trans 'Title' %}</div>
83 <div class="form-label">{% trans 'Title' %}</div>
84 <div class="form-input">{{ form.title }}</div>
84 <div class="form-input">{{ form.title }}</div>
85 <div class="form-errors">{{ form.title.errors }}</div>
85 <div class="form-errors">{{ form.title.errors }}</div>
86 </div>
86 </div>
87 <div class="form-row">
87 <div class="form-row">
88 <div class="form-label">{% trans 'Formatting' %}</div>
88 <div class="form-label">{% trans 'Formatting' %}</div>
89 <div class="form-input" id="mark_panel">
89 <div class="form-input" id="mark_panel">
90 <span class="mark_btn" id="quote"><span class="quote">&gt;{% trans 'quote' %}</span></span>
90 <span class="mark_btn" id="quote"><span class="quote">&gt;{% trans 'quote' %}</span></span>
91 <span class="mark_btn" id="italic"><i>{% trans 'italic' %}</i></span>
91 <span class="mark_btn" id="italic"><i>{% trans 'italic' %}</i></span>
92 <span class="mark_btn" id="bold"><b>{% trans 'bold' %}</b></span>
92 <span class="mark_btn" id="bold"><b>{% trans 'bold' %}</b></span>
93 <span class="mark_btn" id="spoiler"><span class="spoiler">{% trans 'spoiler' %}</span></span>
93 <span class="mark_btn" id="spoiler"><span class="spoiler">{% trans 'spoiler' %}</span></span>
94 <span class="mark_btn" id="comment"><span class="comment">// {% trans 'comment' %}</span></span>
94 <span class="mark_btn" id="comment"><span class="comment">// {% trans 'comment' %}</span></span>
95 </div>
95 </div>
96 </div>
96 </div>
97 <div class="form-row">
97 <div class="form-row">
98 <div class="form-label">{% trans 'Text' %}</div>
98 <div class="form-label">{% trans 'Text' %}</div>
99 <div class="form-input">{{ form.text }}</div>
99 <div class="form-input">{{ form.text }}</div>
100 <div class="form-errors">{{ form.text.errors }}</div>
100 <div class="form-errors">{{ form.text.errors }}</div>
101 </div>
101 </div>
102 <div class="form-row">
102 <div class="form-row">
103 <div class="form-label">{% trans 'Image' %}</div>
103 <div class="form-label">{% trans 'Image' %}</div>
104 <div class="form-input">{{ form.image }}</div>
104 <div class="form-input">{{ form.image }}</div>
105 <div class="form-errors">{{ form.image.errors }}</div>
105 <div class="form-errors">{{ form.image.errors }}</div>
106 </div>
106 </div>
107 <div class="form-row form-email">
107 <div class="form-row form-email">
108 <div class="form-label">{% trans 'e-mail' %}</div>
108 <div class="form-label">{% trans 'e-mail' %}</div>
109 <div class="form-input">{{ form.email }}</div>
109 <div class="form-input">{{ form.email }}</div>
110 <div class="form-errors">{{ form.email.errors }}</div>
110 <div class="form-errors">{{ form.email.errors }}</div>
111 </div>
111 </div>
112 <div class="form-row">
112 <div class="form-row">
113 {{ form.captcha }}
113 {{ form.captcha }}
114 <div class="form-errors">{{ form.captcha.errors }}</div>
114 <div class="form-errors">{{ form.captcha.errors }}</div>
115 </div>
115 </div>
116 <div class="form-row">
116 <div class="form-row">
117 <div class="form-errors">{{ form.other.errors }}</div>
117 <div class="form-errors">{{ form.other.errors }}</div>
118 </div>
118 </div>
119 </div>
119 </div>
120
120
121 <div class="form-submit"><input type="submit"
121 <div class="form-submit"><input type="submit"
122 value="{% trans "Post" %}"/></div>
122 value="{% trans "Post" %}"/></div>
123 <div><a href="{% url "staticpage" name="help" %}">
123 <div><a href="{% url "staticpage" name="help" %}">
124 {% trans 'Text syntax' %}</a></div>
124 {% trans 'Text syntax' %}</a></div>
125 </div>
125 </div>
126 </form>
126 </form>
127
127
128 {% endblock %}
128 {% endblock %}
129
129
130 {% block metapanel %}
130 {% block metapanel %}
131
131
132 {% get_current_language as LANGUAGE_CODE %}
132 {% get_current_language as LANGUAGE_CODE %}
133
133
134 <span class="metapanel">
134 <span class="metapanel">
135 {% cache 600 thread_meta posts.0.last_edit_time moderator LANGUAGE_CODE %}
135 {% cache 600 thread_meta posts.0.last_edit_time moderator LANGUAGE_CODE %}
136 {{ posts.0.get_reply_count }} {% trans 'replies' %},
136 {{ posts.0.get_reply_count }} {% trans 'replies' %},
137 {{ posts.0.get_images_count }} {% trans 'images' %}.
137 {{ posts.0.get_images_count }} {% trans 'images' %}.
138 {% trans 'Last update: ' %}{{ posts.0.last_edit_time }}
138 {% trans 'Last update: ' %}{{ posts.0.last_edit_time }}
139 [<a href="rss/">RSS</a>]
139 [<a href="rss/">RSS</a>]
140 {% endcache %}
140 {% endcache %}
141 </span>
141 </span>
142
142
143 {% endblock %}
143 {% endblock %}
General Comments 0
You need to be logged in to leave comments. Login now