From ef7556194cfeac6fd52a115a9162e611f322aaa4 Mon Sep 17 00:00:00 2001 From: 8chan Date: Sat, 19 Jul 2014 18:41:48 +0000 Subject: Fix 55ch cancer; can now see next page of posts, ?/recent uses templating system --- templates/mod/recent_posts.html | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'templates') diff --git a/templates/mod/recent_posts.html b/templates/mod/recent_posts.html index 4a2f9baa..7e38881b 100644 --- a/templates/mod/recent_posts.html +++ b/templates/mod/recent_posts.html @@ -1,6 +1,14 @@ -{% if posts|count %} +{% if not posts|count %}

({% trans 'There are no active posts.' %})

{% else %} - +

Viewing last {{ limit|e }} posts

+

View 25 | 50 | 100

+ Erase local data + {% for post in posts %} +

/{{ post.board }}/{{ post.id }}
+ {{ post.built }} +
+ {% endfor %} {% endif %} +Next {{ limit }} posts -- cgit v1.3 From 18f158e2d57cb91f0675654975536b446afee64b Mon Sep 17 00:00:00 2001 From: Fredrick Brennan Date: Sat, 19 Jul 2014 18:47:34 +0000 Subject: Forgot some |e --- templates/mod/recent_posts.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'templates') diff --git a/templates/mod/recent_posts.html b/templates/mod/recent_posts.html index 7e38881b..7ed80f21 100644 --- a/templates/mod/recent_posts.html +++ b/templates/mod/recent_posts.html @@ -11,4 +11,4 @@ {% endfor %} {% endif %} -Next {{ limit }} posts +Next {{ limit }} posts -- cgit v1.3 From 48f99deaa56cd7a4af9eeac3b5c981e342816f95 Mon Sep 17 00:00:00 2001 From: 8chan Date: Mon, 21 Jul 2014 16:54:51 +0000 Subject: Fix post linking bug in ?/recent --- templates/mod/recent_posts.html | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'templates') diff --git a/templates/mod/recent_posts.html b/templates/mod/recent_posts.html index 7ed80f21..b9c2c0cc 100644 --- a/templates/mod/recent_posts.html +++ b/templates/mod/recent_posts.html @@ -6,7 +6,12 @@

View 25 | 50 | 100

Erase local data {% for post in posts %} -

/{{ post.board }}/{{ post.id }}
+ {% if not post.thread %} + {% set thread = post.id %} + {% else %} + {% set thread = post.thread %} + {% endif %} +

/{{ post.board }}/{{ post.id }}
{{ post.built }}
{% endfor %} -- cgit v1.3