%h1 Epic Name: #{@epic.name} .tiles %a.tile.icon.bg-color-green{href: new_project_epic_story_path(@project, @epic)} .tile-content %h1.icon-large.icon-lab .brand .name Create a Task %a.tile.icon.bg-color-green{href: project_path(@project)} .tile-content %h1.icon-large.icon-lab .brand .name Projects Points = @epic.points %table %thead %tr %th Task Name %th   %tbody.stories - @epic.stories.each do |story| %tr.story %td %a.tile.icon.bg-color-yellow{href: edit_project_epic_story_path(@project, @epic, story)} .tile-content %h1.icon-large.icon-star-2 .brand .name = story.name %a.tile.icon.bg-color-yellow{href: project_epic_story_comments_path(@project, @epic, story)} .tile-content %h1.icon-large.icon-star-2 .brand .name Comments %td = link_to 'Delete a Task', [@project, @epic, story], method: :delete,class: 'button bg-color-red' %button.bg-color-orange = link_to 'Edit a Task', [:edit, @project, @epic, story] - if story.status == 'accepted' || story.status == 'denied' %button.bg-color-red = link_to 'restart', [:start, @project, @epic, story], class: 'btn btn-primary' - elsif story.next_step == 'accept' || story.next_step == 'deny' %button.bg-color-green = link_to 'accept', [:accept, @project, @epic, story], class: 'btn btn-primary' %button.bg-color-red = link_to 'deny', [:deny, @project, @epic, story], class: 'btn btn-primary' - else %button.bg-color-green = link_to story.next_step, [story.next_step.to_sym, @project, @epic, story], class: 'btn btn-primary'