Sha256: f3ef4b8219a1e3ecd7beba44deddcd4ea029e4da554eb7d004acdb382bd5ec22

Contents?: true

Size: 525 Bytes

Versions: 4

Compression:

Stored size: 525 Bytes

Contents

.ui.active.segment

  %h4.ui.header
    .content Stats

  %table.ui.compact.table
    %thead
      %tr
        - stats.first.keys.each do |key|
          %th= key.titleize
    %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)
            - elsif ['total_query_time', 'avg_query'].include? k
              %td= humanize_ms(v.to_i)
            - else
              %td= v

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
pgbouncerhero-1.0.1 app/views/pg_bouncer_hero/database/_stats.html.haml
pgbouncerhero-1.0.0 app/views/pg_bouncer_hero/database/_stats.html.haml
pgbouncerhero-0.1.1 app/views/pg_bouncer_hero/database/_stats.html.haml
pgbouncerhero-0.1.0 app/views/pg_bouncer_hero/database/_stats.html.haml