Sha256: 5120e76fe84e41b2a4cb2879494deb3e354ebf5dec1bb6fa5a0f3c29ef937d8d

Contents?: true

Size: 1.22 KB

Versions: 2

Compression:

Stored size: 1.22 KB

Contents

table#folders-list
  thead
    tr
      th.folder-status
        = sortable_column Dorsale::Flyboy::Folder.t(:status), column: "status"

      th.folder-progress.hidden-xs.hidden-xs
        = sortable_column Dorsale::Flyboy::Folder.t(:progress), column: "progress"

      th.folder-name
        = sortable_column Dorsale::Flyboy::Folder.t, column: "name"

      th.actions
        = t("actions.actions")

  tbody
    - folders.each do |folder|
      tr.folder class=folder_color(folder)
        td.folder-status
          - if folder.status.to_s == "open"
            = icon(:unlock)
          - elsif folder.status.to_s == "closed"
            = icon(:lock)
          - else
            = icon(:question)

          = " "
          = folder.t("status.#{folder.status}")

        td.folder-progress.hidden-xs
          = progress_bar percentage: folder.progress, label: true

        td.folder-name
          - if policy(folder).read?
            = link_to folder, dorsale.flyboy_folder_path(folder)
          - else
            = folder

        td.actions
          - if policy(Dorsale::Flyboy::Task.new(taskable: folder)).create?
            = create_button dorsale.new_flyboy_task_path(taskable_guid: folder.guid), text: t("actions.new_task")

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
dorsale-3.3.0 app/views/dorsale/flyboy/folders/_list.html.slim
dorsale-3.2.0 app/views/dorsale/flyboy/folders/_list.html.slim