Sha256: 61ce355d9795b64e48f5983a080c560ceb13914e1a682772a511ffe2c4741912
Contents?: true
Size: 1.48 KB
Versions: 6
Compression:
Stored size: 1.48 KB
Contents
<%= File.read(File.join(File.dirname(__FILE__), 'views', 'assets', 'styles.css')) %> <header class="row"> <div class="span5"> <h3>Active Locks</h3> </div> </header> <div class="container-fluid sidetiq-container"> <div class="row-fluid"> <%= erb File.read(File.join(File.dirname(__FILE__), 'views', '_home_nav.erb')) %> <div class="span9"> <% if @locks.length > 0 %> <table class="table table-striped table-bordered table-white" style="width: 100%; margin: 0; table-layout:fixed;"> <thead> <th style="width: 20%">Key</th> <th style="width: 30%">Owner Node</th> <th style="width: 10%">Timetamp</th> <th style="width: 10%">TTL</th> <th style="width: 10%">Actions</th> </thead> <% @locks.each do |meta| %> <% pttl = meta.pttl %> <tr> <td><%= meta.key %></td> <td><%= meta.owner %></td> <td><%= meta.timestamp.to_i %></td> <td> <%= pttl / 1000 %> s </td> <td> <form action="<%= "#{root_path}sidetiq/#{meta.key}/unlock" %>" method="post"> <input class="btn btn-danger btn-small" type="submit" name="trigger" value="Unlock" data-confirm="Are you sure you want remove this lock?" /> </form> </td> </tr> <% end %> </table> <% else %> <div class="alert alert-success">No locks set.</div> <% end %> </div> </div> </div>
Version data entries
6 entries across 6 versions & 1 rubygems