Sha256: cbed44f359e226a1ca93eb33b881ca06845af739e3b03bbf95619a1c29779545
Contents?: true
Size: 1.21 KB
Versions: 54
Compression:
Stored size: 1.21 KB
Contents
<%= render_file('common/header.html.erb', title: 'Keys') %> <% path = ENV['kv_path'] || '' %> <% require 'base64' require 'json' require 'date' %> <main class="container"> <div> <h1>Show all keys <%= path == '' ? '' : "under hierarchy #{path}" %></h1> <div id="accordion"> <% kv(path, recurse:true).each do |tuple| key = tuple['Key'] val = "NO_VALUE" if !tuple['Value'].nil? begin val = Base64.decode64(tuple['Value']) rescue StdError => e val = "#{e.inspect} for tuple['Value']" end end %> <div class="card"> <div class="card-header" id="heading-<%= key %>"> <h5 class="mb-0"> <a href="#<%= key %>" class="btn btn-link collapsed" data-toggle="collapse" data-target="#collapse-<%= key %>" aria-expanded="true" aria-controls="collapse-<%= key %>"> <%= key %> </a> </h5> <div id="collapse-<%= key %>" class="collapse" aria-labelledby="heading-<%= key %>" data-parent="#accordion"> <div class="card-body"> <pre class="pre-scrollable"><%= ERB::Util.html_escape(val) %></pre> </div> </div> </div> </div> <% end %> </div> </div> </main> <%= render_file 'common/footer.html.erb' %>
Version data entries
54 entries across 54 versions & 1 rubygems