From 50bcd89fcd453aed3988cc4d844ae597455e25a7 Mon Sep 17 00:00:00 2001 From: Santiago Lamora Date: Tue, 3 Dec 2019 14:07:57 +0100 Subject: [PATCH] Code paginator style. --- .../musician/components/table_paginator.html | 37 ++++++++++++++----- 1 file changed, 28 insertions(+), 9 deletions(-) diff --git a/musician/templates/musician/components/table_paginator.html b/musician/templates/musician/components/table_paginator.html index 0bfef23..913d5ae 100644 --- a/musician/templates/musician/components/table_paginator.html +++ b/musician/templates/musician/components/table_paginator.html @@ -1,17 +1,36 @@ {# #} +{% load i18n %} + {{ page_obj.paginator.count }} items in total - {% if page_obj.has_previous %} - « - - {% endif %} - Page {{ page_obj.number }} of {{ page_obj.paginator.num_pages }} - {% if page_obj.has_next %} - - » - {% endif %} +