added dynamic container pool graph to administrator dashboard

This commit is contained in:
Hauke Klement
2015-02-17 14:07:48 +01:00
parent a13d1738e2
commit fcc5a85a76
5 changed files with 88 additions and 7 deletions

View File

@@ -1,8 +1,13 @@
- content_for :head do
= javascript_include_tag('//cdnjs.cloudflare.com/ajax/libs/vis/3.10.0/vis.min.js')
= stylesheet_link_tag('//cdnjs.cloudflare.com/ajax/libs/vis/3.10.0/vis.min.css')
h1 = t('breadcrumbs.dashboard.show')
h2 Docker
- if DockerContainerPool.config[:active]
h3 = t('.current')
.table-responsive
table.table
thead
@@ -13,8 +18,10 @@ h2 Docker
tbody
- ExecutionEnvironment.order(:name).each do |execution_environment|
tr data-id=execution_environment.id
td = link_to(execution_environment, execution_environment)
td.name = link_to(execution_environment, execution_environment)
td.pool-size
td.quantity = progress_bar(0)
h3 = t('.history')
#graph
- else
p = t('.inactive')