From 802ba7bbbac656c84e476d07d6219cbe864e30e9 Mon Sep 17 00:00:00 2001 From: cuom1999 Date: Mon, 29 Jun 2020 22:42:54 -0500 Subject: [PATCH] Add more comments to homepage --- judge/views/blog.py | 2 +- templates/blog/list.html | 72 +++++++++++++++++++++------------------- 2 files changed, 38 insertions(+), 36 deletions(-) diff --git a/judge/views/blog.py b/judge/views/blog.py index 66832c8..f280caf 100644 --- a/judge/views/blog.py +++ b/judge/views/blog.py @@ -38,7 +38,7 @@ class PostList(ListView): context['title'] = self.title or _('Page %d of Posts') % context['page_obj'].number context['first_page_href'] = reverse('home') context['page_prefix'] = reverse('blog_post_list') - context['comments'] = Comment.most_recent(self.request.user, 10) + context['comments'] = Comment.most_recent(self.request.user, 25) context['new_problems'] = Problem.objects.filter(is_public=True, is_organization_private=False) \ .order_by('-date', '-id')[:settings.DMOJ_BLOG_NEW_PROBLEM_COUNT] context['page_titles'] = CacheDict(lambda page: Comment.get_page_title(page)) diff --git a/templates/blog/list.html b/templates/blog/list.html index 7ce10e9..fc92f76 100644 --- a/templates/blog/list.html +++ b/templates/blog/list.html @@ -200,41 +200,6 @@ {% endif %} - - {% if perms.judge.test_site and own_open_tickets %} {% endif %} + + + + {% block after_posts %}{% endblock %}