Sha256: 0eee76b6386131bf88583473be1da888f5e6d7826c831639822df75cab8f3173
Contents?: true
Size: 918 Bytes
Versions: 2
Compression:
Stored size: 918 Bytes
Contents
<div class="ui active segment"> <h4 class="ui header"> <div class="content">Stats</div> </h4> <table class="ui compact table"> <thead> <tr> <% stats.first.keys.each do |key| %> <th> <%= key.titleize %> </th> <% end %> </tr> </thead> <tbody> <% stats.each do |row| %> <tr> <% row.each do |k,v| %> <% if ['total_received', 'total_sent', 'avg_recv', 'avg_sent'].include? k %> <td> <%= number_to_human_size(v) %> </td> <% elsif ['total_query_time', 'avg_query'].include? k %> <td> <%= humanize_ms(v.to_i) %> </td> <% else %> <td> <%= v %> </td> <% end %> <% end %> </tr> <% end %> </tbody> </table> </div>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pgbouncerhero-2.0.0 | app/views/pg_bouncer_hero/database/_stats.html.erb |
pgbouncerhero-1.0.3 | app/views/pg_bouncer_hero/database/_stats.html.erb |