|
18 | 18 | {{/each}} |
19 | 19 | {{#each data.rows}} |
20 | 20 | <tr> |
21 | | - {{#if id}}<td data-col="ID">{{ id }}</td>{{/if}} |
22 | | - {{#if name}}<td data-col="Name">{{ name }}</td>{{/if}} |
23 | | - {{#if name-link}}<td data-col="Name"><a href="#">{{ name-link }}</a></td>{{/if}} |
| 21 | + {{#if id}}<td data-col="{{ getColFromRow this id @root.data.cols }}">{{ id }}</td>{{/if}} |
| 22 | + {{#if name}}<td data-col="{{ getColFromRow this name @root.data.cols }}">{{ name }}</td>{{/if}} |
| 23 | + {{#if name-link}}<td data-col="{{ getColFromRow this name-link @root.data.cols }}"><a href="#">{{ name-link }}</a></td>{{/if}} |
24 | 24 | {{#if paragraph}} |
25 | | - <td data-col="Summary" title="{{> @text-of-one-paragraph-short }}"> |
| 25 | + <td data-col="{{ getColFromRow this paragraph @root.data.cols }}" title="{{> @text-of-one-paragraph-short }}"> |
26 | 26 | <p>{{> @text-of-one-paragraph-short }}</p> |
27 | 27 | </td> |
28 | 28 | {{/if}} |
29 | 29 | {{#if sentence}} |
30 | | - <td data-col="Sentence" title="{{> @text-of-one-sentence }}"> |
| 30 | + <td data-col="{{ getColFromRow this sentence @root.data.cols }}" title="{{> @text-of-one-sentence }}"> |
31 | 31 | <span>{{> @text-of-one-sentence }}</span> |
32 | 32 | </td> |
33 | 33 | {{/if}} |
34 | | - {{#if custom-1}}<td data-col="Size">{{{ custom-1 }}}</td>{{/if}} |
35 | | - {{#if custom-2}}<td data-col="">{{{ custom-2 }}}</td>{{/if}} |
36 | | - {{#if custom-3}}<td data-col="">{{{ custom-3 }}}</td>{{/if}} |
37 | | - {{#if time}}<td data-col="Time"><time>{{ time }}</time></td>{{/if}} |
| 34 | + {{#if custom-1}}<td data-col="{{ getColFromRow this custom-1 @root.data.cols }}">{{{ custom-1 }}}</td>{{/if}} |
| 35 | + {{#if custom-2}}<td data-col="{{ getColFromRow this custom-2 @root.data.cols }}">{{{ custom-2 }}}</td>{{/if}} |
| 36 | + {{#if custom-3}}<td data-col="{{ getColFromRow this custom-3 @root.data.cols }}">{{{ custom-3 }}}</td>{{/if}} |
| 37 | + {{#if time}}<td data-col="{{ getColFromRow this time @root.data.cols }}"><time>{{ time }}</time></td>{{/if}} |
38 | 38 | {{#if acts}} |
39 | | - <td data-col="Actions"> |
| 39 | + <td data-col="{{ getColFromRow this acts @root.data.cols }}"> |
40 | 40 | <ul> |
41 | 41 | {{#each acts}} |
42 | 42 | {{#if is-link }}<li><a href="#">{{ text }}</a></li>{{/if}} |
|
0 commit comments