fradrive/templates/table/layout.hamlet
2019-03-23 23:00:32 +01:00

21 lines
680 B
Plaintext

$newline never
$if null rows && (dbsEmptyStyle == DBESNoHeading)
_{dbsEmptyMessage}
$else
^{table}
<div .table-footer>
<div .table__row-count>
_{MsgRowCount rowCount}
$# Since the current pagesize is always a member of pagesizeOptions we don't need to check `pageCount > 1`
$if toEnum (fromIntegral rowCount) > minimum (pagesizeOptions referencePagesize)
^{pagesizeWdgt'}
$if pageCount > 1
<div .pagination>
<ul ##{wIdent "pagination"} .pages>
$forall p <- pageNumbers
<li .page-link :p == psPage:.current>
<a href=^{tblLink' $ setParam (wIdent "page") (Just $ tshow p)}>
_{MsgPage (succ p)}