Sha256: f91e16a53269b40237bf504871ac297e1e4adbac77b257439e666583f7510dc8

Contents?: true

Size: 1.48 KB

Versions: 2

Compression:

Stored size: 1.48 KB

Contents

<% if @jobs.size == 0 %>
  <p> There have been no 
  <%= params[:name] == "0" ? "" : "'#{params[:name]}'" %> jobs scheduled 
  <%= params[:days].to_i == 1 ? "today." : 
      "within the last #{params[:days]} days." %> </p>
<% else %>
  <table>
    <tr class="head">
      <%= job_header "Id",     "id" %>
      <%= job_header "Name",   "name" %>
      <%= job_header "Type",   "type" %>
      <%= job_header "Level",  "level" %>
      <%= job_header "Status", "status" %>
      <%= job_header "Bytes",  "bytes" %>
      <%= job_header "Rate",   "rate" %>
      <%= job_header "Time",   "time" %>
      <%= job_header "Sched",  "sched" %>
      <%= job_header "Start",  "start" %>
      <%= job_header "Finish", "finish" %>
    </tr>

    <% @jobs.each_with_index do |job, n| %>
      <tr class="nowrap <%= n.odd? ? "gray" : "blue" %>">
        <td> <%= link_to job.jobid, :action=>:show, :jid=>job.jobid %> </td>
        <td> <%= link_to job.name, :action=>:last, :name=>job.name %> </td>
        <td> <%= type_name(job.type) %> </td>
        <td> <%= level_name(job.level) %> </td>
        <%= status_style job.jobstatus %>
        <td class="right"> <%= human_size_if_nz(job.jobbytes) %> </td>
        <td class="right"> <%= human_size_if_nz(job.rate.to_i) %> </td>
        <td class="right"> <%= job.time %> </td>
        <td> <%= when_full(job.schedtime) %> </td>
        <td> <%= when_tiny(job.starttime) %> </td>
        <td> <%= when_tiny(job.endtime) %> </td>
      </tr>
    <% end %>
  </table>
<% end %>

Version data entries

2 entries across 1 versions & 1 rubygems

Version Path
bacuview-1.5 app/views/job/index.rhtml
bacuview-1.5 app/views/job/spec.rhtml