From 2db99d3ca40bb5dd430650792d1f959a011c314c Mon Sep 17 00:00:00 2001 From: Maximilian Franzke Date: Wed, 19 Oct 2022 06:15:25 +0200 Subject: [PATCH] chore: template simplification we obviously only need the condition around the table cell head element --- .../_patterns/02-components/table/table.hbs | 24 ++++++------------- 1 file changed, 7 insertions(+), 17 deletions(-) diff --git a/source/_patterns/02-components/table/table.hbs b/source/_patterns/02-components/table/table.hbs index 50663fd657..0ffb0fa046 100644 --- a/source/_patterns/02-components/table/table.hbs +++ b/source/_patterns/02-components/table/table.hbs @@ -16,22 +16,12 @@ - {{! TODO: Not elegant, but working for the moment… }} - {{#if rowtitle }} - {{#each cells }} - - table header - {{{ text01 }}} - {{{ text02 }}} - - {{/each }} - {{else}} - {{#each cells }} - - {{{ text01 }}} - {{{ text02 }}} - - {{/each }} - {{/if }} + {{#each cells }} + + {{#if ../rowtitle }}table header{{/if }} + {{{ text01 }}} + {{{ text02 }}} + + {{/each }}