11ffa209eSDerick Montague<header id="header" class="header">
299d199f3SIftekharul Islam  <!-- HEADER -->
31ffa209eSDerick Montague  <div class="header__info-section">
41ffa209eSDerick Montague    <span class="header__title">OpenBMC</span>
599d199f3SIftekharul Islam    <a href="" class="header__logout" ng-click="logout()">Log out</a>
61ffa209eSDerick Montague  </div>
71ffa209eSDerick Montague  <div class="header__functions-section">
830d7c637SDerick Montague    <div class="logo__wrapper">
930d7c637SDerick Montague      <img
1030d7c637SDerick Montague        src="../../assets/images/logo.svg"
1130d7c637SDerick Montague        class="header__logo"
1230d7c637SDerick Montague        alt="company logo"
1330d7c637SDerick Montague      />
1430d7c637SDerick Montague    </div>
154250f302SMichael Davis    <div class="inline header__server-name">
16ba556c31SIftekharul Islam      <p class="header__hostname">{{ dataService.hostname }}</p>
1775494d4aSRyan Arnell      <p class="header__server-ip courier-bold">{{ dataService.server_id }}</p>
18a6a15c21SMichael Davis    </div>
19a1dcfe0cSMichael Davis    <div class="header__functions" ng-class="{'active' : toggle}">
2030d7c637SDerick Montague      <button
2130d7c637SDerick Montague        type="button"
2230d7c637SDerick Montague        class="header__action header__action--info"
2330d7c637SDerick Montague        ng-click="toggle = !toggle"
2430d7c637SDerick Montague      >
2530d7c637SDerick Montague        <icon aria-hidden="true" file="icon-chevron-right.svg"></icon>
2630d7c637SDerick Montague      </button>
27*4b366b5aSYoshie Muranaka      <a href="#/server-health/event-log" class="header__action">
28*4b366b5aSYoshie Muranaka        Server health
29*4b366b5aSYoshie Muranaka        <icon aria-hidden="true" file="icon-chevron-right.svg"></icon>
30*4b366b5aSYoshie Muranaka        <span>
31*4b366b5aSYoshie Muranaka            <status-icon status="{{ dataService.server_health == 'Critical' ? 'error' :
32*4b366b5aSYoshie Muranaka                                    dataService.server_health == 'Warning' ? 'warn' :
33*4b366b5aSYoshie Muranaka                                    dataService.server_health == 'Good' ? 'on' : null }}">
34*4b366b5aSYoshie Muranaka            </status-icon>
35*4b366b5aSYoshie Muranaka          {{ dataService.server_health }}
36*4b366b5aSYoshie Muranaka        </span>
37*4b366b5aSYoshie Muranaka      </a>
38*4b366b5aSYoshie Muranaka      <a href="#/server-control/power-operations" class="header__action">
39*4b366b5aSYoshie Muranaka        Server power
40*4b366b5aSYoshie Muranaka        <icon aria-hidden="true" file="icon-chevron-right.svg"></icon>
41*4b366b5aSYoshie Muranaka        <span>
42*4b366b5aSYoshie Muranaka          <status-icon status="{{ dataService.server_state == 'Quiesced' ? 'error' :
43*4b366b5aSYoshie Muranaka                                  dataService.server_state == 'Running' ? 'on' :
44*4b366b5aSYoshie Muranaka                                  dataService.server_state == 'Off' ? 'off' :
45*4b366b5aSYoshie Muranaka                                  dataService.server_state == 'Unreachable' ? 'off' : null }}">
46*4b366b5aSYoshie Muranaka          </status-icon>
47*4b366b5aSYoshie Muranaka          {{ dataService.server_state | quiescedToError }}
48*4b366b5aSYoshie Muranaka        </span>
49*4b366b5aSYoshie Muranaka      </a>
5030d7c637SDerick Montague      <p class="header__refresh">
5130d7c637SDerick Montague        Data last refreshed<span>{{
5230d7c637SDerick Montague          dataService.last_updated | localeDate
5330d7c637SDerick Montague        }}</span>
544250f302SMichael Davis      </p>
5530d7c637SDerick Montague      <button
5630d7c637SDerick Montague        class="header__action header__action--refresh"
5730d7c637SDerick Montague        ng-click="refresh()"
5830d7c637SDerick Montague        aria-label="refresh page data"
5930d7c637SDerick Montague      >
604250f302SMichael Davis        <span>Refresh</span>
61c86ce3c9SYoshie Muranaka        <icon file="icon-restart.svg"></icon>
624250f302SMichael Davis      </button>
6399d199f3SIftekharul Islam    </div>
6499d199f3SIftekharul Islam  </div>
651ffa209eSDerick Montague</header>
66