From b0a5980833c0f4bded04f0b6500a1713652ca552 Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Tue, 25 Dec 2018 15:20:58 +0000 Subject: Add unlimited results toggle in topics list --- app/templates/todo/topics.html | 29 ++++++++++++++++++++++------- 1 file changed, 22 insertions(+), 7 deletions(-) (limited to 'app/templates') diff --git a/app/templates/todo/topics.html b/app/templates/todo/topics.html index bec0f42..2156e8d 100644 --- a/app/templates/todo/topics.html +++ b/app/templates/todo/topics.html @@ -5,15 +5,30 @@ Topics to be Added {% endblock %} {% block content %} - - {% if not show_discarded %} - Show - {% else %} - Hide +
+ {% if current_user.rank.atLeast(current_user.rank.EDITOR) %} + {% if n >= 10000 %} + + Paginiated List + + {% else %} + + Unlimited List + + {% endif %} {% endif %} + + {% if not show_discarded %} + Show + {% else %} + Hide + {% endif %} - Discarded Topics - + Discarded Topics + +

Topics to be Added

-- cgit v1.2.3