##// END OF EJS Templates
Show thread title before the imageboard name
neko259 -
r522:bb4a253d default
parent child Browse files
Show More
@@ -1,144 +1,144 b''
1 {% extends "boards/base.html" %}
1 {% extends "boards/base.html" %}
2
2
3 {% load i18n %}
3 {% load i18n %}
4 {% load cache %}
4 {% load cache %}
5 {% load static from staticfiles %}
5 {% load static from staticfiles %}
6 {% load board %}
6 {% load board %}
7
7
8 {% block head %}
8 {% block head %}
9 <title>Neboard - {{ thread.get_opening_post.get_title|striptags|truncatewords:10 }}</title>
9 <title>{{ thread.get_opening_post.get_title|striptags|truncatewords:10 }} - Neboard</title>
10 {% endblock %}
10 {% endblock %}
11
11
12 {% block content %}
12 {% block content %}
13 {% spaceless %}
13 {% spaceless %}
14 {% get_current_language as LANGUAGE_CODE %}
14 {% get_current_language as LANGUAGE_CODE %}
15
15
16 {% cache 600 thread_view thread.id thread.last_edit_time moderator LANGUAGE_CODE %}
16 {% cache 600 thread_view thread.id thread.last_edit_time moderator LANGUAGE_CODE %}
17
17
18 <div class="image-mode-tab">
18 <div class="image-mode-tab">
19 <a class="current_mode" href="{% url 'thread' thread.get_opening_post.id %}">{% trans 'Normal mode' %}</a>,
19 <a class="current_mode" href="{% url 'thread' thread.get_opening_post.id %}">{% trans 'Normal mode' %}</a>,
20 <a href="{% url 'thread_mode' thread.get_opening_post.id 'gallery' %}">{% trans 'Gallery mode' %}</a>
20 <a href="{% url 'thread_mode' thread.get_opening_post.id 'gallery' %}">{% trans 'Gallery mode' %}</a>
21 </div>
21 </div>
22
22
23 {% if bumpable %}
23 {% if bumpable %}
24 <div class="bar-bg">
24 <div class="bar-bg">
25 <div class="bar-value" style="width:{{ bumplimit_progress }}%" id="bumplimit_progress">
25 <div class="bar-value" style="width:{{ bumplimit_progress }}%" id="bumplimit_progress">
26 </div>
26 </div>
27 <div class="bar-text">
27 <div class="bar-text">
28 <span id="left_to_limit">{{ posts_left }}</span> {% trans 'posts to bumplimit' %}
28 <span id="left_to_limit">{{ posts_left }}</span> {% trans 'posts to bumplimit' %}
29 </div>
29 </div>
30 </div>
30 </div>
31 {% endif %}
31 {% endif %}
32 <div class="thread">
32 <div class="thread">
33 {% for post in posts %}
33 {% for post in posts %}
34 {% if bumpable %}
34 {% if bumpable %}
35 <div class="post" id="{{ post.id }}">
35 <div class="post" id="{{ post.id }}">
36 {% elif thread.archived %}
36 {% elif thread.archived %}
37 <div class="post archive_post" id="{{ post.id }}">
37 <div class="post archive_post" id="{{ post.id }}">
38 {% else %}
38 {% else %}
39 <div class="post dead_post" id="{{ post.id }}">
39 <div class="post dead_post" id="{{ post.id }}">
40 {% endif %}
40 {% endif %}
41 {% if post.image %}
41 {% if post.image %}
42 <div class="image">
42 <div class="image">
43 <a
43 <a
44 class="thumb"
44 class="thumb"
45 href="{{ post.image.url }}"><img
45 href="{{ post.image.url }}"><img
46 src="{{ post.image.url_200x150 }}"
46 src="{{ post.image.url_200x150 }}"
47 alt="{{ post.id }}"
47 alt="{{ post.id }}"
48 width="{{ post.image_pre_width }}"
48 width="{{ post.image_pre_width }}"
49 height="{{ post.image_pre_height }}"
49 height="{{ post.image_pre_height }}"
50 data-width="{{ post.image_width }}"
50 data-width="{{ post.image_width }}"
51 data-height="{{ post.image_height }}"/>
51 data-height="{{ post.image_height }}"/>
52 </a>
52 </a>
53 </div>
53 </div>
54 {% endif %}
54 {% endif %}
55 <div class="message">
55 <div class="message">
56 <div class="post-info">
56 <div class="post-info">
57 <span class="title">{{ post.title }}</span>
57 <span class="title">{{ post.title }}</span>
58 <a class="post_id" href="#{{ post.id }}">
58 <a class="post_id" href="#{{ post.id }}">
59 ({{ post.id }})</a>
59 ({{ post.id }})</a>
60 [{{ post.pub_time }}]
60 [{{ post.pub_time }}]
61 {% if not thread.archived %}
61 {% if not thread.archived %}
62 [<a href="#" onclick="javascript:addQuickReply('{{ post.id }}')
62 [<a href="#" onclick="javascript:addQuickReply('{{ post.id }}')
63 ; return false;">&gt;&gt;</a>]
63 ; return false;">&gt;&gt;</a>]
64 {% endif %}
64 {% endif %}
65
65
66 {% if moderator %}
66 {% if moderator %}
67 <span class="moderator_info">
67 <span class="moderator_info">
68 [<a href="{% url 'delete' post_id=post.id %}"
68 [<a href="{% url 'delete' post_id=post.id %}"
69 >{% trans 'Delete' %}</a>]
69 >{% trans 'Delete' %}</a>]
70 ({{ post.poster_ip }})
70 ({{ post.poster_ip }})
71 [<a href="{% url 'ban' post_id=post.id %}?next={{ request.path }}"
71 [<a href="{% url 'ban' post_id=post.id %}?next={{ request.path }}"
72 >{% trans 'Ban IP' %}</a>]
72 >{% trans 'Ban IP' %}</a>]
73 </span>
73 </span>
74 {% endif %}
74 {% endif %}
75 </div>
75 </div>
76 {% autoescape off %}
76 {% autoescape off %}
77 {{ post.text.rendered }}
77 {{ post.text.rendered }}
78 {% endautoescape %}
78 {% endautoescape %}
79 {% if post.is_referenced %}
79 {% if post.is_referenced %}
80 <div class="refmap">
80 <div class="refmap">
81 {% trans "Replies" %}:
81 {% trans "Replies" %}:
82 {% for ref_post in post.get_sorted_referenced_posts %}
82 {% for ref_post in post.get_sorted_referenced_posts %}
83 <a href="{% post_url ref_post.id %}">&gt;&gt;{{ ref_post.id }}</a
83 <a href="{% post_url ref_post.id %}">&gt;&gt;{{ ref_post.id }}</a
84 >{% if not forloop.last %},{% endif %}
84 >{% if not forloop.last %},{% endif %}
85 {% endfor %}
85 {% endfor %}
86 </div>
86 </div>
87 {% endif %}
87 {% endif %}
88 </div>
88 </div>
89 {% if forloop.first %}
89 {% if forloop.first %}
90 <div class="metadata">
90 <div class="metadata">
91 <span class="tags">
91 <span class="tags">
92 {% for tag in thread.get_tags %}
92 {% for tag in thread.get_tags %}
93 <a class="tag" href="{% url 'tag' tag.name %}">
93 <a class="tag" href="{% url 'tag' tag.name %}">
94 #{{ tag.name }}</a
94 #{{ tag.name }}</a
95 >{% if not forloop.last %},{% endif %}
95 >{% if not forloop.last %},{% endif %}
96 {% endfor %}
96 {% endfor %}
97 </span>
97 </span>
98 </div>
98 </div>
99 {% endif %}
99 {% endif %}
100 </div>
100 </div>
101 {% endfor %}
101 {% endfor %}
102 </div>
102 </div>
103 {% endcache %}
103 {% endcache %}
104
104
105 {% if not thread.archived %}
105 {% if not thread.archived %}
106
106
107 <div class="post-form-w">
107 <div class="post-form-w">
108 <script src="{% static 'js/panel.js' %}"></script>
108 <script src="{% static 'js/panel.js' %}"></script>
109 <div class="form-title">{% trans "Reply to thread" %} #{{ thread.get_opening_post.id }}</div>
109 <div class="form-title">{% trans "Reply to thread" %} #{{ thread.get_opening_post.id }}</div>
110 <div class="post-form">
110 <div class="post-form">
111 <form id="form" enctype="multipart/form-data" method="post"
111 <form id="form" enctype="multipart/form-data" method="post"
112 >{% csrf_token %}
112 >{% csrf_token %}
113 {{ form.as_div }}
113 {{ form.as_div }}
114 <div class="form-submit">
114 <div class="form-submit">
115 <input type="submit" value="{% trans "Post" %}"/>
115 <input type="submit" value="{% trans "Post" %}"/>
116 </div>
116 </div>
117 </form>
117 </form>
118 <div><a href="{% url "staticpage" name="help" %}">
118 <div><a href="{% url "staticpage" name="help" %}">
119 {% trans 'Text syntax' %}</a></div>
119 {% trans 'Text syntax' %}</a></div>
120 </div>
120 </div>
121 </div>
121 </div>
122
122
123 <script src="{% static 'js/thread_update.js' %}"></script>
123 <script src="{% static 'js/thread_update.js' %}"></script>
124 {% endif %}
124 {% endif %}
125
125
126 <script src="{% static 'js/thread.js' %}"></script>
126 <script src="{% static 'js/thread.js' %}"></script>
127
127
128 {% endspaceless %}
128 {% endspaceless %}
129 {% endblock %}
129 {% endblock %}
130
130
131 {% block metapanel %}
131 {% block metapanel %}
132
132
133 {% get_current_language as LANGUAGE_CODE %}
133 {% get_current_language as LANGUAGE_CODE %}
134
134
135 <span class="metapanel" data-last-update="{{ last_update }}">
135 <span class="metapanel" data-last-update="{{ last_update }}">
136 {% cache 600 thread_meta thread.last_edit_time moderator LANGUAGE_CODE %}
136 {% cache 600 thread_meta thread.last_edit_time moderator LANGUAGE_CODE %}
137 <span id="reply-count">{{ thread.get_reply_count }}</span> {% trans 'replies' %},
137 <span id="reply-count">{{ thread.get_reply_count }}</span> {% trans 'replies' %},
138 <span id="image-count">{{ thread.get_images_count }}</span> {% trans 'images' %}.
138 <span id="image-count">{{ thread.get_images_count }}</span> {% trans 'images' %}.
139 {% trans 'Last update: ' %}{{ thread.last_edit_time }}
139 {% trans 'Last update: ' %}{{ thread.last_edit_time }}
140 [<a href="rss/">RSS</a>]
140 [<a href="rss/">RSS</a>]
141 {% endcache %}
141 {% endcache %}
142 </span>
142 </span>
143
143
144 {% endblock %}
144 {% endblock %}
@@ -1,64 +1,64 b''
1 {% extends "boards/base.html" %}
1 {% extends "boards/base.html" %}
2
2
3 {% load i18n %}
3 {% load i18n %}
4 {% load cache %}
4 {% load cache %}
5 {% load static from staticfiles %}
5 {% load static from staticfiles %}
6 {% load board %}
6 {% load board %}
7
7
8 {% block head %}
8 {% block head %}
9 <title>Neboard - {{ thread.get_opening_post.get_title|striptags|truncatewords:10 }}</title>
9 <title>{{ thread.get_opening_post.get_title|striptags|truncatewords:10 }} - Neboard</title>
10 {% endblock %}
10 {% endblock %}
11
11
12 {% block content %}
12 {% block content %}
13 {% spaceless %}
13 {% spaceless %}
14 {% get_current_language as LANGUAGE_CODE %}
14 {% get_current_language as LANGUAGE_CODE %}
15
15
16 <script src="{% static 'js/thread.js' %}"></script>
16 <script src="{% static 'js/thread.js' %}"></script>
17
17
18 {% cache 600 thread_gallery_view thread.id thread.last_edit_time LANGUAGE_CODE request.get_host %}
18 {% cache 600 thread_gallery_view thread.id thread.last_edit_time LANGUAGE_CODE request.get_host %}
19 <div class="image-mode-tab">
19 <div class="image-mode-tab">
20 <a href="{% url 'thread' thread.get_opening_post.id %}">{% trans 'Normal mode' %}</a>,
20 <a href="{% url 'thread' thread.get_opening_post.id %}">{% trans 'Normal mode' %}</a>,
21 <a class="current_mode" href="{% url 'thread_mode' thread.get_opening_post.id 'gallery' %}">{% trans 'Gallery mode' %}</a>
21 <a class="current_mode" href="{% url 'thread_mode' thread.get_opening_post.id 'gallery' %}">{% trans 'Gallery mode' %}</a>
22 </div>
22 </div>
23
23
24 <div id="posts-table">
24 <div id="posts-table">
25 {% for post in posts %}
25 {% for post in posts %}
26 <div class="gallery_image">
26 <div class="gallery_image">
27 <div>
27 <div>
28 <a
28 <a
29 class="thumb"
29 class="thumb"
30 href="{{ post.image.url }}"><img
30 href="{{ post.image.url }}"><img
31 src="{{ post.image.url_200x150 }}"
31 src="{{ post.image.url_200x150 }}"
32 alt="{{ post.id }}"
32 alt="{{ post.id }}"
33 width="{{ post.image_pre_width }}"
33 width="{{ post.image_pre_width }}"
34 height="{{ post.image_pre_height }}"
34 height="{{ post.image_pre_height }}"
35 data-width="{{ post.image_width }}"
35 data-width="{{ post.image_width }}"
36 data-height="{{ post.image_height }}"/>
36 data-height="{{ post.image_height }}"/>
37 </a>
37 </a>
38 </div>
38 </div>
39 <div class="gallery_image_metadata">
39 <div class="gallery_image_metadata">
40 {{ post.image_width }}x{{ post.image_height }}
40 {{ post.image_width }}x{{ post.image_height }}
41 {% image_actions post.image.url request.get_host %}
41 {% image_actions post.image.url request.get_host %}
42 </div>
42 </div>
43 </div>
43 </div>
44 {% endfor %}
44 {% endfor %}
45 </div>
45 </div>
46 {% endcache %}
46 {% endcache %}
47
47
48 {% endspaceless %}
48 {% endspaceless %}
49 {% endblock %}
49 {% endblock %}
50
50
51 {% block metapanel %}
51 {% block metapanel %}
52
52
53 {% get_current_language as LANGUAGE_CODE %}
53 {% get_current_language as LANGUAGE_CODE %}
54
54
55 <span class="metapanel" data-last-update="{{ last_update }}">
55 <span class="metapanel" data-last-update="{{ last_update }}">
56 {% cache 600 thread_meta thread.last_edit_time moderator LANGUAGE_CODE %}
56 {% cache 600 thread_meta thread.last_edit_time moderator LANGUAGE_CODE %}
57 <span id="reply-count">{{ thread.get_reply_count }}</span> {% trans 'replies' %},
57 <span id="reply-count">{{ thread.get_reply_count }}</span> {% trans 'replies' %},
58 <span id="image-count">{{ thread.get_images_count }}</span> {% trans 'images' %}.
58 <span id="image-count">{{ thread.get_images_count }}</span> {% trans 'images' %}.
59 {% trans 'Last update: ' %}{{ thread.last_edit_time }}
59 {% trans 'Last update: ' %}{{ thread.last_edit_time }}
60 [<a href="rss/">RSS</a>]
60 [<a href="rss/">RSS</a>]
61 {% endcache %}
61 {% endcache %}
62 </span>
62 </span>
63
63
64 {% endblock %}
64 {% endblock %}
General Comments 0
You need to be logged in to leave comments. Login now