##// END OF EJS Templates
Added thread number to the reply form title.
neko259 -
r139:f5349581 default
parent child Browse files
Show More
@@ -1,113 +1,113 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
5
6 {% block head %}
6 {% block head %}
7 <title>Neboard - {{ posts.0.title }}</title>
7 <title>Neboard - {{ posts.0.title }}</title>
8 {% endblock %}
8 {% endblock %}
9
9
10 {% block content %}
10 {% block content %}
11 <script src="{{ STATIC_URL }}js/thread.js"></script>
11 <script src="{{ STATIC_URL }}js/thread.js"></script>
12
12
13 {% if posts %}
13 {% if posts %}
14 <div id="posts">
14 <div id="posts">
15 {% for post in posts %}
15 {% for post in posts %}
16 {% if posts.0.can_bump %}
16 {% if posts.0.can_bump %}
17 <div class="post" id="{{ post.id }}">
17 <div class="post" id="{{ post.id }}">
18 {% else %}
18 {% else %}
19 <div class="post dead_post" id="{{ post.id }}">
19 <div class="post dead_post" id="{{ post.id }}">
20 {% endif %}
20 {% endif %}
21 {% if post.image %}
21 {% if post.image %}
22 <div class="image">
22 <div class="image">
23 <a
23 <a
24 class="fancy"
24 class="fancy"
25 href="{{ post.image.url }}"><img
25 href="{{ post.image.url }}"><img
26 src="{{ post.image.url_200x150 }}"
26 src="{{ post.image.url_200x150 }}"
27 alt="{% trans 'Post image' %}"
27 alt="{% trans 'Post image' %}"
28 data-width="{{ post.image_width }}"
28 data-width="{{ post.image_width }}"
29 data-height="{{ post.image_height }}"/>
29 data-height="{{ post.image_height }}"/>
30 </a>
30 </a>
31 </div>
31 </div>
32 {% endif %}
32 {% endif %}
33 <div class="message">
33 <div class="message">
34 <div class="post-info">
34 <div class="post-info">
35 <span class="title">{{ post.title }}</span>
35 <span class="title">{{ post.title }}</span>
36 <a class="post_id" href="#{{ post.id }}">
36 <a class="post_id" href="#{{ post.id }}">
37 (#{{ post.id }})</a>
37 (#{{ post.id }})</a>
38 [{{ post.pub_time }}]
38 [{{ post.pub_time }}]
39 [<a href="#" onclick="javascript:addQuickReply('{{ post.id }}')
39 [<a href="#" onclick="javascript:addQuickReply('{{ post.id }}')
40 ; return false;">&gt;&gt;</a>]
40 ; return false;">&gt;&gt;</a>]
41 </div>
41 </div>
42 {% autoescape off %}
42 {% autoescape off %}
43 {{ post.text.rendered }}
43 {{ post.text.rendered }}
44 {% endautoescape %}
44 {% endautoescape %}
45 </div>
45 </div>
46 {% if post.tags.all %}
46 {% if post.tags.all %}
47 <div class="metadata">
47 <div class="metadata">
48 <span class="tags">{% trans 'Tags' %}:
48 <span class="tags">{% trans 'Tags' %}:
49 {% for tag in post.tags.all %}
49 {% for tag in post.tags.all %}
50 <a class="tag" href="{% url 'tag' tag.name %}">
50 <a class="tag" href="{% url 'tag' tag.name %}">
51 {{ tag.name }}</a>
51 {{ tag.name }}</a>
52 {% endfor %}
52 {% endfor %}
53 </span>
53 </span>
54 </div>
54 </div>
55 {% endif %}
55 {% endif %}
56 </div>
56 </div>
57 {% endfor %}
57 {% endfor %}
58 </div>
58 </div>
59 {% else %}
59 {% else %}
60 No thread found.
60 No thread found.
61 <hr />
61 <hr />
62 {% endif %}
62 {% endif %}
63
63
64 <form id="form" enctype="multipart/form-data" method="post"
64 <form id="form" enctype="multipart/form-data" method="post"
65 >{% csrf_token %}
65 >{% csrf_token %}
66 <div class="post-form-w">
66 <div class="post-form-w">
67 <div class="form-title">{% trans "Reply to thread" %}</div>
67 <div class="form-title">{% trans "Reply to thread" %} #{{ posts.0.id }}</div>
68 <div class="post-form">
68 <div class="post-form">
69 <div class="form-row">
69 <div class="form-row">
70 <div class="form-label">{% trans 'Title' %}</div>
70 <div class="form-label">{% trans 'Title' %}</div>
71 <div class="form-input">{{ form.title }}</div>
71 <div class="form-input">{{ form.title }}</div>
72 <div class="form-errors">{{ form.title.errors }}</div>
72 <div class="form-errors">{{ form.title.errors }}</div>
73 </div>
73 </div>
74 <div class="form-row">
74 <div class="form-row">
75 <div class="form-label">{% trans 'Text' %}</div>
75 <div class="form-label">{% trans 'Text' %}</div>
76 <div class="form-input">{{ form.text }}</div>
76 <div class="form-input">{{ form.text }}</div>
77 <div class="form-errors">{{ form.text.errors }}</div>
77 <div class="form-errors">{{ form.text.errors }}</div>
78 </div>
78 </div>
79 <div class="form-row">
79 <div class="form-row">
80 <div class="form-label">{% trans 'Image' %}</div>
80 <div class="form-label">{% trans 'Image' %}</div>
81 <div class="form-input">{{ form.image }}</div>
81 <div class="form-input">{{ form.image }}</div>
82 <div class="form-errors">{{ form.image.errors }}</div>
82 <div class="form-errors">{{ form.image.errors }}</div>
83 </div>
83 </div>
84 <div class="form-row">
84 <div class="form-row">
85 {{ form.captcha }}
85 {{ form.captcha }}
86 <div class="form-errors">{{ form.captcha.errors }}</div>
86 <div class="form-errors">{{ form.captcha.errors }}</div>
87 </div>
87 </div>
88 </div>
88 </div>
89
89
90 <div class="form-submit"><input type="submit"
90 <div class="form-submit"><input type="submit"
91 value="{% trans "Post" %}"/></div>
91 value="{% trans "Post" %}"/></div>
92 <div><a href="http://daringfireball.net/projects/markdown/basics">
92 <div><a href="http://daringfireball.net/projects/markdown/basics">
93 {% trans 'Basic markdown syntax.' %}</a></div>
93 {% trans 'Basic markdown syntax.' %}</a></div>
94 <div>{% trans 'Example: ' %}*<i>{% trans 'italic' %}</i>*,
94 <div>{% trans 'Example: ' %}*<i>{% trans 'italic' %}</i>*,
95 **<b>{% trans 'bold' %}</b>**</div>
95 **<b>{% trans 'bold' %}</b>**</div>
96 <div>{% trans 'Quotes can be inserted with' %} "&gt;"</div>
96 <div>{% trans 'Quotes can be inserted with' %} "&gt;"</div>
97 <div>{% trans 'Links to answers can be inserted with' %}
97 <div>{% trans 'Links to answers can be inserted with' %}
98 "&gt;&gt;123"
98 "&gt;&gt;123"
99 </div>
99 </div>
100 </div>
100 </div>
101 </form>
101 </form>
102
102
103 {% endblock %}
103 {% endblock %}
104
104
105 {% block metapanel %}
105 {% block metapanel %}
106
106
107 <span class="metapanel">
107 <span class="metapanel">
108 {{ posts.0.get_reply_count }} {% trans 'replies' %},
108 {{ posts.0.get_reply_count }} {% trans 'replies' %},
109 {{ posts.0.get_images_count }} {% trans 'images' %}.
109 {{ posts.0.get_images_count }} {% trans 'images' %}.
110 {% trans 'Last update: ' %}{{ posts.0.last_edit_time }}
110 {% trans 'Last update: ' %}{{ posts.0.last_edit_time }}
111 </span>
111 </span>
112
112
113 {% endblock %}
113 {% endblock %}
General Comments 0
You need to be logged in to leave comments. Login now