Sha256: cf94d97acfdc532ed741a50db47f3778c441a0b09995f1fb1f946f62b75fb618

Contents?: true

Size: 1.95 KB

Versions: 7

Compression:

Stored size: 1.95 KB

Contents

<div class="border-bottom">
  <h2 class="pt-3 pb-2"><%= t ".title" %></h2>
</div>

<%= render 'good_job/shared/chart', chart_data: GoodJob::PerformanceIndexChart.new.data %>

<div class="my-3 card">
  <div class="list-group list-group-flush text-nowrap" role="table">
    <header class="list-group-item bg-body-tertiary">
      <div class="row small text-muted text-uppercase align-items-center">
        <div class="col-12 col-lg-4"><%= t ".job_class" %></div>
        <div class="col-lg-2 d-none d-lg-block"><%= t ".executions" %></div>

        <div class="col-lg-2 d-none d-lg-block"><%= t ".average_duration" %></div>
        <div class="col-lg-2 d-none d-lg-block"><%= t ".minimum_duration" %></div>
        <div class="col-lg-2 d-none d-lg-block"><%= t ".maximum_duration" %></div>
      </div>
    </header>

    <% @performances.each do |performance| %>
      <div role="row" class="list-group-item py-3">
        <div class="row align-items-center">
          <div class="col-12 col-lg-4"><%= link_to performance.job_class, performance_path(performance.job_class) %></div>
          <div class="col-6 col-lg-2 text-wrap">
            <div class="d-lg-none small text-muted mt-1"><%= t ".executions" %></div>
            <%= performance.executions_count %>
          </div>

          <div class="col-6 col-lg-2 text-wrap">
            <div class="d-lg-none small text-muted mt-1"><%= t ".average_duration" %></div>
            <%= format_duration performance.avg_duration %>
          </div>
          <div class="col-6 col-lg-2 text-wrap">
            <div class="d-lg-none small text-muted mt-1"><%= t ".minimum_duration" %></div>
            <%= format_duration performance.min_duration %>
          </div>
          <div class="col-6 col-lg-2 text-wrap">
            <div class="d-lg-none small text-muted mt-1"><%= t ".maximum_duration" %></div>
            <%= format_duration performance.max_duration %>
          </div>
        </div>
      </div>
    <% end %>
  </div>
</div>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
good_job-4.4.1 app/views/good_job/performance/index.html.erb
good_job-4.4.0 app/views/good_job/performance/index.html.erb
good_job-4.3.0 app/views/good_job/performance/index.html.erb
good_job-4.2.1 app/views/good_job/performance/index.html.erb
good_job-4.2.0 app/views/good_job/performance/index.html.erb
good_job-4.1.1 app/views/good_job/performance/index.html.erb
good_job-4.1.0 app/views/good_job/performance/index.html.erb