fradrive/templates/table/colonnade.hamlet
2020-03-06 10:01:23 +01:00

29 lines
885 B
Plaintext

$newline never
<div table-utils>
<div .scrolltable .scrolltable--bordered>
<table *{dbsAttrs'}>
$maybe wHeaders' <- wHeaders
<thead>
<tr .table__row.table__row--head>
$if numberColumn
<th .table__th uw-hide-columns--no-hide .table__th--number>
$forall widget <- wHeaders'
$# cell/header.hamlet
^{widget}
$nothing
<tbody>
$if null wRows && (dbsEmptyStyle == DBESHeading)
<tr .table__row>
<td .table__td colspan=#{show columnCount}>
_{dbsEmptyMessage}
$else
$forall (n, row) <- wRows
<tr .table__row>
$if numberColumn
<td .table__td .table__td--number>
<div .table__td-content>
$if dbstmShowNumber n
#{n}
$forall widget <- row
^{widget}