Sha256: 0b711c5b76f65a2437ed5bb5901a7b5480d89b70ffbf53fae7fc3b2ca160753d
Contents?: true
Size: 1.98 KB
Versions: 12
Compression:
Stored size: 1.98 KB
Contents
<div class="container"> <%= render 'redis_web_manager/shared/status' %> <div class="row my-4"> <div class="col-12"> <div class="card"> <div class="card-header"> <h5 class="card-title mb-0"> Keys </h5> </div> <div class="card-body p-0"> <a class="btn btn-link p-2" data-toggle="collapse" href="#search" role="button" aria-expanded="false" aria-controls="search"> View search </a> <div class="collapse" id="search"> <%= render partial: 'redis_web_manager/keys/search' %> </div> <div class="table-responsive"> <table class="table mb-0"> <thead> <tr> <th>Name</th> <th>Expiration Date</th> <th>Size</th> <th>Type</th> <th>Options</th> </tr> </thead> <tbody> <% @keys.each do |key| %> <tr> <td><%= link_to (key[:key]).truncate(45), key_path(key: key[:key]), title: "Show #{key[:key]}" %></td> <td><%= expiry(key[:expiry]) %></td> <td><code><%= number_to_human_size(key[:memory]) %></code></td> <td><kbd class="bg-dark"><%= key[:type] %></kbd></td> <td> <%= link_to 'Edit', edit_key_path(key: key[:key]), title: "Edit #{key[:key]}", class: 'btn btn-sm btn-primary' %> <%= link_to 'Delete', destroy_key_path(key: key[:key]), method: :delete, data: {confirm: 'Are you sure ?'}, title: "Delete #{key[:key]}", class: 'btn btn-sm btn-danger ml-2' %> </td> </tr> <% end %> </tbody> </table> </div> </div> </div> <div class="d-flex align-items-center justify-content-center mt-3"> <%= pagy_bootstrap_nav(@pagy).html_safe %> </div> </div> </div> </div>
Version data entries
12 entries across 12 versions & 1 rubygems