Skip to content

Commit

Permalink
Merge branch 'fix/gui-improvements' into '4.4'
Browse files Browse the repository at this point in the history
Made dashboard wider, implemented async calls

See merge request !3
  • Loading branch information
remibergsma committed Dec 30, 2016
2 parents 74963cc + 54b3076 commit 969dc1a
Show file tree
Hide file tree
Showing 4 changed files with 531 additions and 231 deletions.
60 changes: 31 additions & 29 deletions ui/css/cloudstack3.css
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ body.install-wizard {
}

#main-area {
width: 1024px;
width: 1224px;
height: 729px;
margin: auto;
border: 1px solid #D4D4D4;
Expand Down Expand Up @@ -97,8 +97,8 @@ a:hover {

/*Table*/
table {
width: 740px;
max-width: 777px;
width: 940px;
max-width: 977px;
margin: 15px 15px 12px 12px;
font-size: 13px;
text-align: left;
Expand Down Expand Up @@ -164,7 +164,7 @@ table tbody td.loading {

table tbody td.truncated {
overflow: visible;
max-width: 88px;
max-width: 120px;
}

table tbody td.truncated > span {
Expand Down Expand Up @@ -1278,20 +1278,20 @@ div.panel div.list-view {
}

.detail-view div.list-view {
width: 730px;
width: 930px;
border: 1px solid #DAD4D4;
margin: 41px auto auto !important;
height: 536px !important;
background: #F7F7F7;
}

div.panel div.list-view div.data-table table {
width: 755px;
width: 955px;
margin-top: 44px;
}

.detail-view div.list-view div.data-table table {
width: 703px !important;
width: 903px !important;
}

.detail-view div.list-view div.data-table table td {
Expand All @@ -1302,7 +1302,7 @@ div.panel div.list-view div.fixed-header {
position: absolute;
top: 29px;
left: 12px;
width: 760px;
width: 960px;
height: 47px;
display: table;
background-color: #F7F7F7;
Expand All @@ -1311,7 +1311,7 @@ div.panel div.list-view div.fixed-header {
}

.detail-view div.list-view div.fixed-header {
width: 703px !important;
width: 903px !important;
top: 49px !important;
left: 32px !important;
background: #FFFFFF;
Expand All @@ -1335,7 +1335,7 @@ div.panel div.list-view div.fixed-header table {
position: relative;
left: 0px;
top: 18px;
width: 755px;
width: 955px;
/*+box-shadow:0px 4px 10px #DFE1E3;*/
-moz-box-shadow: 0px 4px 10px #DFE1E3;
-webkit-box-shadow: 0px 4px 10px #DFE1E3;
Expand Down Expand Up @@ -2365,7 +2365,7 @@ div.detail-group.actions td {
}

#header div.controls {
width: 1026px;
width: 1226px;
height: 48px;
position: relative;
margin: 27px auto 0;
Expand Down Expand Up @@ -2407,7 +2407,7 @@ div.detail-group.actions td {
padding: 1px 0 0;
/*+placement:shift -174px -57px;*/
position: relative;
left: -174px;
left: -239px;
top: -57px;
}

Expand Down Expand Up @@ -2473,7 +2473,7 @@ div.detail-group.actions td {
margin: 0;
position: absolute;
top: -47px;
left: 890px;
left: 1025px;
cursor: default !important;
display: inline-block;
float: left;
Expand Down Expand Up @@ -2863,9 +2863,9 @@ div.detail-group.actions td {

/*Browser*/
#browser {
width: 794px;
width: 994px;
height: 100%;
max-width: 794px;
max-width: 994px;
position: relative;
float: left;
overflow: hidden;
Expand Down Expand Up @@ -2987,7 +2987,7 @@ div.detail-group.actions td {
}

.detail-view .ui-tabs-panel div.toolbar {
width: 768px;
width: 968px;
background: transparent;
border: none;
margin-top: 8px;
Expand Down Expand Up @@ -4329,8 +4329,8 @@ Dialogs*/

/**** Head*/
.dashboard.admin .dashboard-container.head {
width: 766px;
height: 331px;
width: 966px;
height: 360px;
margin: 9px 0 0;
float: left;
}
Expand Down Expand Up @@ -4389,26 +4389,26 @@ Dialogs*/

/**** Charts / stats*/
.dashboard.admin .zone-stats {
width: 774px;
height: 348px;
width: 974px;
height: 346px;
overflow: auto;
overflow-x: hidden;
/*+placement:shift 0px -11px;*/
position: relative;
left: 0px;
top: -11px;
top: -1px;
}

.dashboard.admin .zone-stats ul {
width: 796px;
width: 996px;
/*+placement:shift -2px 11px;*/
position: relative;
left: -2px;
top: 11px;
}

.dashboard.admin .zone-stats ul li {
width: 388px;
width: 488px;
font-size: 14px;
height: 79px;
float: left;
Expand All @@ -4428,7 +4428,7 @@ Dialogs*/
}

.dashboard.admin .zone-stats ul li .label {
width: 111px;
width: 161px;
float: left;
font-weight: 100;
border-bottom: 1px solid #E2E2E2;
Expand Down Expand Up @@ -4592,14 +4592,15 @@ Dialogs*/
height: 270px;
overflow: hidden;
position: relative;
width: 468px;
}

.dashboard.admin .dashboard-container.sub.alerts.last {
margin-right: 0;
}

.dashboard.admin .dashboard-container.sub.alerts ul {
width: 368px;
width: 468px;
height: 234px;
overflow: auto;
overflow-x: hidden;
Expand Down Expand Up @@ -5059,7 +5060,7 @@ Dialogs*/
}

.system-chart.dashboard.admin .dashboard-container {
width: 740px;
width: 930px;
border: none;
}

Expand Down Expand Up @@ -5492,7 +5493,7 @@ label.error {
}

.multi-wizard .progress ul {
width: 780px;
width: 900px;
height: 40px;
float: left;
clear: both;
Expand Down Expand Up @@ -9076,7 +9077,7 @@ div.container div.panel div#details-tab-addloadBalancer.detail-group div.loadBal
/*System Dashboard*/
.system-dashboard {
height: 258px;
width: 762px;
width: 962px;
display: block;
/*+border-radius:3px;*/
-moz-border-radius: 3px;
Expand Down Expand Up @@ -11413,7 +11414,8 @@ div.ui-dialog div.health-check div.health-check-description {
}

div.ui-dialog div.health-check div.form-container form div.form-item {
width: 58% margin-left:116px;
width: 58%;
margin-left: 116px;
margin-top: -16px;
margin-bottom: 30px;
}
Expand Down
15 changes: 14 additions & 1 deletion ui/scripts/instances.js
Original file line number Diff line number Diff line change
Expand Up @@ -346,10 +346,23 @@
data: data,
success: function(json) {
var items = json.listvirtualmachinesresponse.virtualmachine;
if (items) {
$.each(items, function(idx, vm) {
if (vm.nic && vm.nic.length > 0 && vm.nic[0].ipaddress) {
items[idx].ipaddress = vm.nic[0].ipaddress;
}
});
}
args.response.success({
data: items
});
}
},
error: function(XMLHttpResponse) {
cloudStack.dialog.notice({
message: parseXMLHttpResponse(XMLHttpResponse)
});
args.response.error();
}
});
},

Expand Down

0 comments on commit 969dc1a

Please sign in to comment.