Sha256: 66b5252865ca6fa97e1a48815c0e80b8ba6163e0c3c5e7c0ff816c507d5b2088
Contents?: true
Size: 1.31 KB
Versions: 1
Compression:
Stored size: 1.31 KB
Contents
<% @subtabs = %w( resque_admin redis keys ) %> <% if params[:key] %> <%= partial resque_admin.redis.type(params[:key]).eql?("string") ? :key_string : :key_sets %> <% elsif params[:id] == "resque_admin" %> <h1><%= resque_admin %></h1> <table class='stats'> <% for key, value in resque_admin.info.to_a.sort_by { |i| i[0].to_s } %> <tr> <th> <%= key %> </th> <td> <%= value %> </td> </tr> <% end %> </table> <% elsif params[:id] == 'redis' %> <h1><%= resque_admin.redis_id %></h1> <table class='stats'> <% for key, value in resque_admin.redis.info.to_a.sort_by { |i| i[0].to_s } %> <tr> <th> <%= key %> </th> <td> <%= value %> </td> </tr> <% end %> </table> <% elsif params[:id] == 'keys' %> <h1>Keys owned by <%= resque_admin %></h1> <p class='sub'>(All keys are actually prefixed with "<%= ResqueAdmin.redis.namespace %>:")</p> <table class='stats'> <tr> <th>key</th> <th>type</th> <th>size</th> </tr> <% for key in resque_admin.keys.sort %> <tr> <th> <a href="<%=u "/stats/keys/#{key}" %>"><%= key %></a> </th> <td><%= resque_admin.redis.type key %></td> <td><%= redis_get_size key %></td> </tr> <% end %> </table> <% else %> <% end %>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
resque_admin-2.4.4 | lib/resque_admin/server/views/stats.erb |