Sha256: 3922bf5efe3c8e7709e1207740695f22e2094c7b80992273110a802706b37626
Contents?: true
Size: 1.09 KB
Versions: 7
Compression:
Stored size: 1.09 KB
Contents
<tr class="<%= (index % 2).zero? ? 'even' : 'odd' %> <%= row_class_mapper.call(item) %>"> <% fields.each do |field, class_mapper, label, value_mapper| %> <td class="align-middle <%= class_mapper.call(item) %>"> <% if component.secret_field?(field) %> <%= controller.helpers.render partial: 'active_element/components/secret/field', locals: { secret: value_mapper.call(item), label: label } %> <% else %> <%= value_mapper.call(item) %> <% end %> </td> <% end %> <% if show %> <td class="<%= "#{class_name}-show" %> action-column text-end"> <%= active_element.component.show_button(item, show, class: 'btn-sm') %> </td> <% end %> <% if edit %> <td class="<%= "#{class_name}-edit" %> action-column text-end"> <%= active_element.component.edit_button(item, show, class: 'btn-sm') %> </td> <% end %> <% if destroy %> <td class="<%= "#{class_name}-destroy" %> action-column text-end"> <%= active_element.component.destroy_button(item, destroy, class: 'btn-sm') %> </td> <% end %> </tr>
Version data entries
7 entries across 7 versions & 1 rubygems