hide data in delayed job listing

This commit is contained in:
albert
2013-02-17 13:13:11 -05:00
parent 2392684862
commit 3d5c47afe3
2 changed files with 10 additions and 6 deletions

View File

@@ -3,7 +3,9 @@
<table class="striped" width="100%">
<thead>
<tr>
<th>Handler</th>
<% if CurrentUser.is_admin? %>
<th>Handler</th>
<% end %>
<th>Attempts</th>
<th>Priority</th>
<th>Last error</th>
@@ -14,7 +16,9 @@
<tbody>
<% @delayed_jobs.each do |job| %>
<tr>
<td><%= job.handler %></td>
<% if CurrentUser.is_admin? %>
<td><%= job.handler %></td>
<% end %>
<td><%= job.attempts %></td>
<td><%= job.priority %></td>
<td><%= job.last_error %></td>