Skip to content

Commit

Permalink
added server count to admin dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
kacole2 committed Nov 21, 2013
1 parent ee500ad commit bba62bf
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/controllers/admin_dashboard_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def admindashboard



@jumpsquare_rdp_count = Jumpsquare.count(:all, :conditions => { :remotetype => 'rpd' })
@jumpsquare_rdp_count = Jumpsquare.count(:all, :conditions => { :remotetype => 'rdp' })
@jumpsquare_ssh_count = Jumpsquare.count(:all, :conditions => { :remotetype => 'ssh' })
@jumpsquare_vnc_count = Jumpsquare.count(:all, :conditions => { :remotetype => 'vnc' })
end
Expand Down
15 changes: 14 additions & 1 deletion app/views/admin_dashboard/admindashboard.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,20 @@
<li class="list-group-item">
<span class="badge"><%= @jumpsquare_count %></span>
JumpSquare Count
</ul>
</li>
<li class="list-group-item">
<span class="badge"><%= @jumpsquare_rdp_count %></span>
Server as RDP
</li>
<li class="list-group-item">
<span class="badge"><%= @jumpsquare_ssh_count %></span>
Server as SSH
</li>
<li class="list-group-item">
<span class="badge"><%= @jumpsquare_vnc_count %></span>
Server as VNC
</li>
</ul>
</div>
</div>
</div>
Expand Down

0 comments on commit bba62bf

Please sign in to comment.