Skip to content

Commit

Permalink
Fixed compatibility with newer Latte
Browse files Browse the repository at this point in the history
  • Loading branch information
janpecha committed Sep 19, 2023
1 parent 7a6bcba commit d246c5f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/templates/default/@grid.latte
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
</th>

{foreach $columns as $column}
{var $columnAttrs = $column->getAttributes([class => ['table__cell', 'table__cell--header']])}
{var $columnAttrs = $column->getAttributes(['class' => ['table__cell', 'table__cell--header']])}
<th n:attr="$columnAttrs">
{if $column->isSortable()}
{var $sort = $column->getSort()}
Expand Down Expand Up @@ -87,11 +87,11 @@
</table>
</form>

<div n:if="!$iterations">
<div n:if="count($rows) === 0">
<p>Nenalezeny žádné vyhovující záznamy.</p>
</div>

{if $iterations}
{if count($rows) > 0}
<div class="datagrid__footer text--muted">
<form class="form" n:name="viewOptions" onchange="this.submit()">
{if isset($form[perPage])}
Expand Down

0 comments on commit d246c5f

Please sign in to comment.