diff --git a/lib/resque/server/views/status_styles.erb b/lib/resque/server/views/status_styles.erb index 4b4452e..7cd46d6 100644 --- a/lib/resque/server/views/status_styles.erb +++ b/lib/resque/server/views/status_styles.erb @@ -95,4 +95,25 @@ color: #B84F16; font-weight: bold; } + + a.status-info{ + position:relative; + z-index:24; background-color:#fff; + color:#000; + text-decoration:none} + + a.status-info:hover{z-index:25; background-color:#ff0} + + a.status-info span{display: none} + + a.status-info:hover span{ + display:block; + position:absolute; + top:2em; left:3em; + width:35em; + border:1px solid #0cf; + background-color:#ddd; + color:#333; + text-align: center} + diff --git a/lib/resque/server/views/statuses.erb b/lib/resque/server/views/statuses.erb index b30378b..c3df289 100644 --- a/lib/resque/server/views/statuses.erb +++ b/lib/resque/server/views/statuses.erb @@ -27,14 +27,23 @@ <% @statuses.each do |status| %> <%= status.uuid %> - <%= status.name %> + + <% unless status.name.blank? %> + <%= "#{status.name[0, 30]} #{"..." unless status.name.length <= 30} #{status.name[-5,5] unless status.name.length <= 30}" %> <%= status.name %> + <% end %> + <%= status.status %> <%= status.time.strftime("%Y/%m/%d %H:%M:%S %z") %>
 
<%= status.pct_complete ? "#{status.pct_complete}%" : '' %>
- <%= status.message %> + + <% unless status.message.blank? %> + <%= "#{status.message[0,60]} #{"..." unless status.message.length <= 60} #{status.message[-5,5] unless status.message.length <= 60}" %> <%= status.message %> + <% end %> + + <% if status.killable? %>Kill<% end %> <% end %>