summaryrefslogtreecommitdiffstats
path: root/app/configuration/controllers/date-time-controller.html
diff options
context:
space:
mode:
authorGunnar Mills <gmills@us.ibm.com>2018-07-18 16:00:15 -0500
committerGunnar Mills <gmills@us.ibm.com>2018-09-05 15:33:02 -0500
commit83dcedf1082413bd0c82ebad76e3b206d6895fbc (patch)
tree032e8fd1557bdccf31611ec98a74874a1d50a993 /app/configuration/controllers/date-time-controller.html
parentc74d434c35d721693ea16fc61fe2ad8d8a2d7b23 (diff)
downloadphosphor-webui-83dcedf1082413bd0c82ebad76e3b206d6895fbc.tar.gz
phosphor-webui-83dcedf1082413bd0c82ebad76e3b206d6895fbc.zip
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>
Diffstat (limited to 'app/configuration/controllers/date-time-controller.html')
-rw-r--r--app/configuration/controllers/date-time-controller.html6
1 files changed, 5 insertions, 1 deletions
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>
OpenPOWER on IntegriCloud