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