Sha256: 878dd8e82c3e118d21ba8aa06ac1a7313325e022022ae96b9eb3b32ca7b3b0db

Contents?: true

Size: 1.67 KB

Versions: 1

Compression:

Stored size: 1.67 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= format_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?, data: { confirm: 'Are you sure?' }
      #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

1 entries across 1 versions & 1 rubygems

Version Path
kuroko2-0.3.2 app/views/kuroko2/job_instances/_instance.html.slim