From 9db46013ba0281442f1709c060fdbbd0544f6cf8 Mon Sep 17 00:00:00 2001 From: Marcio Mazza Date: Mon, 7 Mar 2016 11:29:45 -0300 Subject: [PATCH] =?UTF-8?q?Usa=20include=20de=20pagina=C3=A7=C3=A3o=20na?= =?UTF-8?q?=20listagem=20do=20crud?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crud_tests/test_flux.py | 4 ++-- templates/crud/list.html | 36 +----------------------------------- 2 files changed, 3 insertions(+), 37 deletions(-) diff --git a/crud_tests/test_flux.py b/crud_tests/test_flux.py index 16a63948a..1c7cfef42 100644 --- a/crud_tests/test_flux.py +++ b/crud_tests/test_flux.py @@ -178,8 +178,8 @@ def assert_on_detail_page(res, stub_name): @pytest.mark.parametrize("num_entries, page_size, ranges, page_list", [ (0, 6, [], []), (5, 5, [(0, 5)], []), - (10, 5, [(0, 5), (5, 10)], ['«', '1', '2', '»']), - (9, 4, [(0, 4), (4, 8), (8, 9)], ['«', '1', '2', '3', '»']), + (10, 5, [(0, 5), (5, 10)], ['Anterior', '1', '2', 'Próxima']), + (9, 4, [(0, 4), (4, 8), (8, 9)], ['Anterior', '1', '2', '3', 'Próxima']), ]) def test_flux_list_paginate_detail( app, monkeypatch, num_entries, page_size, ranges, page_list): diff --git a/templates/crud/list.html b/templates/crud/list.html index cfa20b5aa..854ff30b0 100644 --- a/templates/crud/list.html +++ b/templates/crud/list.html @@ -43,40 +43,6 @@ {% endif %} +{% include "paginacao.html" %} -{% if is_paginated %} -
- -
-{% endif %} {% endblock %}