diff --git a/src/cloud/occi/lib/ui/public/css/application.css b/src/cloud/occi/lib/ui/public/css/application.css index e4934e76e9..a122bbdf1a 100644 --- a/src/cloud/occi/lib/ui/public/css/application.css +++ b/src/cloud/occi/lib/ui/public/css/application.css @@ -572,12 +572,6 @@ ul.action_list li a:hover{ background: #EEE; } -.dashboard_img { - padding-left:10px; - border:0; - height:40px; -} - .dashboard_p { color: #353735; text-align:justify; @@ -585,4 +579,11 @@ ul.action_list li a:hover{ .dashboard_p p{ padding-top:5px; -} \ No newline at end of file +} + +.dashboard_p img { + padding-left:10px; + padding-right: 10px; + border:0; +} + diff --git a/src/cloud/occi/lib/ui/public/images/network_icon.png b/src/cloud/occi/lib/ui/public/images/network_icon.png new file mode 100644 index 0000000000..3f234ac4b9 Binary files /dev/null and b/src/cloud/occi/lib/ui/public/images/network_icon.png differ diff --git a/src/cloud/occi/lib/ui/public/images/one-compute.png b/src/cloud/occi/lib/ui/public/images/one-compute.png index 93cfa43614..f635680693 100644 Binary files a/src/cloud/occi/lib/ui/public/images/one-compute.png and b/src/cloud/occi/lib/ui/public/images/one-compute.png differ diff --git a/src/cloud/occi/lib/ui/public/images/one-network.png b/src/cloud/occi/lib/ui/public/images/one-network.png index a59f6334cd..9d8be0d340 100644 Binary files a/src/cloud/occi/lib/ui/public/images/one-network.png and b/src/cloud/occi/lib/ui/public/images/one-network.png differ diff --git a/src/cloud/occi/lib/ui/public/images/one-storage.png b/src/cloud/occi/lib/ui/public/images/one-storage.png index 5ec80f21c8..1a1c4975bc 100644 Binary files a/src/cloud/occi/lib/ui/public/images/one-storage.png and b/src/cloud/occi/lib/ui/public/images/one-storage.png differ diff --git a/src/cloud/occi/lib/ui/public/images/opennebula-selfservice-icon.png b/src/cloud/occi/lib/ui/public/images/opennebula-selfservice-icon.png new file mode 100644 index 0000000000..798da03b07 Binary files /dev/null and b/src/cloud/occi/lib/ui/public/images/opennebula-selfservice-icon.png differ diff --git a/src/cloud/occi/lib/ui/public/images/server_icon.png b/src/cloud/occi/lib/ui/public/images/server_icon.png new file mode 100644 index 0000000000..265b10e594 Binary files /dev/null and b/src/cloud/occi/lib/ui/public/images/server_icon.png differ diff --git a/src/cloud/occi/lib/ui/public/images/storage_icon.png b/src/cloud/occi/lib/ui/public/images/storage_icon.png new file mode 100644 index 0000000000..fac14fd912 Binary files /dev/null and b/src/cloud/occi/lib/ui/public/images/storage_icon.png differ diff --git a/src/cloud/occi/lib/ui/public/js/plugins/compute.js b/src/cloud/occi/lib/ui/public/js/plugins/compute.js index 44f5066e10..0011528201 100644 --- a/src/cloud/occi/lib/ui/public/js/plugins/compute.js +++ b/src/cloud/occi/lib/ui/public/js/plugins/compute.js @@ -101,7 +101,7 @@ var create_vm_tmpl ='
'; var vm_dashboard = ''+tr("This is a list of your current compute resources. Virtual Machines use previously defined images and networks. You can easily create a new compute element by cliking \"new\" and filling-in an easy wizard.")+'
\'+tr("You can also manage compute resources and perform actions such as stop, resume, shutdown or cancel.")+'
\'+tr("Additionally, you can take a \"snapshot\" of the storage attached to these resources. They will be saved as new resources, visible from the Storage view and re-usable.")+'
\ @@ -460,7 +460,7 @@ function updateVMachinesView(request, vmachine_list){ }); updateView(vmachine_list_array,dataTable_vMachines); - //updateDashboard("vms",vmachine_list); + updateDashboard("vms",vmachine_list); } diff --git a/src/cloud/occi/lib/ui/public/js/plugins/dashboard.js b/src/cloud/occi/lib/ui/public/js/plugins/dashboard.js index 20061c8232..ee95440ff7 100644 --- a/src/cloud/occi/lib/ui/public/js/plugins/dashboard.js +++ b/src/cloud/occi/lib/ui/public/js/plugins/dashboard.js @@ -14,81 +14,41 @@ /* limitations under the License. */ /* -------------------------------------------------------------------------- */ -/** HISTORY_LENGTH currently ignored on server, but it doesn't harm to have it**/ -var HISTORY_LENGTH=40; -var GRAPH_AUTOREFRESH_INTERVAL=60000; //60 secs - -var graph1 = { - title : "graph1", - monitor_resources : "cpu_usage,used_cpu,max_cpu", - history_length : HISTORY_LENGTH -}; - -var graph2 = { - title : "graph2", - monitor_resources : "mem_usage,used_mem,max_mem", - history_length : HISTORY_LENGTH -}; - -var graph3 = { - title : "graph3", - monitor_resources : "total,active,error", - history_length : HISTORY_LENGTH -}; - -var graph4 = { - title : "graph4", - monitor_resources : "net_tx,net_rx", - history_length : HISTORY_LENGTH -}; - var dashboard_tab_content = '\ + | \
| \
-\
-
|