|
55 | 55 | {{/each}} |
56 | 56 | {{#if ../edit_url}}<th class="_col_edit text-center">Edit</th>{{/if}} |
57 | 57 | {{#if ../delete_url}}<th class="_col_delete text-center">Delete</th>{{/if}} |
58 | | - {{#if ../custom_actions}} |
59 | | - {{#each ../custom_actions}} |
60 | | - <th class="_col_custom text-center">{{this.name}}</th> |
61 | | - {{/each}} |
62 | | - {{/if}} |
63 | | - {{#if _sqlpage_actions}} |
64 | | - {{#each _sqlpage_actions}} |
65 | | - <th class="_col_action text-center">{{this.name}}</th> |
66 | | - {{/each}} |
67 | | - {{/if}} |
| 58 | + {{#each (to_array ../custom_actions)}} |
| 59 | + <th class="_col_custom text-center">{{this.name}}</th> |
| 60 | + {{/each}} |
| 61 | + |
| 62 | + {{#each (to_array _sqlpage_actions)}} |
| 63 | + <th class="_col_action text-center">{{this.name}}</th> |
| 64 | + {{/each}} |
68 | 65 | </tr> |
69 | 66 | </thead> |
70 | 67 | <tbody class="table-tbody list">{{#delay}}</tbody>{{/delay}} |
|
105 | 102 | </a> |
106 | 103 | </td> |
107 | 104 | {{/if}} |
108 | | - {{#if ../custom_actions}} |
109 | | - {{#each ../custom_actions}} |
110 | | - <td class="align-middle _col_{{this.name}} text-center"> |
111 | | - <a href="{{replace this.link '{id}' ../_sqlpage_id}}" class="align-middle link-secondary _col_{{this.name}}" data-action="{{this.name}}" title="{{default this.tooltip this.name}}">{{!Title property sets the tooltip text}} |
112 | | - {{~icon_img this.icon~}} |
113 | | - </a> |
114 | | - </td> |
115 | | - {{/each}} |
116 | | - {{/if}} |
117 | | - {{#if _sqlpage_actions}} |
118 | | - {{#each _sqlpage_actions}} |
119 | | - <td class="align-middle _col_{{this.name}} text-center"> |
120 | | - <a href="{{replace this.link '{id}' ../_sqlpage_id}}" class="align-middle link-secondary _col_{{this.name}}" data-action="{{this.name}}" title="{{default this.tooltip this.name}}"> |
121 | | - {{~icon_img this.icon~}} |
122 | | - </a> |
123 | | - </td> |
124 | | - {{/each}} |
125 | | - {{/if}} |
| 105 | + {{#each (to_array ../custom_actions)}} |
| 106 | + <td class="align-middle _col_{{this.name}} text-center"> |
| 107 | + <a href="{{replace this.link '{id}' ../_sqlpage_id}}" class="align-middle link-secondary _col_{{this.name}}" data-action="{{this.name}}" title="{{default this.tooltip this.name}}">{{!Title property sets the tooltip text}} |
| 108 | + {{~icon_img this.icon~}} |
| 109 | + </a> |
| 110 | + </td> |
| 111 | + {{/each}} |
| 112 | + |
| 113 | + {{#each (to_array _sqlpage_actions)}} |
| 114 | + <td class="align-middle _col_{{this.name}} text-center"> |
| 115 | + <a href="{{replace this.link '{id}' ../_sqlpage_id}}" class="align-middle link-secondary _col_{{this.name}}" data-action="{{this.name}}" title="{{default this.tooltip this.name}}"> |
| 116 | + {{~icon_img this.icon~}} |
| 117 | + </a> |
| 118 | + </td> |
| 119 | + {{/each}} |
126 | 120 | </tr> |
127 | 121 | {{!~ |
128 | 122 | After this <tr> has been rendered, if this was a footer, we need to reopen a new <tbody> |
|
0 commit comments