Sha256: 008cb1aa3ef00d2ebf417d3f507fee52e0b1539d0e0a7e973ba4638ba859ccac
Contents?: true
Size: 1.36 KB
Versions: 5
Compression:
Stored size: 1.36 KB
Contents
table.default thead tr - if nested th = Flyboy::Task.model_name.human th = Flyboy::Task.human_attribute_name(:progress) th = Flyboy::Task.human_attribute_name(:term) - else th = sortable_column Flyboy::Goal.model_name.human, column: "goal" th = sortable_column Flyboy::Task.model_name.human, column: "title" th = Flyboy::Task.human_attribute_name(:progress) th = sortable_column Flyboy::Task.human_attribute_name(:term), column: "term" th = t("actions.label") tbody - tasks.each do |task| tr.task id="task_#{task.id}" class=task_color(task) - unless nested td.goal - if can?(:read, task.goal) = link_to task.goal.title, goal_path(task.goal) - else = task.goal.title td.title - if can?(:read, task) = link_to task.title, task_path(task) - else = task.title td.task_progress = progress_bar percentage: task.progress, label: true td.term = l task.term td.actions - if can?(:update, task) = update_button edit_task_path(task) - if can?(:snooze, task) = snooze_button snooze_task_path(task) - if can?(:complete, task) = complete_button complete_task_path(task)
Version data entries
5 entries across 5 versions & 1 rubygems