Sha256: 21177bf69d95363324a334d37f7e6eda3df6b9f755eb20029658b62c2671f333

Contents?: true

Size: 1.36 KB

Versions: 6

Compression:

Stored size: 1.36 KB

Contents

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

        td.title
          - if can?(:read, task)
            = link_to task.title, task_path(task)
          - else
            = task.title

        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

6 entries across 6 versions & 1 rubygems

Version Path
flyboy-0.0.6 app/views/flyboy/tasks/_list.html.slim
flyboy-0.0.5 app/views/flyboy/tasks/_list.html.slim
flyboy-0.0.4 app/views/flyboy/tasks/_list.html.slim
flyboy-0.0.3 app/views/flyboy/tasks/_list.html.slim
flyboy-0.0.2 app/views/flyboy/tasks/_list.html.slim
flyboy-0.0.1 app/views/flyboy/tasks/_list.html.slim