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