--- /dev/null
+<ul class="nav nav-pills">
+ <% [['Table', collections_path],
+ ['Graph', collections_graph_path]].each do |name, path| %>
+ <li class="<%= 'active' if request.fullpath == path %>"><%= link_to name, path %></li>
+ <% end %>
+</ul>
+<%= render :partial => 'nav' %>
+<table class="table table-bordered">
+ <tbody>
+ <tr>
+ <td class="d3">
+ </td>
+ </tr>
+ </tbody>
+</table>
+
<% content_for :head do %>
<%= javascript_include_tag '/d3.v3.min.js' %>
.on("tick", tick)
.start();
- var svg = d3.select("body").append("svg:svg")
+ var svg = d3.select("td.d3").append("svg:svg")
.attr("width", w)
.attr("height", h);
</style>
<% end %>
-<table class="topalign">
+<%= render :partial => 'nav' %>
+
+<table class="topalign table table-bordered table-striped">
<thead>
<tr class="contain-align-left">
<th>
<html>
<head>
<meta charset="utf-8">
- <title>Vcffarm</title>
+ <title><%= Rails.configuration.site_name rescue Rails.application.class.parent_name %></title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<div class="nav-collapse collapse">
<ul class="nav">
<% [
- [true, 'FactoryJobs', '/factory_jobs'],
- [true, 'Data', '/collections/graph'],
+ [true, 'FactoryJobs', factory_jobs_path],
+ [true, 'Data', collections_path],
[false, 'Log out', logout_path]
].each do |admin_only, name, path| %>
<% if !admin_only or (current_user and current_user.is_admin) %>