Sha256: 55fb8b33a5f77b623bdab854451cb4c0ea9125af54d541fd9b7f7e0234f2a1d3

Contents?: true

Size: 1.67 KB

Versions: 3

Compression:

Stored size: 1.67 KB

Contents

- if unmanaged_files
  %div
    %a.scope_anchor{ id: "unmanaged_files" }
    .scope#unmanaged_files_container{ "data-scope" => "unmanaged_files" }
      - count = unmanaged_files.length
      = render_partial "scope_header",
        :scope => "unmanaged_files",
        :title => "Unmanaged Files",
        :count => "#{count} #{Machinery.pluralize(count, "file")}"
      .row.scope_content.collapse.in
        .col-xs-1
        .col-xs-11
          %p
            <strong>Files extracted:</strong> #{unmanaged_files.extracted ? "yes" : "no"}
          - if count == 0
            There are no unmanaged files.
          - if count > 0
            %table.table.table-striped.table-hover.table-condensed.files-table.filterable
              %thead
                %tr
                  %th Name
                  %th.medium Type
                  - if unmanaged_files.has_metadata
                    %th.medium Mode
                    %th.medium User
                    %th.medium Group
                    %th.medium Size
                    %th.medium Files in dir.
              %tbody
                - unmanaged_files.each do |file|
                  %tr
                    %td
                      - if file.on_disk?
                        %a.file-download{ href: "#" }
                          = file.name
                      - else
                        %span
                          = file.name
                    %td= file.type
                    - if unmanaged_files.has_metadata
                      %td= file.mode
                      %td= file.user
                      %td= file.group
                      %td= number_to_human_size(file.size)
                      %td= file.files

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
machinery-tool-1.20.0 html/partials/unmanaged_files.html.haml
machinery-tool-1.19.0 html/partials/unmanaged_files.html.haml
machinery-tool-1.18.0 html/partials/unmanaged_files.html.haml