Sha256: 99630bf20bc8cdd86e3f0101a8e76873ecb87573e9d96a9d259a46158b17807a

Contents?: true

Size: 1.44 KB

Versions: 1

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

1 entries across 1 versions & 1 rubygems

Version Path
que-web-0.3.2 web/views/scheduled.erb