table thead tr th = sortable_column Flyboy::Goal.model_name.human, column: "title" th.hidden-xs = sortable_column Flyboy::Goal.human_attribute_name(:progress), column: "progress" th.hidden-xs = sortable_column Flyboy::Goal.human_attribute_name(:status), column: "status" th = t ".actions", default: t("helpers.actions") tbody - goals.each do |goal| tr.goal class=goal_color(goal) td.title - if can? :read, goal = link_to goal.title, goal_path(goal) - else = goal.title td.goal_progress.hidden-xs = progress_bar percentage: goal.progress, label: true td.status.hidden-xs = t("messages.goals.status.#{goal.status}") td.actions - if can? :create, Flyboy::Task.new(goal: goal) = create_button flyboy.new_goal_task_path(goal), text: t("actions.goals.new_task")