Sha256: 68f7edb8e64a5c2b128031e87abaa0b4373b8a0331ff762d1619bec4c49ae433
Contents?: true
Size: 895 Bytes
Versions: 21
Compression:
Stored size: 895 Bytes
Contents
<% if collection.none? || collection.select{|e| e.id.present? }.none? %> <p><%= I18n.t("tasks.index.empty_collection")%></p> <% else %> <table class="table table-striped"> <thead> <tr class="<%= cycle('odd', 'even') %>"> <% columns.map{|c| c.gsub('_id', '')}.each do |column| %> <th><%= t("activerecord.attributes.task.#{column}") %></th> <% end %> </tr> </thead> <tbody> <% collection.select{|e| e.id.present? }.each do |resource| %> <tr class="<%= cycle('odd', 'even') %>"> <% columns.each do |column| %> <% if column == 'name'%> <td> <%= link_to resource.send(column), edit_task_workflow_user_index_path(resource) %> </td> <% else %> <td> <%= table_cell column, resource, columns.is_a?(Hash) ? columns[column] : nil %> </td> <% end %> <% end %> </tr> <% end %> </tbody> </table> <% end %>
Version data entries
21 entries across 21 versions & 1 rubygems