Fetching contributors…
Cannot retrieve contributors at this time
95 lines (85 sloc) 3.42 KB
<!DOCTYPE html>
<html lang="en">
<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=""></script>
<link rel="shortcut icon" href="/ico/favicon.ico">
<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 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( %>"><%= %></a></p>
</div><!--/.nav-collapse -->
<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> <%= %></a>
<% end %>
</div><!--/.well -->
<div class="span9">
<div class="hero-unit">
<h1><div class="status status-large status-ok"></div> <%= @info[:hostname] %></h1>
<h2>Uptime: <%= @info[:uptime] %> days</h2>
<h2>Load average: <%= @info[:load_averages].join(", ") %></h2>
<div class="row-fluid">
<div class="span4">
<h2>System Info</h2>
<li><%= @info[:cpu][:type] %> @ <%= @info[:cpu][:speed] %>Ghz (<%= @info[:cpu][:count] %> cores)</li>
<li><%= @info[:cpu][:arch] %> CPU architecture</li>
<li><%= @info[:distribution] %></li>
<div class="span4">
<h2>Ruby Interpreter</h2>
<li><%= @info[:ruby_engine] == "ruby" ? "MRI/YARV" : @info[:ruby_platform] %></li>
<li>Ruby <%= @info[:ruby_version] %></li>
<p>&copy; Tony Arcieri 2012</p>
<!-- Le javascript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src=""></script>
<script src="js/bootstrap.min.js"></script>