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

Version Path
voluntary-0.7.1 app/views/workflow/user/_tasks.html.erb
voluntary-0.7.0 app/views/workflow/user/_tasks.html.erb
voluntary-0.6.0 app/views/workflow/user/_tasks.html.erb
voluntary-0.5.2 app/views/workflow/user/_tasks.html.erb
voluntary-0.5.1 app/views/workflow/user/_tasks.html.erb
voluntary-0.5.0 app/views/workflow/user/_tasks.html.erb
voluntary-0.4.0 app/views/workflow/user/_tasks.html.erb
voluntary-0.3.0 app/views/workflow/user/_tasks.html.erb
voluntary-0.2.4 app/views/workflow/user/_tasks.html.erb
voluntary-0.2.3 app/views/workflow/user/_tasks.html.erb
voluntary-0.2.2 app/views/workflow/user/_tasks.html.erb
voluntary-0.2.1 app/views/workflow/user/_tasks.html.erb
voluntary-0.2.0 app/views/workflow/user/_tasks.html.erb
voluntary-0.1.0 app/views/workflow/user/_tasks.html.erb
voluntary-0.1.0.rc4 app/views/workflow/user/_tasks.html.erb
voluntary-0.1.0.rc3 app/views/workflow/user/_tasks.html.erb
voluntary-0.1.0.rc2 app/views/workflow/user/_tasks.html.erb
voluntary-0.1.0.rc1 app/views/workflow/user/_tasks.html.erb
voluntary-0.0.3 app/views/workflow/user/_tasks.html.erb
voluntary-0.0.2 app/views/workflow/user/_tasks.html.erb