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 %>);
12 <h3>Cache Age vs. Disk Utilization</h3>
13 <h4>circa <%= @histogram_pretty_date %></h4>
14 <div id='cache-age-vs-disk-histogram'>
19 <%= content_for :content_top %>
20 <div class="pull-right">
21 <%= content_for :tab_line_buttons %>
23 <%= content_for :tab_panes %>