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