Sha256: 996c33da458bd281d27c191fceec26911eddf1731adabf9d3ed6b527a8120200
Contents?: true
Size: 935 Bytes
Versions: 27
Compression:
Stored size: 935 Bytes
Contents
<% if @objects.any? %> <table class="<%= "model_#{base_class.name.underscore.gsub("/", "_")}" %> list" id="<%= base_class.name.underscore.gsub("/", "_") %>_list"> <thead> <tr> <% table_columns.each do |attribute| %> <th class="colum_header <%= attribute.to_s %>"> <%= t(base_class.human_attribute_name(attribute)) %> </th> <% end %> <th class="tools"></th> </tr> </thead> <tbody> <% @objects.each do |obj| %> <tr> <% table_columns.each do |field| %> <td class="custom-model-row <%= field.to_s %>"> <%= render_obj obj, field %> </td> <% end %> <td class="tools"> <%= render partial: "buttons_tool", locals: {obj: obj} %> </td> </tr> <% end %> </tbody> </table> <% end %>
Version data entries
27 entries across 27 versions & 1 rubygems