Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
95 lines (85 sloc) 3.42 KB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>DCell Explorer</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="An interactive explorer for distributed systems built with DCell">
<meta name="author" content="Tony Arcieri">
<!-- Le styles -->
<link href="/css/bootstrap.css" rel="stylesheet">
<link href="/css/bootstrap-responsive.css" rel="stylesheet">
<link href="/css/explorer.css" rel="stylesheet">
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<link rel="shortcut icon" href="/ico/favicon.ico">
</head>
<body>
<div class="navbar navbar-fixed-top">
<div class="navbar-inner">
<div class="container-fluid">
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</a>
<a class="brand" href="/"><img src="/img/logo.png" alt="DCell Explorer"></a>
<div class="nav-collapse">
<p class="navbar-text pull-right">Connected to <a href="<%= node_path(DCell.me) %>"><%= DCell.id %></a></p>
</div><!--/.nav-collapse -->
</div>
</div>
</div>
<div class="container-fluid">
<div class="row-fluid">
<div class="span3">
<div class="well sidebar-nav">
<ul class="nav nav-list">
<li class="nav-header">Nodes</li>
<% DCell::Node.each do |node| %>
<li<%= ' class="active"' if node == @node %>>
<a href="<%= node_path(node) %>"><span class="status status-small status-ok"></span> <%= node.id %></a>
</li>
<% end %>
</ul>
</div><!--/.well -->
</div><!--/span-->
<div class="span9">
<div class="hero-unit">
<h1><div class="status status-large status-ok"></div> <%= @info[:hostname] %></h1>
<br>
<h2>Uptime: <%= @info[:uptime] %> days</h2>
<h2>Load average: <%= @info[:load_averages].join(", ") %></h2>
</div>
<div class="row-fluid">
<div class="span4">
<h2>System Info</h2>
<ul>
<li><%= @info[:cpu][:type] %> @ <%= @info[:cpu][:speed] %>Ghz (<%= @info[:cpu][:count] %> cores)</li>
<li><%= @info[:cpu][:arch] %> CPU architecture</li>
<li><%= @info[:distribution] %></li>
</ul>
</div><!--/span-->
<div class="span4">
<h2>Ruby Interpreter</h2>
<ul>
<li><%= @info[:ruby_engine] == "ruby" ? "MRI/YARV" : @info[:ruby_platform] %></li>
<li>Ruby <%= @info[:ruby_version] %></li>
</ul>
</div><!--/span-->
</div><!--/row-->
</div><!--/span-->
</div><!--/row-->
<hr>
<footer>
<p>&copy; Tony Arcieri 2012</p>
</footer>
</div><!--/.fluid-container-->
<!-- Le javascript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>
</body>
</html>
Something went wrong with that request. Please try again.