From c2174161c502bc1c395a09f74e665e2dfaef57a3 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Wed, 4 Apr 2018 15:28:55 +0200 Subject: [PATCH] Better name for templates/table/table --- src/Handler/Utils/Table/Pagination.hs | 2 +- templates/table/{table.hamlet => colonnade.hamlet} | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename templates/table/{table.hamlet => colonnade.hamlet} (100%) diff --git a/src/Handler/Utils/Table/Pagination.hs b/src/Handler/Utils/Table/Pagination.hs index 6f0c1d4c5..ef3ab45ec 100644 --- a/src/Handler/Utils/Table/Pagination.hs +++ b/src/Handler/Utils/Table/Pagination.hs @@ -150,7 +150,7 @@ dbTable PSValidator{..} DBTable{ dbtIdent = (toPathPiece -> dbtIdent), .. } = do bool return (sendResponse <=< tblLayout) psShortcircuit $ do getParams <- handlerToWidget $ queryToQueryText . Wai.queryString . reqWaiRequest <$> getRequest - let table = $(widgetFile "table/table") + let table = $(widgetFile "table/colonnade") pageCount = max 1 . ceiling $ rowCount % psLimit tblLink f = decodeUtf8 . Builder.toLazyByteString . renderQueryText True $ f getParams withSortLinks Sortable{ sortableContent = Cell{..}, .. } = Cell diff --git a/templates/table/table.hamlet b/templates/table/colonnade.hamlet similarity index 100% rename from templates/table/table.hamlet rename to templates/table/colonnade.hamlet