anmolbabu has uploaded a new change for review.

Change subject: webadmin : Aligning the rows in the Hosts General sub-tab
......................................................................

webadmin : Aligning the rows in the Hosts General sub-tab

Aligning the rows in the Hosts General sub-tab

Change-Id: I8023616e95d2b52a0c4f813037df1e7f10e6083f
Signed-off-by: Anmol Babu <[email protected]>
---
M 
frontend/webadmin/modules/webadmin/src/main/java/org/ovirt/engine/ui/webadmin/section/main/view/tab/host/SubTabHostGeneralView.java
1 file changed, 20 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/03/20603/1

diff --git 
a/frontend/webadmin/modules/webadmin/src/main/java/org/ovirt/engine/ui/webadmin/section/main/view/tab/host/SubTabHostGeneralView.java
 
b/frontend/webadmin/modules/webadmin/src/main/java/org/ovirt/engine/ui/webadmin/section/main/view/tab/host/SubTabHostGeneralView.java
index 98bc146..7d789a4 100644
--- 
a/frontend/webadmin/modules/webadmin/src/main/java/org/ovirt/engine/ui/webadmin/section/main/view/tab/host/SubTabHostGeneralView.java
+++ 
b/frontend/webadmin/modules/webadmin/src/main/java/org/ovirt/engine/ui/webadmin/section/main/view/tab/host/SubTabHostGeneralView.java
@@ -130,10 +130,11 @@
         driver.initialize(this);
 
         boolean virtSupported = 
ApplicationModeHelper.isModeSupported(ApplicationMode.VirtOnly);
-
+        boolean glusterSupported = 
ApplicationModeHelper.isModeSupported(ApplicationMode.GlusterOnly);
         // Build a form using the FormBuilder
         formBuilder = new FormBuilder(formPanel, 3, 7);
 
+        if(virtSupported) {
         formBuilder.addFormItem(new FormItem(constants.osVersionHostGeneral(), 
oS, 0, 0));
         formBuilder.addFormItem(new 
FormItem(constants.kernelVersionHostGeneral(), kernelVersion, 1, 0));
         formBuilder.addFormItem(new 
FormItem(constants.kvmVersionHostGeneral(), kvmVersion, 2, 0, virtSupported));
@@ -156,6 +157,24 @@
         formBuilder.addFormItem(new FormItem(constants.maxSchedulingMemory(), 
maxSchedulingMemory, 3, 2, virtSupported));
         formBuilder.addFormItem(new 
FormItem(constants.memPageSharingHostGeneral(), memoryPageSharing, 4, 2));
         formBuilder.addFormItem(new 
FormItem(constants.autoLargePagesHostGeneral(), automaticLargePage, 5, 2));
+    } else if(glusterSupported){
+        formBuilder.addFormItem(new FormItem(constants.osVersionHostGeneral(), 
oS, 0, 0));
+        formBuilder.addFormItem(new 
FormItem(constants.kernelVersionHostGeneral(), kernelVersion, 1, 0));
+        formBuilder.addFormItem(new 
FormItem(constants.vdsmVersionHostGeneral(), vdsmVersion, 2, 0));
+
+        formBuilder.addFormItem(new FormItem(constants.cpuNameHostGeneral(), 
cpuName, 0, 1));
+        formBuilder.addFormItem(new FormItem(constants.cpuTypeHostGeneral(), 
cpuType, 1, 1));
+        formBuilder.addFormItem(new 
FormItem(constants.numOfSocketsHostGeneral(), numberOfSockets, 2, 1));
+        formBuilder.addFormItem(new 
FormItem(constants.numOfCoresPerSocketHostGeneral(), coresPerSocket, 3, 1));
+        formBuilder.addFormItem(new 
FormItem(constants.numOfThreadsPerCoreHostGeneral(), threadsPerCore, 4, 1));
+
+        formBuilder.addFormItem(new FormItem(constants.physMemHostGeneral(), 
physicalMemoryDetails, 0, 2));
+        formBuilder.addFormItem(new FormItem(constants.swapSizeHostGeneral(), 
swapSizeDetails, 1, 2));
+        formBuilder.addFormItem(new FormItem(constants.sharedMemHostGeneral(), 
sharedMemory, 2, 2));
+        formBuilder.addFormItem(new 
FormItem(constants.memPageSharingHostGeneral(), memoryPageSharing, 3, 2));
+        formBuilder.addFormItem(new 
FormItem(constants.autoLargePagesHostGeneral(), automaticLargePage, 4, 2));
+
+    }
     }
 
     void initMemorySizeLabels() {


-- 
To view, visit http://gerrit.ovirt.org/20603
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I8023616e95d2b52a0c4f813037df1e7f10e6083f
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: anmolbabu <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to