Sha256: 6c05b9ade9aa761696a8c825d1e71282f60dbaa860aba75680a2d19ff33404df

Contents?: true

Size: 1.62 KB

Versions: 8

Compression:

Stored size: 1.62 KB

Contents

-status = server_status
-background_flushing = status.delete("backgroundFlushing")
-global_lock = status.delete("globalLock")
-network = status.delete("network")
-mem = status.delete("mem")
-ops = status.delete("opcounters")

%div.status_page(data-role="page")
  %div(data-role="header")
    %h1
      Server Status
  %div(data-role="content")
    %div(data-role="collapsible" data-collapsed=true)
      %h1
        Server Status
      -normalize_stats(status).each do |k,v|
        %b
          &="#{k}="
        &=humanize v
        %br

    %div(data-role="collapsible" data-collapsed=true)
      %h1
        Operations Per Second
      #ops

    %div(data-role="collapsible" data-collapsed=true)
      %h1
        Background Flushing
      -normalize_stats(background_flushing).each do |k,v|
        %b
          &="#{k}="
        &=humanize v
        %br

    %div(data-role="collapsible" data-collapsed=true)
      %h1
        Global Lock
      -normalize_stats(global_lock).each do |k,v|
        %b
          &="#{k}="
        &=humanize v
        %br
    %div(data-role="collapsible" data-collapsed=true)
      %h1
        Network
      -normalize_stats(network).each do |k,v|
        %b
          &="#{k}="
        &=humanize v
        %br
    %div(data-role="collapsible" data-collapsed=true)
      %h1
        Memory
      -normalize_stats(mem).each do |k,v|
        %b
          &="#{k}="
        &=humanize v
        %br

    %div(data-role="collapsible" data-collapsed=true)
      %h1
        Operations
      -normalize_stats(ops).each do |k,v|
        %b
          &="#{k}="
        &=humanize v
        %br


  %div(data-role="footer")

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
magent-0.7.0 lib/magent_web/views/status.haml
magent-0.6.2 lib/magent_web/views/status.haml
magent-0.6.1 lib/magent_web/views/status.haml
magent-0.6.0 lib/magent_web/views/status.haml
mongobile-0.1.5 lib/mongobile/views/status.haml
mongobile-0.1.4 lib/mongobile/views/status.haml
mongobile-0.1.3 lib/mongobile/views/status.haml
mongobile-0.1.2 lib/mongobile/views/status.haml