Sha256: 5a6408d6d61fdcddba345436c151f1b48051f9ebcead434ea41079297dd201d1

Contents?: true

Size: 952 Bytes

Versions: 1

Compression:

Stored size: 952 Bytes

Contents

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")

Version data entries

1 entries across 1 versions & 1 rubygems

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