<%= params[:id] == 'no-name' ? 'No Name' : @product.name %>

<% columns = ['name'] %> <% if @stories.none? || @stories.select{|e| e.id.present? }.none? %>

<%= I18n.t("stories.index.empty_collection")%>

<% else %> <% columns.map{|c| c.gsub('_id', '')}.each do |column| %> <% end %> <% @stories.select{|e| e.id.present? }.each do |resource| %> <% columns.each do |column| %> <% end %> <% end %>
<%= t("activerecord.attributes.story.#{column}") %>
<%= table_cell column, resource, columns.is_a?(Hash) ? columns[column] : nil %> <%= link_to t('workflow.user.next_task'), next_task_workflow_user_index_path(resource) %>
<% end %> <%= paginate @stories if self.respond_to? :paginate %>