##// END OF EJS Templates
#32 Changed "view" link to "reply". The thread can be opened at the top by clicking its id.
neko259 -
r45:97bf814e default
parent child Browse files
Show More
@@ -1,93 +1,93 b''
1 1 {% extends "base.html" %}
2 2
3 3 {% load i18n %}
4 4 {% load markup %}
5 5
6 6 {% block head %}
7 7 <title>Neboard</title>
8 8 {% endblock %}
9 9
10 10 {% block content %}
11 11
12 12 {% if threads %}
13 13 {% for thread in threads %}
14 14 <div class="post">
15 15 {% if thread.image %}
16 16 <div class="image">
17 17 <a href="{{ thread.image.url }}"><img
18 18 src="{{ thread.image.url_200x150 }}" />
19 19 </a>
20 20 </div>
21 21 {% endif %}
22 22 <div class="message">
23 23 <span class="title">{{ thread.title }}</span>
24 24 <a class="post_id" href="{% url 'thread' thread.id %}">
25 25 (#{{ thread.id }})</a>
26 26 [{{ thread.pub_time }}]
27 [<a class="link" href="{% url 'thread' thread.id %}"
28 >{% trans "View" %}</a>]
27 [<a class="link" href="{% url 'thread' thread.id %}#form"
28 >{% trans "Reply" %}</a>]
29 29 {% autoescape off %}
30 30 {{ thread.text.rendered|truncatechars:300 }}
31 31 {% endautoescape %}
32 32 </div>
33 33 <div class="metadata">
34 34 {{ thread.get_reply_count }} {% trans 'replies' %},
35 35 {{ thread.get_images_count }} {% trans 'images' %},
36 36 {{ thread.get_gets_count }} {% trans 'gets' %}.
37 37 {% if thread.tags.all %}
38 38 <span class="tags">{% trans 'Tags' %}:
39 39 {% for tag in thread.tags.all %}
40 40 <a class="tag" href="
41 41 {% url 'tag' tag_name=tag.name %}">
42 42 {{ tag.name }}</a>
43 43 {% endfor %}
44 44 </span>
45 45 {% endif %}
46 46 </div>
47 47 </div>
48 48 {% endfor %}
49 49 {% else %}
50 50 No threads found.
51 51 <hr />
52 52 {% endif %}
53 53
54 54 <form enctype="multipart/form-data" method="post">{% csrf_token %}
55 55 <div class="post-form-w">
56 56 <div class="form-title">{% trans "Create new thread" %}</div>
57 57 <div class="post-form">
58 58 <div class="form-row">
59 59 <div class="form-label">{% trans 'Title' %}</div>
60 60 <div class="form-input">{{ form.title }}</div>
61 61 </div>
62 62 <div class="form-row">
63 63 <div class="form-label">{% trans 'Text' %}</div>
64 64 <div class="form-input">{{ form.text }}</div>
65 65 </div>
66 66 <div class="form-row">
67 67 <div class="form-label">{% trans 'Image' %}</div>
68 68 <div class="form-input">{{ form.image }}</div>
69 69 </div>
70 70 <div class="form-row">
71 71 <div class="form-label">{% trans 'Tags' %}</div>
72 72 <div class="form-input">{{ form.tags }}</div>
73 73 </div>
74 74 </div>
75 75 <div class="form-submit"><input type="submit"
76 76 value="{% trans "Post" %}"/></div>
77 77 <div>Tags must be delimited by spaces. Text or image is required
78 78 </div>
79 79 <div>Use <a
80 80 href="http://daringfireball.net/projects/markdown/basics">
81 81 markdown</a> syntax for posting.</div>
82 82 </div>
83 83 </form>
84 84
85 85 {% endblock %}
86 86
87 87 {% block metapanel %}
88 88
89 89 <span class="metapanel">
90 90 Neboard 2013-05 (dev)
91 91 </span>
92 92
93 93 {% endblock %} No newline at end of file
@@ -1,91 +1,92 b''
1 1 {% extends "base.html" %}
2 2
3 3 {% load i18n %}
4 4 {% load markup %}
5 5
6 6 {% block head %}
7 7 <title>Neboard - {{ posts.0.title }}</title>
8 8 {% endblock %}
9 9
10 10 {% block content %}
11 11
12 12 {% if posts %}
13 13 {% for post in posts %}
14 14 <a id="{{ post.id }}"></a>
15 15 <div class="post">
16 16 {% if post.image %}
17 17 <div class="image">
18 18 <a href="{{ post.image.url }}"><img
19 19 src="{{ post.image.url_200x150 }}" />
20 20 </a>
21 21 </div>
22 22 {% endif %}
23 23 <div class="message">
24 24 <span class="title">{{ post.title }}</span>
25 25 <a class="post_id" href="#{{ post.id }}">
26 26 (#{{ post.id }})</a>
27 27 [{{ post.pub_time }}]
28 28 {% if post.is_get %}
29 29 <span class="get">
30 30 {% trans "Get!" %}
31 31 </span>
32 32 {% endif %}
33 33 {% autoescape off %}
34 34 {{ post.text.rendered }}
35 35 {% endautoescape %}
36 36 </div>
37 37 {% if post.tags.all %}
38 38 <div class="metadata">
39 39 <span class="tags">{% trans 'Tags' %}:
40 40 {% for tag in post.tags.all %}
41 41 <a class="tag" href="{% url 'tag' tag.name %}">
42 42 {{ tag.name }}</a>
43 43 {% endfor %}
44 44 </span>
45 45 </div>
46 46 {% endif %}
47 47 </div>
48 48 {% endfor %}
49 49 {% else %}
50 50 No threads found.
51 51 <hr />
52 52 {% endif %}
53 53
54 <form enctype="multipart/form-data" method="post">{% csrf_token %}
54 <form id="form" enctype="multipart/form-data" method="post"
55 >{% csrf_token %}
55 56 <div class="post-form-w">
56 57 <div class="form-title">{% trans "Reply to thread" %}</div>
57 58 <div class="post-form">
58 59 <div class="form-row">
59 60 <div class="form-label">{% trans 'Title' %}</div>
60 61 <div class="form-input">{{ form.title }}</div>
61 62 </div>
62 63 <div class="form-row">
63 64 <div class="form-label">{% trans 'Text' %}</div>
64 65 <div class="form-input">{{ form.text }}</div>
65 66 </div>
66 67 <div class="form-row">
67 68 <div class="form-label">{% trans 'Image' %}</div>
68 69 <div class="form-input">{{ form.image }}</div>
69 70 </div>
70 71 </div>
71 72 <div class="form-submit"><input type="submit"
72 73 value="{% trans "Post" %}"/></div>
73 74 <div>Use <a
74 75 href="http://daringfireball.net/projects/markdown/basics">
75 76 markdown</a> syntax for posting.</div>
76 77 <div>Example: *<i>italic</i>*, **<b>bold</b>**</div>
77 78 <div>Insert quotes with "&gt;"</div>
78 79 </div>
79 80 </form>
80 81
81 82 {% endblock %}
82 83
83 84 {% block metapanel %}
84 85
85 86 <span class="metapanel">
86 87 {{ posts.0.get_reply_count }} {% trans 'replies' %},
87 88 {{ posts.0.get_images_count }} {% trans 'images' %},
88 89 {{ posts.0.get_gets_count }} {% trans 'gets' %}
89 90 </span>
90 91
91 92 {% endblock %} No newline at end of file
General Comments 0
You need to be logged in to leave comments. Login now