Sha256: b43de7f3173e38163223c8baa5d98efd86032095ca42daac2b7e55dbfe376f28

Contents?: true

Size: 615 Bytes

Versions: 8

Compression:

Stored size: 615 Bytes

Contents

- unless @background_jobs.blank?
  #background_jobs
    .label
      = fa_icon("caret-down")
      = pluralize(@background_jobs_count, "Running Job")
    .background_jobs_container
      %ul
        - @background_jobs.each do |product|
          %li
            - max_length = 20
            %p
              Processing Amazon data for
              %span.product_name
                = "#{product.name[0..max_length]}#{"..." if product.name.length > max_length}"
        - difference = @background_jobs_count - @background_jobs.count
        - if difference > 0
          %li
            %p And #{difference} more

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
cd2_catton_cms-1.1.35 app/views/c/admin/_background_jobs_dropdown.html.haml
cd2_catton_cms-1.1.34 app/views/c/admin/_background_jobs_dropdown.html.haml
cd2_catton_cms-1.1.33 app/views/c/admin/_background_jobs_dropdown.html.haml
cd2_catton_cms-1.1.32 app/views/c/admin/_background_jobs_dropdown.html.haml
cd2_catton_cms-1.1.31 app/views/c/admin/_background_jobs_dropdown.html.haml
cd2_catton_cms-1.1.30 app/views/c/admin/_background_jobs_dropdown.html.haml
cd2_catton_cms-1.1.20 app/views/c/admin/_background_jobs_dropdown.html.haml
cd2_catton_cms-1.1.10 app/views/c/admin/_background_jobs_dropdown.html.haml