Sha256: cb7d73d315c6f6dfd2895d177cc575148337709320b27228190b8daf23777a8f

Contents?: true

Size: 940 Bytes

Versions: 16

Compression:

Stored size: 940 Bytes

Contents

<h3><%= @project.name %></h3>

<% columns = ['name'] %>

<% if @stories.none? || @stories.select{|e| e.id.present? }.none? %>
<p><%= I18n.t("stories.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.story.#{column}") %></th>
  <% end %>
      <th></th>
    </tr>
  </thead>
  <tbody>
  <% @stories.select{|e| e.id.present? }.each do |resource| %>
    <tr class="<%= cycle('odd', 'even') %>">
    <% columns.each do |column| %>
      <td>
        <%= table_cell column, resource, columns.is_a?(Hash) ? columns[column] : nil %>
      </td>
    <% end %>
      <td>
        <%= link_to t('workflow.user.next_task'), next_task_workflow_user_index_path(resource) %>
      </td>
    </tr>
  <% end %>
  </tbody>
</table>
<% end %>

<%= will_paginate @stories %>

Version data entries

16 entries across 16 versions & 1 rubygems

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