mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-20 11:52:37 +09:00
feature #3748: Fix side-nav style
This commit is contained in:
1 parent
c4e17db77b
commit
bcd74c856b
8 files changed
+101
-22
No files matched your search
@@ -8,6 +8,19 @@ define(function(require) {
|
||||
|
||||
var TemplateDashboard = require('hbs!./dashboard-tab/html');
|
||||
|
||||
var VMS_TAB_ID = require('tabs/vms-tab/tabId');
|
||||
var HOSTS_TAB_ID = require('tabs/hosts-tab/tabId');
|
||||
var USERS_TAB_ID = require('tabs/users-tab/tabId');
|
||||
var IMAGES_TAB_ID = require('tabs/images-tab/tabId');
|
||||
var VNETS_TAB_ID = require('tabs/vnets-tab/tabId');
|
||||
|
||||
var VMS_CREATE_FORM_PANEL_ID = require('tabs/vms-tab/form-panels/create/formPanelId');
|
||||
var HOSTS_CREATE_FORM_PANEL_ID = require('tabs/hosts-tab/form-panels/create/formPanelId');
|
||||
var USERS_CREATE_FORM_PANEL_ID = require('tabs/users-tab/form-panels/create/formPanelId');
|
||||
var IMAGES_CREATE_FORM_PANEL_ID = require('tabs/images-tab/form-panels/create/formPanelId');
|
||||
var VNETS_CREATE_FORM_PANEL_ID = require('tabs/vnets-tab/form-panels/create/formPanelId');
|
||||
|
||||
var _initialized = false;
|
||||
var _activeWidgets = [];
|
||||
var _widgets = {
|
||||
'storage': {
|
||||
@@ -32,7 +45,9 @@ define(function(require) {
|
||||
}
|
||||
|
||||
var no_table = true;
|
||||
|
||||
$("#acct_cpu_graph, #acct_mem_graph", "#dashboard_vdc_user_accounting").html('<span id="provision_dashboard_total" style="font-size:80px">'+
|
||||
'<i class="fa fa-spinner fa-spin"></i>'+
|
||||
'</span>')
|
||||
OpenNebulaVM.accounting({
|
||||
success: function(req, response) {
|
||||
Accounting.fillAccounting($("#dashboard_vdc_user_accounting"), req, response, no_table);
|
||||
@@ -70,6 +85,9 @@ define(function(require) {
|
||||
|
||||
var no_table = true;
|
||||
|
||||
$("#acct_cpu_graph, #acct_mem_graph", "#dashboard_vm_accounting").html('<span id="provision_dashboard_total" style="font-size:80px">'+
|
||||
'<i class="fa fa-spinner fa-spin"></i>'+
|
||||
'</span>')
|
||||
OpenNebulaVM.accounting({
|
||||
success: function(req, response) {
|
||||
Accounting.fillAccounting($("#dashboard_vm_accounting"), req, response, no_table);
|
||||
@@ -111,7 +129,6 @@ define(function(require) {
|
||||
tabId: TAB_ID,
|
||||
resource: 'Dashboard',
|
||||
title: '<i class="fa fa-lg fa-fw fa-tachometer"></i> ' + Locale.tr("Dashboard"),
|
||||
showOnTopMenu: false,
|
||||
listHeader: '<i class="fa fa-lg fa-fw fa-tachometer"></i> ' + Locale.tr("Dashboard"),
|
||||
buttons: _buttons,
|
||||
actions: _actions,
|
||||
@@ -152,10 +169,74 @@ define(function(require) {
|
||||
}
|
||||
|
||||
function _onShow() {
|
||||
if (!_initialized) {
|
||||
_setup();
|
||||
}
|
||||
|
||||
$.each(_activeWidgets, function(id, widgetId) {
|
||||
if (_widgets[widgetId].onShow) {
|
||||
_widgets[widgetId].onShow();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function _setup() {
|
||||
_initialized = true;
|
||||
|
||||
|
||||
$(document).on("click", ".show_vms_tab", function(){
|
||||
Sunstone.showTab(VMS_TAB_ID);
|
||||
return false;
|
||||
})
|
||||
|
||||
$(document).on("click", ".show_hosts_tab", function(){
|
||||
Sunstone.showTab(HOSTS_TAB_ID);
|
||||
return false;
|
||||
})
|
||||
|
||||
$(document).on("click", ".show_users_tab", function(){
|
||||
Sunstone.showTab(USERS_TAB_ID);
|
||||
return false;
|
||||
})
|
||||
|
||||
$(document).on("click", ".show_images_tab", function(){
|
||||
Sunstone.showTab(IMAGES_TAB_ID);
|
||||
return false;
|
||||
})
|
||||
|
||||
$(document).on("click", ".show_vnets_tab", function(){
|
||||
Sunstone.showTab(VNETS_TAB_ID);
|
||||
return false;
|
||||
})
|
||||
|
||||
$(document).on("click", ".show_create_vm", function(){
|
||||
Sunstone.showTab(VMS_TAB_ID);
|
||||
Sunstone.showFormPanel(VMS_TAB_ID, VMS_CREATE_FORM_PANEL_ID, "create");
|
||||
return false;
|
||||
})
|
||||
|
||||
$(document).on("click", ".show_create_host", function(){
|
||||
Sunstone.showTab(HOSTS_TAB_ID);
|
||||
Sunstone.showFormPanel(HOSTS_TAB_ID, HOSTS_CREATE_FORM_PANEL_ID, "create");
|
||||
return false;
|
||||
})
|
||||
|
||||
$(document).on("click", ".show_create_user", function(){
|
||||
Sunstone.showTab(USERS_TAB_ID);
|
||||
Sunstone.showFormPanel(USERS_TAB_ID, USERS_CREATE_FORM_PANEL_ID, "create");
|
||||
return false;
|
||||
})
|
||||
|
||||
$(document).on("click", ".show_create_image", function(){
|
||||
Sunstone.showTab(IMAGES_TAB_ID);
|
||||
Sunstone.showFormPanel(IMAGES_TAB_ID, IMAGES_CREATE_FORM_PANEL_ID, "create");
|
||||
return false;
|
||||
})
|
||||
|
||||
$(document).on("click", ".show_create_vnet", function(){
|
||||
Sunstone.showTab(VNETS_TAB_ID);
|
||||
Sunstone.showFormPanel(VNETS_TAB_ID, VNETS_CREATE_FORM_PANEL_ID, "create");
|
||||
return false;
|
||||
})
|
||||
}
|
||||
});
|
||||
@@ -31,10 +31,10 @@
|
||||
</div>
|
||||
<div class="small-12 large-12 columns text-center">
|
||||
<br>
|
||||
<a class="button secondary radius small show_hosts_tab"> <i class="fa fa-lg fa-list fa-fw"></i>
|
||||
<a class="button secondary radius tiny show_hosts_tab"> <i class="fa fa-lg fa-list fa-fw"></i>
|
||||
</a>
|
||||
<a class="button secondary radius small show_create_host">
|
||||
<i class="fa fa-lg fa-plus fa-fw"></i>
|
||||
<a class="button secondary radius tiny show_create_host">
|
||||
<i class="fa fa-lg fa-plus fa-fw"></i><i class="fa fa-fw fa-lg fa-hdd-o"></i>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -16,10 +16,10 @@
|
||||
</div>
|
||||
<div class="small-12 large-12 columns text-center">
|
||||
<br>
|
||||
<a class="button secondary radius small show_vnets_tab"> <i class="fa fa-lg fa-list fa-fw"></i>
|
||||
<a class="button secondary radius tiny show_vnets_tab"> <i class="fa fa-lg fa-list fa-fw"></i>
|
||||
</a>
|
||||
<a class="button secondary radius small show_create_vnet">
|
||||
<i class="fa fa-lg fa-plus fa-fw"></i>
|
||||
<a class="button secondary radius tiny show_create_vnet">
|
||||
<i class="fa fa-lg fa-plus fa-fw"></i><i class="fa fa-fw fa-lg fa-sitemap"></i>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
@@ -16,10 +16,10 @@
|
||||
</div>
|
||||
<div class="small-12 large-12 columns text-center">
|
||||
<br>
|
||||
<a class="button secondary radius small show_images_tab"> <i class="fa fa-lg fa-list fa-fw"></i>
|
||||
<a class="button secondary radius tiny show_images_tab"> <i class="fa fa-lg fa-list fa-fw"></i>
|
||||
</a>
|
||||
<a class="button secondary radius small show_create_image">
|
||||
<i class="fa fa-lg fa-plus fa-fw"></i>
|
||||
<a class="button secondary radius tiny show_create_image">
|
||||
<i class="fa fa-lg fa-plus fa-fw"></i><i class="fa fa-fw fa-lg fa-upload"></i>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
@@ -9,9 +9,9 @@
|
||||
</h2>
|
||||
</div>
|
||||
<div class="small-12 large-12 columns text-center" style="margin-top: 20px">
|
||||
<a class="button secondary radius small show_users_tab"> <i class="fa fa-lg fa-list fa-fw"></i></a>
|
||||
<a class="button secondary radius small show_create_user">
|
||||
<i class="fa fa-lg fa-plus fa-fw"></i></a>
|
||||
<a class="button secondary radius tiny show_users_tab"> <i class="fa fa-lg fa-list fa-fw"></i></a>
|
||||
<a class="button secondary radius tiny show_create_user">
|
||||
<i class="fa fa-lg fa-plus fa-fw"></i><i class="fa fa-fw fa-lg fa-user"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="large-9 medium-6 small-12 columns text-center" id="dashboard_vdc_user_accounting">
|
||||
|
||||
@@ -30,10 +30,10 @@
|
||||
</h5>
|
||||
</div>
|
||||
<div class="small-12 large-12 columns text-center" style="margin-top: 20px">
|
||||
<a class="button secondary radius small show_vms_tab"> <i class="fa fa-lg fa-list fa-fw"></i>
|
||||
<a class="button secondary radius tiny show_vms_tab"> <i class="fa fa-lg fa-list fa-fw"></i>
|
||||
</a>
|
||||
<a class="button secondary radius small show_create_vm">
|
||||
<i class="fa fa-lg fa-plus fa-fw"></i></a>
|
||||
<a class="button secondary radius tiny show_create_vm">
|
||||
<i class="fa fa-lg fa-plus fa-fw"></i><i class="fa fa-fw fa-lg fa-th"></i></a>
|
||||
<br>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1 +1 @@
|
||||
meta.foundation-version {font-family:"/5.5.1/";}meta.foundation-mq-small {font-family:"/only screen/";width:0;}meta.foundation-mq-small-only {font-family:"/only screen and (max-width: 40em)/";width:0;}meta.foundation-mq-medium {font-family:"/only screen and (min-width:40.063em)/";width:40.063em;}meta.foundation-mq-medium-only {font-family:"/only screen and (min-width:40.063em) and (max-width:64em)/";width:40.063em;}meta.foundation-mq-large {font-family:"/only screen and (min-width:64.063em)/";width:64.063em;}meta.foundation-mq-large-only {font-family:"/only screen and (min-width:64.063em) and (max-width:90em)/";width:64.063em;}meta.foundation-mq-xlarge {font-family:"/only screen and (min-width:90.063em)/";width:90.063em;}meta.foundation-mq-xlarge-only {font-family:"/only screen and (min-width:90.063em) and (max-width:120em)/";width:90.063em;}meta.foundation-mq-xxlarge {font-family:"/only screen and (min-width:120.063em)/";width:120.063em;}meta.foundation-data-attribute-namespace {font-family:false;}html ,body {height:100%;}* ,*:before ,*:after {-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;}html ,body {font-size:100%;}body {background:#ffffff;color:#555555;padding:0;margin:0;font-family:"Open Sans",sans-serif;font-weight:normal;font-style:normal;line-height:1.5;position:relative;cursor:auto;}a:hover {cursor:pointer;}img {max-width:100%;height:auto;}img {-ms-interpolation-mode:bicubic;}#map_canvas img ,#map_canvas embed ,#map_canvas object ,.map_canvas img ,.map_canvas embed ,.map_canvas object {max-width:none !important;}.left {float:left !important;}.right {float:right !important;}.clearfix:before ,.clearfix:after {content:" ";display:table;}.clearfix:after {clear:both;}.hide {display:none;}.invisible {visibility:hidden;}.antialiased {-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;}img {display:inline-block;vertical-align:middle;}textarea {height:auto;min-height:50px;}select {width:100%;}.row {width:100%;margin-left:auto;margin-right:auto;margin-top:0;margin-bottom:0;max-width:75rem;}.row:before ,.row:after {content:" ";display:table;}.row:after {clear:both;}.row.collapse>.column ,.row.collapse>.columns {padding-left:0;padding-right:0;}.row.collapse .row {margin-left:0;margin-right:0;}.row .row {width:auto;margin-left:-0.9375rem;margin-right:-0.9375rem;margin-top:0;margin-bottom:0;max-width:none;}.row .row:before ,.row .row:after {content:" ";display:table;}.row .row:after {clear:both;}.row .row.collapse {width:auto;margin:0;max-width:none;}.row .row.collapse:before ,.row .row.collapse:after {content:" ";display:table;}.row .row.collapse:after {clear:both;}.column ,.columns {padding-left:0.9375rem;padding-right:0.9375rem;width:100%;float:left;}[class*="column"]+[class*="column"]:last-child {float:right;}[class*="column"]+[class*="column"].end {float:left;}@media only screen{.small-push-0 {position:relative;left:0%;right:auto;}.small-pull-0 {position:relative;right:0%;left:auto;}.small-push-1 {position:relative;left:8.33333%;right:auto;}.small-pull-1 {position:relative;right:8.33333%;left:auto;}.small-push-2 {position:relative;left:16.66667%;right:auto;}.small-pull-2 {position:relative;right:16.66667%;left:auto;}.small-push-3 {position:relative;left:25%;right:auto;}.small-pull-3 {position:relative;right:25%;left:auto;}.small-push-4 {position:relative;left:33.33333%;right:auto;}.small-pull-4 {position:relative;right:33.33333%;left:auto;}.small-push-5 {position:relative;left:41.66667%;right:auto;}.small-pull-5 {position:relative;right:41.66667%;left:auto;}.small-push-6 {position:relative;left:50%;right:auto;}.small-pull-6 {position:relative;right:50%;left:auto;}.small-push-7 {position:relative;left:58.33333%;right:auto;}.small-pull-7 {position:relative;right:58.33333%;left:auto;}.small-push-8 {position:relative;left:66.66667%;right:auto;}.small-pull-8 {position:relative;right:66.66667%;left:auto;}.small-push-9 {position:relative;left:75%;right:auto;}.small-pull-9 {position:relative;right:75%;left:auto;}.small-push-10 {position:relative;left:83.33333%;right:auto;}.small-pull-10 {position:relative;right:83.33333%;left:auto;}.small-push-11 {position:relative;left:91.66667%;right:auto;}.small-pull-11 {position:relative;right:91.66667%;left:auto;}.column ,.columns {position:relative;padding-left:0.9375rem;padding-right:0.9375rem;float:left;}.small-1 {width:8.33333%;}.small-2 {width:16.66667%;}.small-3 {width:25%;}.small-4 {width:33.33333%;}.small-5 {width:41.66667%;}.small-6 {width:50%;}.small-7 {width:58.33333%;}.small-8 {width:66.66667%;}.small-9 {width:75%;}.small-10 {width:83.33333%;}.small-11 {width:91.66667%;}.small-12 {width:100%;}.small-offset-0 {margin-left:0% !important;}.small-offset-1 {margin-left:8.33333% !important;}.small-offset-2 {margin-left:16.66667% !important;}.small-offset-3 {margin-left:25% !important;}.small-offset-4 {margin-left:33.33333% !important;}.small-offset-5 {margin-left:41.66667% !important;}.small-offset-6 {margin-left:50% !iLine truncated
|
||||
meta.foundation-version {font-family:"/5.5.1/";}meta.foundation-mq-small {font-family:"/only screen/";width:0;}meta.foundation-mq-small-only {font-family:"/only screen and (max-width: 40em)/";width:0;}meta.foundation-mq-medium {font-family:"/only screen and (min-width:40.063em)/";width:40.063em;}meta.foundation-mq-medium-only {font-family:"/only screen and (min-width:40.063em) and (max-width:64em)/";width:40.063em;}meta.foundation-mq-large {font-family:"/only screen and (min-width:64.063em)/";width:64.063em;}meta.foundation-mq-large-only {font-family:"/only screen and (min-width:64.063em) and (max-width:90em)/";width:64.063em;}meta.foundation-mq-xlarge {font-family:"/only screen and (min-width:90.063em)/";width:90.063em;}meta.foundation-mq-xlarge-only {font-family:"/only screen and (min-width:90.063em) and (max-width:120em)/";width:90.063em;}meta.foundation-mq-xxlarge {font-family:"/only screen and (min-width:120.063em)/";width:120.063em;}meta.foundation-data-attribute-namespace {font-family:false;}html ,body {height:100%;}* ,*:before ,*:after {-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;}html ,body {font-size:100%;}body {background:#ffffff;color:#555555;padding:0;margin:0;font-family:"Open Sans",sans-serif;font-weight:normal;font-style:normal;line-height:1.5;position:relative;cursor:auto;}a:hover {cursor:pointer;}img {max-width:100%;height:auto;}img {-ms-interpolation-mode:bicubic;}#map_canvas img ,#map_canvas embed ,#map_canvas object ,.map_canvas img ,.map_canvas embed ,.map_canvas object {max-width:none !important;}.left {float:left !important;}.right {float:right !important;}.clearfix:before ,.clearfix:after {content:" ";display:table;}.clearfix:after {clear:both;}.hide {display:none;}.invisible {visibility:hidden;}.antialiased {-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;}img {display:inline-block;vertical-align:middle;}textarea {height:auto;min-height:50px;}select {width:100%;}.row {width:100%;margin-left:auto;margin-right:auto;margin-top:0;margin-bottom:0;max-width:75rem;}.row:before ,.row:after {content:" ";display:table;}.row:after {clear:both;}.row.collapse>.column ,.row.collapse>.columns {padding-left:0;padding-right:0;}.row.collapse .row {margin-left:0;margin-right:0;}.row .row {width:auto;margin-left:-0.9375rem;margin-right:-0.9375rem;margin-top:0;margin-bottom:0;max-width:none;}.row .row:before ,.row .row:after {content:" ";display:table;}.row .row:after {clear:both;}.row .row.collapse {width:auto;margin:0;max-width:none;}.row .row.collapse:before ,.row .row.collapse:after {content:" ";display:table;}.row .row.collapse:after {clear:both;}.column ,.columns {padding-left:0.9375rem;padding-right:0.9375rem;width:100%;float:left;}[class*="column"]+[class*="column"]:last-child {float:right;}[class*="column"]+[class*="column"].end {float:left;}@media only screen{.small-push-0 {position:relative;left:0%;right:auto;}.small-pull-0 {position:relative;right:0%;left:auto;}.small-push-1 {position:relative;left:8.33333%;right:auto;}.small-pull-1 {position:relative;right:8.33333%;left:auto;}.small-push-2 {position:relative;left:16.66667%;right:auto;}.small-pull-2 {position:relative;right:16.66667%;left:auto;}.small-push-3 {position:relative;left:25%;right:auto;}.small-pull-3 {position:relative;right:25%;left:auto;}.small-push-4 {position:relative;left:33.33333%;right:auto;}.small-pull-4 {position:relative;right:33.33333%;left:auto;}.small-push-5 {position:relative;left:41.66667%;right:auto;}.small-pull-5 {position:relative;right:41.66667%;left:auto;}.small-push-6 {position:relative;left:50%;right:auto;}.small-pull-6 {position:relative;right:50%;left:auto;}.small-push-7 {position:relative;left:58.33333%;right:auto;}.small-pull-7 {position:relative;right:58.33333%;left:auto;}.small-push-8 {position:relative;left:66.66667%;right:auto;}.small-pull-8 {position:relative;right:66.66667%;left:auto;}.small-push-9 {position:relative;left:75%;right:auto;}.small-pull-9 {position:relative;right:75%;left:auto;}.small-push-10 {position:relative;left:83.33333%;right:auto;}.small-pull-10 {position:relative;right:83.33333%;left:auto;}.small-push-11 {position:relative;left:91.66667%;right:auto;}.small-pull-11 {position:relative;right:91.66667%;left:auto;}.column ,.columns {position:relative;padding-left:0.9375rem;padding-right:0.9375rem;float:left;}.small-1 {width:8.33333%;}.small-2 {width:16.66667%;}.small-3 {width:25%;}.small-4 {width:33.33333%;}.small-5 {width:41.66667%;}.small-6 {width:50%;}.small-7 {width:58.33333%;}.small-8 {width:66.66667%;}.small-9 {width:75%;}.small-10 {width:83.33333%;}.small-11 {width:91.66667%;}.small-12 {width:100%;}.small-offset-0 {margin-left:0% !important;}.small-offset-1 {margin-left:8.33333% !important;}.small-offset-2 {margin-left:16.66667% !important;}.small-offset-3 {margin-left:25% !important;}.small-offset-4 {margin-left:33.33333% !important;}.small-offset-5 {margin-left:41.66667% !important;}.small-offset-6 {margin-left:50% !iLine truncated
|
||||
@@ -223,7 +223,7 @@ input.search {
|
||||
border-left: 2px solid #999;
|
||||
}
|
||||
|
||||
border-left: 3px solid #efefef;
|
||||
border-left: 2px solid #efefef;
|
||||
|
||||
a {
|
||||
color: #777 !important;
|
||||
@@ -256,9 +256,7 @@ input.search {
|
||||
|
||||
padding-bottom: 5px;
|
||||
padding-top: 0px;
|
||||
background-color: #f8f8f8;
|
||||
border-radius: 5px;
|
||||
border: 1px solid #efefef
|
||||
border-right: 1px solid #efefef
|
||||
}
|
||||
|
||||
.header-row {
|
||||
|
||||
Reference in new issue
Block a user