Sha256: 0b97f96be48d7415ee27ff57bdec946c9e554dd66e5fb76fed30e74e7b9476de

Contents?: true

Size: 1.61 KB

Versions: 6

Compression:

Stored size: 1.61 KB

Contents

.box#instance data-instance-path="#{naked_job_definition_job_instance_path(@definition, @instance)}"
  .box-header
    h2.box-title
      = link_to "##{@definition.id} #{@definition.name}", job_definition_path(@definition)
  .box-body
    table.table
      tr
        th Status
        td#instance-status= labeled_status(@instance)
      tr
        th Job Definition Version
        td= @instance.job_definition_version || '-'
      tr
        th Max Memory Consumption
        td= @instance.memory_consumption_log ? "#{@instance.memory_consumption_log.value} Kbytes" : '-'
      tr
        th Created at
        td= @instance.created_at || '-'
      tr
        th Finished at
        td= @instance.finished_at || '-'
      tr
        th Elapsed Time
        td
          - if @instance.created_at && @instance.finished_at
            = distance_of_time(@instance.created_at, @instance.finished_at)
          - else
            '-
      tr
        th Canceled at
        td= @instance.canceled_at || '-'
      tr
        th Error at
        td= @instance.error_at || '-'
    h4 Script
    pre.kuroko-script= @instance.script
  .box-footer
    .row
      #cancel-button.col-md-4.col-md-offset-8
        = link_to 'Cancel', job_definition_job_instance_path(@definition, @instance), class: 'btn btn-default btn-block', role: 'button', method: :delete, disabled: !@instance.cancelable?
      #force-cancel-button.col-md-4.col-md-offset-8.display-none
        = link_to 'Force Cancel', force_destroy_job_definition_job_instance_path(@definition, @instance), class: 'btn btn-danger btn-block', role: 'button', method: :delete, disabled: !@instance.working?

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
kuroko2-0.3.1 app/views/kuroko2/job_instances/_instance.html.slim
kuroko2-0.3.0 app/views/kuroko2/job_instances/_instance.html.slim
kuroko2-0.2.3 app/views/kuroko2/job_instances/_instance.html.slim
kuroko2-0.2.2 app/views/kuroko2/job_instances/_instance.html.slim
kuroko2-0.2.1 app/views/kuroko2/job_instances/_instance.html.slim
kuroko2-0.2.0 app/views/kuroko2/job_instances/_instance.html.slim