Sha256: be9cd6ffd4c8f4014d14aede5399b186a18122725388989df74288f9850cb6f1

Contents?: true

Size: 1.62 KB

Versions: 5

Compression:

Stored size: 1.62 KB

Contents

<div class="row">
  <div class="small-12 medium-8 columns">
    <h1><%= @list.total %> Scheduled Job<%= @list.total == 1 ? "" : "s" %></h1>
  </div>
  <div class="small-12 medium-4 columns">
    <%== erb :_search %>
  </div>
</div>
<div class="row">
  <div class="small-12 columns">
    <table>
      <thead>
        <tr>
          <th>Run At</th>
          <th>Job</th>
          <th>Queue</th>
          <th>Args</th>
          <th></th>
          <th></th>
        </tr>
      </thead>
      <tbody>
        <% @list.page_jobs.each do |job| %>
          <tr>
            <td>
              <a href="<%= link_to "jobs/#{job.job_id}" %>"><%== relative_time job.run_at %></a>
              <%== erb :_past_due, locals: {job: job}%>
            </td>
            <td><%= job.job_class %></td>
            <td><%= job.queue %></td>
            <td><pre><%= format_args job %></pre></td>
            <td>
              <form action="<%= link_to "jobs/#{job.job_id}" %>" method="post">
                <input type="hidden" name="_method" value="put" />
                <button class="plain" title="Run Immediately"><i class="fa fa-play-circle"></i></button>
              </form>
            </td>
            <td>
              <form action="<%= link_to "jobs/#{job.job_id}" %>" method="post">
                <input type="hidden" name="_method" value="delete" />
                <button class="plain" title="Delete"><i class="fa fa-trash"></i></button>
              </form>
            </td>
          </tr>
        <% end %>
      </tbody>
    </table>
  </div>
</div>
<div class="row">
  <div class="small-12 columns">
    <%== erb :_pager %>
  </div>
</div>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
que-web-0.6.3 web/views/scheduled.erb
que-web-0.6.2 web/views/scheduled.erb
que-web-0.6.1 web/views/scheduled.erb
que-web-0.6.0 web/views/scheduled.erb
que-web-0.5.0 web/views/scheduled.erb