Sha256: 0da45bd5598e2a56531e5506ced80a2c76a873070668d4f9c36b3ff5e95ae27f

Contents?: true

Size: 585 Bytes

Versions: 7

Compression:

Stored size: 585 Bytes

Contents

<tr class="elements-table__row">

  <% @labels.each do |label| %>

    <% if label[:type] === 'string' %>

      <td><%= label[:value] %></td>

    <% elsif label[:type] === 'boolean' %>

      <td>
        <span class="boolean-value <%= label[:value] %>"></span>
      </td>

    <% elsif label[:type] === 'icon' %>

      <td>
        <i class="fa fa-<%= label[:value] %>" aria-hidden="true"></i>
      </td>

    <% elsif label[:type] === 'component' %>

      <td>
        <%=raw label[:value].show %>
      </td>

    <% else %>

      <td></td>

    <% end %>

  <% end %>

</tr>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
lato_core-2.2.2 app/cells/lato_core/elements/table/row/views/show.html.erb
lato_core-2.2.0 app/cells/lato_core/elements/table/row/views/show.html.erb
lato_core-2.1.4 app/cells/lato_core/elements/table/row/views/show.html.erb
lato_core-2.1.3 app/cells/lato_core/elements/table/row/views/show.html.erb
lato_core-2.1.2 app/cells/lato_core/elements/table/row/views/show.html.erb
lato_core-2.1.1 app/cells/lato_core/elements/table/row/views/show.html.erb
lato_core-2.1 app/cells/lato_core/elements/table/row/views/show.html.erb