Merge branch '2800-python-global-state' into 2800-pgs
[arvados.git] / apps / workbench / app / views / keep_disks / _content_layout.html.erb
1 <% unless @histogram_pretty_date.nil? %>
2   <% content_for :tab_panes do %>
3   <%# We use protocol-relative paths here to avoid browsers refusing to load javascript over http in a page that was loaded over https. %>
4   <%= javascript_include_tag '//cdnjs.cloudflare.com/ajax/libs/raphael/2.1.2/raphael-min.js' %>
5   <%= javascript_include_tag '//cdnjs.cloudflare.com/ajax/libs/morris.js/0.4.3/morris.min.js' %>
6   <script type="text/javascript">
7     $(document).ready(function(){
8       $.renderHistogram(<%= raw @cache_age_histogram.to_json %>);
9     });
10   </script>
11   <div class='graph'>
12     <h3>Cache Age vs. Disk Utilization</h3>
13     <h4>circa <%= @histogram_pretty_date %></h4>
14     <div id='cache-age-vs-disk-histogram'>
15     </div>
16   </div>
17   <% end %>
18 <% end %>
19 <%= content_for :content_top %>
20 <div class="pull-right">
21   <%= content_for :tab_line_buttons %>
22 </div>
23 <%= content_for :tab_panes %>