From 5c7907efe513e3772dd013e71d9a12b5d87cc681 Mon Sep 17 00:00:00 2001 From: richard-dds Date: Wed, 14 Nov 2018 17:09:13 -0500 Subject: [PATCH] Fix bug preventing 'disabled' style from rendering --- templates/components/pagination.html | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/templates/components/pagination.html b/templates/components/pagination.html index ebca6b3a..5b1c84a9 100644 --- a/templates/components/pagination.html +++ b/templates/components/pagination.html @@ -11,20 +11,10 @@ {% set button_class = button_class + "usa-button-secondary" %} {% endif %} - {{ label }} + {{ label }} {%- endmacro %} {% macro Pagination(pagination, route) -%} - {% set first %} - {{ Page(pagination, route, 1, label="first") }} - {{ Page(pagination, route, pagination.page - 1, label="prev") }} - {% endset %} - - {% set last %} - {{ Page(pagination, route, pagination.page + 1, label="next") }} - {{ Page(pagination, route, pagination.pages, label="last") }} - {% endset %} -