Sha256: e43ffebd619387410cfa3226f66a94418f9486a44aedb1cce2c6999a5a9d7555

Contents?: true

Size: 1.39 KB

Versions: 2

Compression:

Stored size: 1.39 KB

Contents

.col-md-4.job-list
  .filter.btn-group.btn-group-justified{ style: 'padding: 1px 1px 1px 1px;', data: { toggle: 'buttons' } }
    - %w( queued running failed completed ).each do |state|
      %label.btn.btn-default.state-toggle{ class: ('active' if @states.include?(state.to_s) || @states.empty?), title: state.capitalize}
        = check_box_tag(state, state, (@states.include?(state.to_s) || @states.empty?))
        %i.fa{class: job_state_icon(state.to_sym)}
  .clearfix
  .list
    - if jobs.empty?
      .card.inner
        .title
          .lead.text-center No Jobs Found.
    - else
      - jobs.each do |job|
        = link_to job_path(id: job.id, states: @states), class: job_card_class(job) do
          .inner
            .title
              .lead{class: job_selected_class(job, @job)}
                %i.fa{class: job_state_icon(job.state), style: 'font-size: 75%;', title: job.state}
                = job_title(job)

            .description= job.description.try(:truncate, 50)
            .info
              .duration.pull-left
                - if job.failed?
                  %i.fa.fa-bomb
                  failed
                - else
                  %i.fa.fa-clock-o
                  = job.duration
              - if job.running?
                .progress.pull-right
                  .progress-bar{ style: "width: #{job.percent_complete}%;", title: "#{job.percent_complete}% percent complete."}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rocketjob_mission_control-1.0.0 app/views/rocket_job_mission_control/jobs/_list.html.haml
rocketjob_mission_control-0.9.2 app/views/rocket_job_mission_control/jobs/_list.html.haml