1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00
mperham--sidekiq/web/views/dead.erb

35 lines
1.1 KiB
Text
Raw Normal View History

2014-02-09 17:56:01 -05:00
<%= erb :_job_info, :locals => {:job => @dead, :type => :dead} %>
<h3><%= t('Error') %></h3>
<div class="table_container">
<table class="error table table-bordered table-striped">
<tbody>
2014-02-09 17:56:01 -05:00
<tr>
<th><%= t('ErrorClass') %></th>
2014-02-09 17:56:01 -05:00
<td>
<code><%= @dead['error_class'] %></code>
2014-02-09 17:56:01 -05:00
</td>
</tr>
<tr>
<th><%= t('ErrorMessage') %></th>
<td><%= h(@dead['error_message']) %></td>
</tr>
<% if !@dead['error_backtrace'].nil? %>
<tr>
<th><%= t('ErrorBacktrace') %></th>
<td>
<code><%= @dead['error_backtrace'].join("<br/>") %></code>
</td>
</tr>
<% end %>
</tbody>
</table>
</div>
2014-02-09 17:56:01 -05:00
<form class="form-horizontal" action="<%= root_path %>morgue/<%= job_params(@dead, @dead.score) %>" method="post">
<%= csrf_tag %>
2014-02-09 17:56:01 -05:00
<a class="btn btn-default" href="<%= root_path %>morgue"><%= t('GoBack') %></a>
<input class="btn btn-primary" type="submit" name="retry" value="<%= t('RetryNow') %>" />
<input class="btn btn-danger" type="submit" name="delete" value="<%= t('Delete') %>" />
</form>