fradrive/templates/table/layout.hamlet
2019-01-26 21:16:03 +01:00

18 lines
586 B
Plaintext

$newline never
$if null rows && (dbsEmptyStyle == DBESNoHeading)
_{dbsEmptyMessage}
$else
^{table}
_{MsgRowCount rowCount}
<!-- TODO: replace '5' with 'minPagesize' -->
$if rowCount > 5
<div .pagination>
<form .pagesize method=GET enctype=#{pagesizeEnc} action=#{rawAction}>
^{pagesizeWdgt}
$if pageCount > 1
<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)}