Sha256: af419f88f6e833b25f7ed0857600a629ae9ecf80dac5c735dd123360e83e8178

Contents?: true

Size: 1.44 KB

Versions: 2

Compression:

Stored size: 1.44 KB

Contents

<div class="row">
  <div class="small-12 columns">
    <h1><%= @list.total %> Scheduled Job<%= @list.total == 1 ? "" : "s" %></h1>
  </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="<%= to "jobs/#{job.job_id}" %>"><%== relative_time job.run_at %></a></td>
            <td><%= job.job_class %></td>
            <td><%= job.queue %></td>
            <td><pre><%= format_args job %></pre></td>
            <td>
              <form action="<%= 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="<%= 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

2 entries across 2 versions & 1 rubygems

Version Path
que-web-0.3.1 web/views/scheduled.erb
que-web-0.3.0 web/views/scheduled.erb