volontariat/voluntary

View on GitHub
app/views/workflow/user/stories/index.html.erb

Summary

Maintainability
Test Coverage
<table class="table table-striped">
  <thead>
    <tr>
      <th><%= t('activerecord.models.story') %></th>
      <th><%= t('activerecord.models.project') %></th>
      <th><%= t('activerecord.models.product') %></th>
      <th></th>
    </tr>
  </thead>
  <tbody>
<% @stories.each do |story| %>
    <tr>
      <td><%= link_to story.name, story_path(story) %></td>
      <td><%= link_to story.project.name, project_path(story.project) %></td>
      <td>
  <% if story.project.product %>
        <%= link_to story.project.product.name, product_path(story.project.product) %>
  <% else %>
        -
  <% end %>    
      </td>
      <td>
        <%= render_product_specific_partial_if_available(
          story.project, 'workflow/user/stories/next_task', { story: story }
        ) %>
      </td>
    </tr>
<% end %>
  </tbody>
</table>