Sha256: 48236dd974b40af232708bee3394a9a9a770d82b7fdfbfba9b9a7497e0ddb553

Contents?: true

Size: 1.34 KB

Versions: 11

Compression:

Stored size: 1.34 KB

Contents

<% content_for :title do %>
<h1 class="project-banner space-below">
  Jobs
</h1>
<% end %>

<% if $scheduler %>
  <p><b>Status:</b> <%= $scheduler.up? ? "Up (Started #{$scheduler.started_at})" : "Down" %></p>

  <div class="nomargin">
    <table id="jobs" class="table table-sortable table-striped">
      <thead>
        <tr>
          <td class="table-margin"></td>
          <th class="scheduler-job-name">Name</th>
          <th class="scheduler-job-schedule">Schedule</th>
          <th class="scheduler-job-run-now"></th>
          <td class="table-margin"></td>
        </tr>
      </thead>
      <tbody>
        <% $scheduler.jobs.each do |job| %>
          <tr class="scheduler-job">
            <td class="table-margin"></td>
            <td class="scheduler-job-name"><%= job.tags.first %></td>
            <td class="scheduler-job-schedule"><%= job.original %></td>
            <td class="scheduler-job-run-now">
              <%= button_to "Run now", run_job_path(slug: job.tags.first), :class => "btn btn-default" %>
            </td>
            <td class="table-margin"></td>
          </tr>
        <% end %>
      </tbody>
    </table>
  </div>

<% else %>
  <p><b>Status:</b> Unavailable</p>
<% end %>


<% content_for :javascripts do %>
  <script type="text/javascript">
    $(function() {
      $('#jobs').tablesorter();
    });
  </script>
<% end %>

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
houston-core-0.6.3 app/views/jobs/show.html.erb
houston-core-0.6.2 app/views/jobs/show.html.erb
houston-core-0.6.1 app/views/jobs/show.html.erb
houston-core-0.6.0 app/views/jobs/show.html.erb
houston-core-0.5.6 app/views/jobs/show.html.erb
houston-core-0.5.5 app/views/jobs/show.html.erb
houston-core-0.5.4 app/views/jobs/show.html.erb
houston-core-0.5.3 app/views/jobs/show.html.erb
houston-core-0.5.2 app/views/jobs/show.html.erb
houston-core-0.5.1 app/views/jobs/show.html.erb
houston-core-0.5.0 app/views/jobs/show.html.erb