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