##// END OF EJS Templates
Added slash before tripcode (and eventually maybe user name)
neko259 -
r1363:3eeceb84 default
parent child Browse files
Show More
@@ -1,105 +1,106 b''
1 {% load i18n %}
1 {% load i18n %}
2 {% load board %}
2 {% load board %}
3
3
4 {% get_current_language as LANGUAGE_CODE %}
4 {% get_current_language as LANGUAGE_CODE %}
5
5
6 <div class="{{ css_class }}" id="{{ post.id }}" data-uid="{{ post.uid }}">
6 <div class="{{ css_class }}" id="{{ post.id }}" data-uid="{{ post.uid }}">
7 <div class="post-info">
7 <div class="post-info">
8 <a class="post_id" href="{{ post.get_absolute_url }}">#{{ post.get_absolute_id }}</a>
8 <a class="post_id" href="{{ post.get_absolute_url }}">#{{ post.get_absolute_id }}</a>
9 <span class="title">{{ post.title }}</span>
9 <span class="title">{{ post.title }}</span>
10 <span class="pub_time"><time datetime="{{ post.pub_time|date:'c' }}">{{ post.pub_time }}</time></span>
10 <span class="pub_time"><time datetime="{{ post.pub_time|date:'c' }}">{{ post.pub_time }}</time></span>
11 {% if post.tripcode %}
11 {% if post.tripcode %}
12 /
12 {% with tripcode=post.get_tripcode %}
13 {% with tripcode=post.get_tripcode %}
13 <a href="{% url 'feed' %}?tripcode={{ tripcode.get_full_text }}"
14 <a href="{% url 'feed' %}?tripcode={{ tripcode.get_full_text }}"
14 class="tripcode" title="{{ tripcode.get_full_text }}"
15 class="tripcode" title="{{ tripcode.get_full_text }}"
15 style="border: solid 2px #{{ tripcode.get_color }}; border-left: solid 1ex #{{ tripcode.get_color }};">{{ tripcode.get_short_text }}</a>
16 style="border: solid 2px #{{ tripcode.get_color }}; border-left: solid 1ex #{{ tripcode.get_color }};">{{ tripcode.get_short_text }}</a>
16 {% endwith %}
17 {% endwith %}
17 {% endif %}
18 {% endif %}
18 {% comment %}
19 {% comment %}
19 Thread death time needs to be shown only if the thread is alredy archived
20 Thread death time needs to be shown only if the thread is alredy archived
20 and this is an opening post (thread death time) or a post for popup
21 and this is an opening post (thread death time) or a post for popup
21 (we don't see OP here so we show the death time in the post itself).
22 (we don't see OP here so we show the death time in the post itself).
22 {% endcomment %}
23 {% endcomment %}
23 {% if thread.archived %}
24 {% if thread.archived %}
24 {% if is_opening %}
25 {% if is_opening %}
25 β€” <time datetime="{{ thread.bump_time|date:'c' }}">{{ thread.bump_time }}</time>
26 β€” <time datetime="{{ thread.bump_time|date:'c' }}">{{ thread.bump_time }}</time>
26 {% endif %}
27 {% endif %}
27 {% endif %}
28 {% endif %}
28 {% if is_opening %}
29 {% if is_opening %}
29 {% if need_open_link %}
30 {% if need_open_link %}
30 {% if thread.archived %}
31 {% if thread.archived %}
31 <a class="link" href="{% url 'thread' post.id %}">{% trans "Open" %}</a>
32 <a class="link" href="{% url 'thread' post.id %}">{% trans "Open" %}</a>
32 {% else %}
33 {% else %}
33 <a class="link" href="{% url 'thread' post.id %}#form">{% trans "Reply" %}</a>
34 <a class="link" href="{% url 'thread' post.id %}#form">{% trans "Reply" %}</a>
34 {% endif %}
35 {% endif %}
35 {% endif %}
36 {% endif %}
36 {% else %}
37 {% else %}
37 {% if need_op_data %}
38 {% if need_op_data %}
38 {% with thread.get_opening_post as op %}
39 {% with thread.get_opening_post as op %}
39 {% trans " in " %}{{ op.get_link_view|safe }} <span class="title">{{ op.get_title_or_text }}</span>
40 {% trans " in " %}{{ op.get_link_view|safe }} <span class="title">{{ op.get_title_or_text }}</span>
40 {% endwith %}
41 {% endwith %}
41 {% endif %}
42 {% endif %}
42 {% endif %}
43 {% endif %}
43 {% if reply_link and not thread.archived %}
44 {% if reply_link and not thread.archived %}
44 <a href="#form" onclick="addQuickReply('{{ post.id }}'); return false;">{% trans 'Reply' %}</a>
45 <a href="#form" onclick="addQuickReply('{{ post.id }}'); return false;">{% trans 'Reply' %}</a>
45 {% endif %}
46 {% endif %}
46
47
47 {% if moderator %}
48 {% if moderator %}
48 <span class="moderator_info">
49 <span class="moderator_info">
49 | <a href="{% url 'admin:boards_post_change' post.id %}">{% trans 'Edit' %}</a>
50 | <a href="{% url 'admin:boards_post_change' post.id %}">{% trans 'Edit' %}</a>
50 {% if is_opening %}
51 {% if is_opening %}
51 | <a href="{% url 'admin:boards_thread_change' thread.id %}">{% trans 'Edit thread' %}</a>
52 | <a href="{% url 'admin:boards_thread_change' thread.id %}">{% trans 'Edit thread' %}</a>
52 {% endif %}
53 {% endif %}
53 </span>
54 </span>
54 {% endif %}
55 {% endif %}
55 </div>
56 </div>
56 {% comment %}
57 {% comment %}
57 Post images. Currently only 1 image can be posted and shown, but post model
58 Post images. Currently only 1 image can be posted and shown, but post model
58 supports multiple.
59 supports multiple.
59 {% endcomment %}
60 {% endcomment %}
60 {% for image in post.images.all %}
61 {% for image in post.images.all %}
61 {{ image.get_view|safe }}
62 {{ image.get_view|safe }}
62 {% endfor %}
63 {% endfor %}
63 {% for file in post.attachments.all %}
64 {% for file in post.attachments.all %}
64 {{ file.get_view|safe }}
65 {{ file.get_view|safe }}
65 {% endfor %}
66 {% endfor %}
66 {% comment %}
67 {% comment %}
67 Post message (text)
68 Post message (text)
68 {% endcomment %}
69 {% endcomment %}
69 <div class="message">
70 <div class="message">
70 {% autoescape off %}
71 {% autoescape off %}
71 {% if truncated %}
72 {% if truncated %}
72 {{ post.get_text|truncatewords_html:50 }}
73 {{ post.get_text|truncatewords_html:50 }}
73 {% else %}
74 {% else %}
74 {{ post.get_text }}
75 {{ post.get_text }}
75 {% endif %}
76 {% endif %}
76 {% endautoescape %}
77 {% endautoescape %}
77 </div>
78 </div>
78 {% if post.is_referenced %}
79 {% if post.is_referenced %}
79 {% if mode_tree %}
80 {% if mode_tree %}
80 <div class="tree_reply">
81 <div class="tree_reply">
81 {% for refpost in post.get_referenced_posts %}
82 {% for refpost in post.get_referenced_posts %}
82 {% post_view refpost mode_tree=True %}
83 {% post_view refpost mode_tree=True %}
83 {% endfor %}
84 {% endfor %}
84 </div>
85 </div>
85 {% else %}
86 {% else %}
86 <div class="refmap">
87 <div class="refmap">
87 {% trans "Replies" %}: {{ post.refmap|safe }}
88 {% trans "Replies" %}: {{ post.refmap|safe }}
88 </div>
89 </div>
89 {% endif %}
90 {% endif %}
90 {% endif %}
91 {% endif %}
91 {% comment %}
92 {% comment %}
92 Thread metadata: counters, tags etc
93 Thread metadata: counters, tags etc
93 {% endcomment %}
94 {% endcomment %}
94 {% if is_opening %}
95 {% if is_opening %}
95 <div class="metadata">
96 <div class="metadata">
96 {% if is_opening and need_open_link %}
97 {% if is_opening and need_open_link %}
97 {% blocktrans count count=thread.get_reply_count %}{{ count }} message{% plural %}{{ count }} messages{% endblocktrans %},
98 {% blocktrans count count=thread.get_reply_count %}{{ count }} message{% plural %}{{ count }} messages{% endblocktrans %},
98 {% blocktrans count count=thread.get_images_count %}{{ count }} image{% plural %}{{ count }} images{% endblocktrans %}.
99 {% blocktrans count count=thread.get_images_count %}{{ count }} image{% plural %}{{ count }} images{% endblocktrans %}.
99 {% endif %}
100 {% endif %}
100 <span class="tags">
101 <span class="tags">
101 {{ thread.get_tag_url_list|safe }}
102 {{ thread.get_tag_url_list|safe }}
102 </span>
103 </span>
103 </div>
104 </div>
104 {% endif %}
105 {% endif %}
105 </div>
106 </div>
General Comments 0
You need to be logged in to leave comments. Login now