Sha256: 306a78ba3a62a2d45eb5d339827d86a6b32e689c0bac6d7ff2130ffc0e2a4b11
Contents?: true
Size: 1.95 KB
Versions: 2
Compression:
Stored size: 1.95 KB
Contents
.row #queue = render partial: 'list', locals: { jobs: @jobs } .col-md-8.job-status #job .lead= job_title(@job) .job-state.inline-block .left state .right{ class: @job.state.to_s } = @job.state .priority.pull-right = form_for(@job, as: :job, url: job_path(@job), html: {method: :patch}) do |f| .input-group.priority-group = f.text_field(:priority, class: 'form-control') .input-group-btn-vertical %button#increase_priority.btn.btn-default.up{ type: 'button' } %i.fa.fa-caret-up %button#decrease_priority.btn.btn-default.down{ type: 'button' } %i.fa.fa-caret-down = submit_tag "set", class: "btn btn-sm btn-primary priority-set" .job-actions.btn-group.pull-right{ style: 'margin-right: 1em;' } - valid_events = @job.aasm.events.collect{ |e| e.name } - if valid_events.include?(:abort) = job_action_link('abort', rocket_job_mission_control.abort_job_path(@job), :patch) - if @job.completed? || @job.aborted? = job_action_link('destroy', rocket_job_mission_control.job_path(@job), :delete) - if valid_events.include?(:fail) = job_action_link('fail', rocket_job_mission_control.fail_job_path(@job), :patch) - if valid_events.include?(:pause) = job_action_link('pause', rocket_job_mission_control.pause_job_path(@job), :patch) - if valid_events.include?(:resume) = job_action_link('resume', rocket_job_mission_control.resume_job_path(@job), :patch) - if valid_events.include?(:retry) = job_action_link('retry', rocket_job_mission_control.retry_job_path(@job), :patch) - if @job.failed? && @job.kind_of?(RocketJob::SlicedJob) = link_to("view errors", job_failures_path(@job), class: 'btn btn-default') .clearfix = render partial: 'status', locals: { job: @job }
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rocketjob_mission_control-1.2.1 | app/views/rocket_job_mission_control/jobs/show.html.haml |
rocketjob_mission_control-1.2.0 | app/views/rocket_job_mission_control/jobs/show.html.haml |