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