Sha256: 945c1c2e161c392dd4878aa35be53b22b125463109f23cec5f7152ad7434c07a
Contents?: true
Size: 726 Bytes
Versions: 2
Compression:
Stored size: 726 Bytes
Contents
- @sub_tabs = %w(kthxbye redis keys) %h2 Stats for #{params[:id] || params[:key] || "kthxbye"} %p - if params[:key] - type = Kthxbye.redis.type(params[:key]) = type == "list" ? "<span style='color:red'>No support for displaying redis lists</span>" : partial(type) - elsif !params[:id] || params[:id] == "kthxbye" %table - Kthxbye.inspect.each do |k,v| %tr %td=k %td=v - elsif params[:id] == "redis" %table - Kthxbye.redis.info.each do |k,v| %tr %td=k %td=v - elsif params[:id] == "keys" %table - Kthxbye.keys.each do |key| %tr %td %a{:href => "/stats/keys/#{key}"} =key
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
kthxbye-1.3.2 | lib/kthxbye/web_interface/views/stats.haml |
kthxbye-1.3.0 | lib/kthxbye/web_interface/views/stats.haml |