a = s[i];
var h = window.innerHeight - a.getBoundingClientRect().top - 20;
height = String(h) + "px";
- a.style.height = height;
+ a.style['max-height'] = height;
}
}
// Place all the styles related to the KeepDisks controller here.
// They will automatically be included in application.css.
// You can use Sass (SCSS) here: http://sass-lang.com/
+
+/* Margin allows us some space between the table above. */
+div.cache-age-vs-disk-histogram {
+ margin-top: 20px;
+}
+
+
@object = KeepDisk.new defaults.merge(params[:keep_disk] || {})
super
end
+ def index
+ # TODO(misha):Retrieve the histogram info
+ super
+ end
end
--- /dev/null
+<% content_for :tab_panes do %>
+<div class='cache-age-vs-disk-histogram'>Histogram will go here.</div>
+<% end %>
+<%= content_for :content_top %>
+<%= content_for :tab_line_buttons %>
+<%= content_for :tab_panes %>