app/views/errors/index.html.erb
<% content_for :title do %>
<h1 class="project-banner space-below">
Errors
</h1>
<% end %>
<div class="nomargin action-errors">
<table id="errors" class="table table-sortable table-striped">
<thead>
<tr>
<td class="table-margin"></td>
<th class="action-created">Queued</th>
<th class="action-name">Action</th>
<th class="action-started">Started</th>
<th class="action-finished">Finished</th>
<th class="action-duration">Duration</th>
<th class="action-trigger">Trigger</th>
<th class="action-params">Params</th>
<td class="action-succeeded"></td>
<th class="action-exception">Exception</th>
<% if can?(:run, Action) %>
<th class="action-retry">Retry</th>
<% end %>
<td class="table-margin"></td>
</tr>
</thead>
<tbody class="infinite-scroll">
<%= render "actions/actions" %>
</tbody>
</table>
</div>
<% content_for :javascripts do %>
<script type="text/javascript">
$(function() {
$('#errors')
.tablesorter()
.on('click', '.action-params-short', function() {
$(this).next().modal();
});
});
new InfiniteScroll({
load: function($tbody) {
var timestamp = $tbody.find('.action:last').attr('data-timestamp');
return $.get(window.location.pathname, {before: timestamp});
}
});
</script>
<% end %>