Sha256: 7fd05cd2fa186a6cfa5a16e8f93af5a2c83e52ea842b593919de84f6278da5c0

Contents?: true

Size: 877 Bytes

Versions: 21

Compression:

Stored size: 877 Bytes

Contents

<h3><%= I18n.t('tasks.index.title') %></h3>

<% columns = { 
  'name' => Proc.new{|resource| link_to(resource.name, edit_task_workflow_user_index_path(resource)) }, 
  'state' => nil 
} %>

<% if @tasks.none? || @tasks.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.keys.map{|c| c.gsub('_id', '')}.each do |column| %>
      <th><%= t("activerecord.attributes.task.#{column}") %></th>
  <% end %>
    </tr>
  </thead>
  <tbody>
  <% @tasks.select{|e| e.id.present? }.each do |resource| %>
    <tr class="<%= cycle('odd', 'even') %>">
    <% columns.keys.each do |column| %>
      <td>
        <%= table_cell column, resource, columns[column] %>
      </td>
    <% 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/tasks/index.html.erb
voluntary-0.7.0 app/views/workflow/tasks/index.html.erb
voluntary-0.6.0 app/views/workflow/tasks/index.html.erb
voluntary-0.5.2 app/views/workflow/tasks/index.html.erb
voluntary-0.5.1 app/views/workflow/tasks/index.html.erb
voluntary-0.5.0 app/views/workflow/tasks/index.html.erb
voluntary-0.4.0 app/views/workflow/tasks/index.html.erb
voluntary-0.3.0 app/views/workflow/tasks/index.html.erb
voluntary-0.2.4 app/views/workflow/tasks/index.html.erb
voluntary-0.2.3 app/views/workflow/tasks/index.html.erb
voluntary-0.2.2 app/views/workflow/tasks/index.html.erb
voluntary-0.2.1 app/views/workflow/tasks/index.html.erb
voluntary-0.2.0 app/views/workflow/tasks/index.html.erb
voluntary-0.1.0 app/views/workflow/tasks/index.html.erb
voluntary-0.1.0.rc4 app/views/workflow/tasks/index.html.erb
voluntary-0.1.0.rc3 app/views/workflow/tasks/index.html.erb
voluntary-0.1.0.rc2 app/views/workflow/tasks/index.html.erb
voluntary-0.1.0.rc1 app/views/workflow/tasks/index.html.erb
voluntary-0.0.3 app/views/workflow/tasks/index.html.erb
voluntary-0.0.2 app/views/workflow/tasks/index.html.erb