Sha256: e73c45fa9bb90f28ef84a85b0a2b6253625a83cd1c1b3af4e0a69fc9828cf4ac

Contents?: true

Size: 1.23 KB

Versions: 1

Compression:

Stored size: 1.23 KB

Contents

table
  thead
    tr
      - unless nested
        th.hidden-xs
          = sortable_column Flyboy::Goal.model_name.human, column: "goal"
      th
        = sortable_column Flyboy::Task.model_name.human, column: "title"
      th.hidden-xs
        = sortable_column Flyboy::Task.human_attribute_name(:progress), column: "progress"
      th.hidden-xs
        = 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.hidden-xs
            - 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.hidden-xs
          = progress_bar percentage: task.progress, label: true

        td.term.hidden-xs
          = l(task.term)

        td.actions
          - if can?(:snooze, task)
            = snooze_button snooze_task_path(task)

          - if can?(:complete, task)
            = complete_button complete_task_path(task)

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
flyboy-1.0.7 app/views/flyboy/tasks/_list.html.slim