##// END OF EJS Templates
Removed RSS link from the archive, because there is no RSS there
neko259 -
r528:7e101b81 default
parent child Browse files
Show More
@@ -1,145 +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 board %}
5 {% load board %}
6 {% load static %}
6 {% load static %}
7
7
8 {% block head %}
8 {% block head %}
9 <title>Neboard - {% trans 'Archive' %}</title>
9 <title>Neboard - {% trans 'Archive' %}</title>
10
10
11 {% if current_page.has_previous %}
11 {% if current_page.has_previous %}
12 <link rel="prev" href="
12 <link rel="prev" href="
13 {% if tag %}
13 {% if tag %}
14 {% url "tag" tag_name=tag page=current_page.previous_page_number %}
14 {% url "tag" tag_name=tag page=current_page.previous_page_number %}
15 {% else %}
15 {% else %}
16 {% url "index" page=current_page.previous_page_number %}
16 {% url "index" page=current_page.previous_page_number %}
17 {% endif %}
17 {% endif %}
18 " />
18 " />
19 {% endif %}
19 {% endif %}
20 {% if current_page.has_next %}
20 {% if current_page.has_next %}
21 <link rel="next" href="
21 <link rel="next" href="
22 {% if tag %}
22 {% if tag %}
23 {% url "tag" tag_name=tag page=current_page.next_page_number %}
23 {% url "tag" tag_name=tag page=current_page.next_page_number %}
24 {% else %}
24 {% else %}
25 {% url "index" page=current_page.next_page_number %}
25 {% url "index" page=current_page.next_page_number %}
26 {% endif %}
26 {% endif %}
27 " />
27 " />
28 {% endif %}
28 {% endif %}
29
29
30 {% endblock %}
30 {% endblock %}
31
31
32 {% block content %}
32 {% block content %}
33
33
34 {% get_current_language as LANGUAGE_CODE %}
34 {% get_current_language as LANGUAGE_CODE %}
35
35
36 {% if threads %}
36 {% if threads %}
37 {% if current_page.has_previous %}
37 {% if current_page.has_previous %}
38 <div class="page_link">
38 <div class="page_link">
39 <a href="{% url "archive" page=current_page.previous_page_number %}">{% trans "Previous page" %}</a>
39 <a href="{% url "archive" page=current_page.previous_page_number %}">{% trans "Previous page" %}</a>
40 </div>
40 </div>
41 {% endif %}
41 {% endif %}
42
42
43 {% for thread in threads %}
43 {% for thread in threads %}
44 {% cache 600 thread_short thread.id thread.thread.last_edit_time moderator LANGUAGE_CODE %}
44 {% cache 600 thread_short thread.id thread.thread.last_edit_time moderator LANGUAGE_CODE %}
45 <div class="thread">
45 <div class="thread">
46 <div class="post archive_post" id="{{ thread.op.id }}">
46 <div class="post archive_post" id="{{ thread.op.id }}">
47 {% if thread.op.image %}
47 {% if thread.op.image %}
48 <div class="image">
48 <div class="image">
49 <a class="thumb"
49 <a class="thumb"
50 href="{{ thread.op.image.url }}"><img
50 href="{{ thread.op.image.url }}"><img
51 src="{{ thread.op.image.url_200x150 }}"
51 src="{{ thread.op.image.url_200x150 }}"
52 alt="{{ thread.op.id }}"
52 alt="{{ thread.op.id }}"
53 width="{{ thread.op.image_pre_width }}"
53 width="{{ thread.op.image_pre_width }}"
54 height="{{ thread.op.image_pre_height }}"
54 height="{{ thread.op.image_pre_height }}"
55 data-width="{{ thread.op.image_width }}"
55 data-width="{{ thread.op.image_width }}"
56 data-height="{{ thread.op.image_height }}"/>
56 data-height="{{ thread.op.image_height }}"/>
57 </a>
57 </a>
58 </div>
58 </div>
59 {% endif %}
59 {% endif %}
60 <div class="message">
60 <div class="message">
61 <div class="post-info">
61 <div class="post-info">
62 <span class="title">{{ thread.op.title }}</span>
62 <span class="title">{{ thread.op.title }}</span>
63 <a class="post_id" href="{% url 'thread' thread.op.id %}"
63 <a class="post_id" href="{% url 'thread' thread.op.id %}"
64 > ({{ thread.op.id }})</a>
64 > ({{ thread.op.id }})</a>
65 [{{ thread.op.pub_time }}] β€” [{{ thread.thread.bump_time }}]
65 [{{ thread.op.pub_time }}] β€” [{{ thread.thread.bump_time }}]
66
66
67 [<a class="link" href="
67 [<a class="link" href="
68 {% url 'thread' thread.op.id %}">{% trans "Open" %}</a>]
68 {% url 'thread' thread.op.id %}">{% trans "Open" %}</a>]
69
69
70 {% if moderator %}
70 {% if moderator %}
71 <span class="moderator_info">
71 <span class="moderator_info">
72 [<a href="
72 [<a href="
73 {% url 'delete' post_id=thread.op.id %}?next={{ request.path }}"
73 {% url 'delete' post_id=thread.op.id %}?next={{ request.path }}"
74 >{% trans 'Delete' %}</a>]
74 >{% trans 'Delete' %}</a>]
75 ({{ thread.op.poster_ip }})
75 ({{ thread.op.poster_ip }})
76 [<a href="
76 [<a href="
77 {% url 'ban' post_id=thread.op.id %}?next={{ request.path }}"
77 {% url 'ban' post_id=thread.op.id %}?next={{ request.path }}"
78 >{% trans 'Ban IP' %}</a>]
78 >{% trans 'Ban IP' %}</a>]
79 </span>
79 </span>
80 {% endif %}
80 {% endif %}
81 </div>
81 </div>
82 {% autoescape off %}
82 {% autoescape off %}
83 {{ thread.op.text.rendered|truncatewords_html:50 }}
83 {{ thread.op.text.rendered|truncatewords_html:50 }}
84 {% endautoescape %}
84 {% endautoescape %}
85 {% if thread.op.is_referenced %}
85 {% if thread.op.is_referenced %}
86 <div class="refmap">
86 <div class="refmap">
87 {% trans "Replies" %}:
87 {% trans "Replies" %}:
88 {% for ref_post in thread.op.get_sorted_referenced_posts %}
88 {% for ref_post in thread.op.get_sorted_referenced_posts %}
89 <a href="{% post_url ref_post.id %}">&gt;&gt;{{ ref_post.id }}</a
89 <a href="{% post_url ref_post.id %}">&gt;&gt;{{ ref_post.id }}</a
90 >{% if not forloop.last %},{% endif %}
90 >{% if not forloop.last %},{% endif %}
91 {% endfor %}
91 {% endfor %}
92 </div>
92 </div>
93 {% endif %}
93 {% endif %}
94 </div>
94 </div>
95 <div class="metadata">
95 <div class="metadata">
96 {{ thread.thread.get_images_count }} {% trans 'images' %},
96 {{ thread.thread.get_images_count }} {% trans 'images' %},
97 {{ thread.thread.get_reply_count }} {% trans 'replies' %}.
97 {{ thread.thread.get_reply_count }} {% trans 'replies' %}.
98 {% if thread.thread.tags %}
98 {% if thread.thread.tags %}
99 <span class="tags">
99 <span class="tags">
100 {% for tag in thread.thread.get_tags %}
100 {% for tag in thread.thread.get_tags %}
101 <a class="tag" href="
101 <a class="tag" href="
102 {% url 'tag' tag_name=tag.name %}">
102 {% url 'tag' tag_name=tag.name %}">
103 #{{ tag.name }}</a
103 #{{ tag.name }}</a
104 >{% if not forloop.last %},{% endif %}
104 >{% if not forloop.last %},{% endif %}
105 {% endfor %}
105 {% endfor %}
106 </span>
106 </span>
107 {% endif %}
107 {% endif %}
108 </div>
108 </div>
109 </div>
109 </div>
110 </div>
110 </div>
111 {% endcache %}
111 {% endcache %}
112 {% endfor %}
112 {% endfor %}
113
113
114 {% if current_page.has_next %}
114 {% if current_page.has_next %}
115 <div class="page_link">
115 <div class="page_link">
116 <a href="{% url "archive" page=current_page.next_page_number %}">{% trans "Next page" %}</a>
116 <a href="{% url "archive" page=current_page.next_page_number %}">{% trans "Next page" %}</a>
117 </div>
117 </div>
118 {% endif %}
118 {% endif %}
119 {% else %}
119 {% else %}
120 <div class="post">
120 <div class="post">
121 {% trans 'No threads exist. Create the first one!' %}</div>
121 {% trans 'No threads exist. Create the first one!' %}</div>
122 {% endif %}
122 {% endif %}
123
123
124 {% endblock %}
124 {% endblock %}
125
125
126 {% block metapanel %}
126 {% block metapanel %}
127
127
128 <span class="metapanel">
128 <span class="metapanel">
129 <b><a href="{% url "authors" %}">Neboard</a> 1.6 Amon</b>
129 <b><a href="{% url "authors" %}">Neboard</a> 1.6 Amon</b>
130 {% trans "Pages:" %}[
130 {% trans "Pages:" %}[
131 {% for page in paginator.page_range %}
131 {% for page in paginator.page_range %}
132 <a
132 <a
133 {% ifequal page current_page.number %}
133 {% ifequal page current_page.number %}
134 class="current_page"
134 class="current_page"
135 {% endifequal %}
135 {% endifequal %}
136 href="
136 href="
137 {% url "archive" page=page %}
137 {% url "archive" page=page %}
138 ">{{ page }}</a>
138 ">{{ page }}</a>
139 {% if not forloop.last %},{% endif %}
139 {% if not forloop.last %},{% endif %}
140 {% endfor %}
140 {% endfor %}
141 ]
141 ]
142 [<a href="rss/">RSS</a>]
143 </span>
142 </span>
144
143
145 {% endblock %}
144 {% endblock %}
General Comments 0
You need to be logged in to leave comments. Login now