Sha256: 3d0d3f86514be5f147ae49e10f8d4c0798e0c199a29554ff29b688a50988814a
Contents?: true
Size: 810 Bytes
Versions: 4
Compression:
Stored size: 810 Bytes
Contents
<% items.each do |item| %> <% if item[:hook].present? %> <% hook_output = render_hook(item[:hook]) %> <% next if hook_output.blank? %> <%= content_tag :span, data: item[:data_attributes] do %> <%= icon item[:icon] if item[:icon].present? %> <%= hook_output %> <% end %> <% else %> <%= content_tag :span, data: item[:data_attributes] do %> <%= icon item[:icon] if item[:icon].present? %> <% if item[:text].present? %> <%= link_to_if enable_links? && item.has_key?(:url), item[:text], item[:url] %> <% elsif item[:cell].present? && item[:args].is_a?(Enumerable) %> <%= cell(item[:cell], *item[:args]) %> <% elsif item[:cell].present? %> <%= cell(item[:cell], item[:args]) %> <% end %> <% end %> <% end %> <% end %>
Version data entries
4 entries across 4 versions & 1 rubygems