Add Host Time

If the Time Owner is 'BMC', 'Host', or 'Both' a single time field
is present with a title of "BMC and Host Time".
If the Time Owner is 'Split', meaning the BMC and Host have separate times,
2 time fields are present "BMC Time" and "Host Time".

Tested: Set Time Owner to "BMC" and Time Owner to "Split".
Change-Id: I6399fa30e4489d4bd62250b639e66e60cf9c2426
Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
diff --git a/app/configuration/controllers/date-time-controller.html b/app/configuration/controllers/date-time-controller.html
index 042b0c7..a64a001 100644
--- a/app/configuration/controllers/date-time-controller.html
+++ b/app/configuration/controllers/date-time-controller.html
@@ -10,9 +10,13 @@
 		<div class="column large-8">
 			<ul class="date-time__metadata-wrapper">
 				<li class="date-time__metadata-block">
-					<p class="content-label">BMC Time</p>
+					<p class="content-label">BMC <span ng-if="time_owner != 'Split'">and Host</span> Time</p>
 					<p class="courier-bold">{{bmc_time | date:'medium'}}</p>
 				</li>
+				<li class="date-time__metadata-block" ng-if="time_owner == 'Split'">
+					<p class="content-label">Host Time</p>
+					<p class="courier-bold">{{host_time | date:'medium'}}</p>
+				</li>
 				<li class="date-time__metadata-block">
 					<p class="content-label">Time Owner</p>
 					<p class="courier-bold">{{time_owner}}</p>
diff --git a/app/configuration/controllers/date-time-controller.js b/app/configuration/controllers/date-time-controller.js
index 5604df5..cbc7443 100644
--- a/app/configuration/controllers/date-time-controller.js
+++ b/app/configuration/controllers/date-time-controller.js
@@ -21,6 +21,9 @@
           function(data) {
             $scope.bmc_time =
                 data.data['/xyz/openbmc_project/time/bmc'].Elapsed / 1000;
+            $scope.host_time =
+                data.data['/xyz/openbmc_project/time/host'].Elapsed / 1000;
+
             $scope.time_owner = data.data['/xyz/openbmc_project/time/owner']
                                     .TimeOwner.split('.')
                                     .pop();