server/lib/minicron/hub/views/jobs/index.erb
<header class="clearfix">
<h2 class="pull-left">Jobs</h2>
<a href="<%= "#{route_prefix}/jobs/new" %>" class="pull-right btn btn-success btn-sm">Add New Job</a>
</header>
<hr/>
<% if @jobs.length > 0 %>
<table class="table table-striped table-hover">
<thead>
<tr>
<th>Name</th>
<th>Executions</th>
<th>Actions</th>
</tr>
</thead>
<tbody>
<% @jobs.each do |job| %>
<tr>
<td><%= job.safe_name %></td>
<td><%= job.executions_count %></td>
<td>
<a href="<%= "#{route_prefix}/job/#{job.id}" %>" class="pull-left btn btn-info btn-xs">View</a>
<a href="<%= "#{route_prefix}/job/#{job.id}/edit" %>" class="pull-left btn btn-warning btn-xs">Edit</a>
<a href="<%= "#{route_prefix}/job/#{job.id}/delete" %>" class="pull-left btn btn-danger btn-xs">Delete</a>
</th>
</tr>
<% end %>
</tbody>
</table>
<% end %>