fradrive/templates/table/course-table.hamlet
Sarah Vaupel 25efa947c6 chore(course-teaser): widget template case distinction in DBStyle
First stub of case distinction on template widget name in DBStyle
2019-07-15 10:30:37 +02:00

21 lines
598 B
Plaintext

$newline never
<div .scrolltable>
<table *{dbsAttrs'}>
$maybe wHeaders' <- wHeaders
<thead>
<tr .table__row.table__row--head>
$forall widget <- wHeaders'
$# cell/header.hamlet
^{widget}
$nothing
<tbody>
$if null wRows && (dbsEmptyStyle == DBESHeading)
<td .table__row>
<td .table__td colspan=#{show columnCount}>
_{dbsEmptyMessage}
$else
$forall row <- wRows
<tr .table__row>
$forall widget <- row
$# cell/course-teaser.hamlet
^{widget}