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>
5*4148f2eeSYoshie Muranaka    <div class="header__actions" uib-dropdown>
6*4148f2eeSYoshie Muranaka      <button id="user-actions" type="button" uib-dropdown-toggle>
7*4148f2eeSYoshie Muranaka        <icon class="icon-user" file="icon-avatar.svg"></icon>
8*4148f2eeSYoshie Muranaka        {{username}}
9*4148f2eeSYoshie Muranaka      </button>
10*4148f2eeSYoshie Muranaka      <ul class="dropdown-menu" uib-dropdown-menu role="menu" aria-labelledby="user-actions">
11*4148f2eeSYoshie Muranaka        <li role="menuitem"><a href="#/profile-settings" class="btn">Profile settings</a></li>
12*4148f2eeSYoshie Muranaka        <li role="menuitem"><button ng-click="logout()" type="button" class="btn">Log out</button></li>
13*4148f2eeSYoshie Muranaka      </ul>
14*4148f2eeSYoshie Muranaka    </div>
151ffa209eSDerick Montague  </div>
161ffa209eSDerick Montague  <div class="header__functions-section">
1730d7c637SDerick Montague    <div class="logo__wrapper">
1830d7c637SDerick Montague      <img
1930d7c637SDerick Montague        src="../../assets/images/logo.svg"
2030d7c637SDerick Montague        class="header__logo"
2130d7c637SDerick Montague        alt="company logo"
2230d7c637SDerick Montague      />
2330d7c637SDerick Montague    </div>
244250f302SMichael Davis    <div class="inline header__server-name">
25ba556c31SIftekharul Islam      <p class="header__hostname">{{ dataService.hostname }}</p>
2675494d4aSRyan Arnell      <p class="header__server-ip courier-bold">{{ dataService.server_id }}</p>
27a6a15c21SMichael Davis    </div>
28a1dcfe0cSMichael Davis    <div class="header__functions" ng-class="{'active' : toggle}">
2930d7c637SDerick Montague      <button
3030d7c637SDerick Montague        type="button"
3130d7c637SDerick Montague        class="header__action header__action--info"
3230d7c637SDerick Montague        ng-click="toggle = !toggle"
3330d7c637SDerick Montague      >
3430d7c637SDerick Montague        <icon aria-hidden="true" file="icon-chevron-right.svg"></icon>
3530d7c637SDerick Montague      </button>
364b366b5aSYoshie Muranaka      <a href="#/server-health/event-log" class="header__action">
374b366b5aSYoshie Muranaka        Server health
384b366b5aSYoshie Muranaka        <icon aria-hidden="true" file="icon-chevron-right.svg"></icon>
394b366b5aSYoshie Muranaka        <span>
404b366b5aSYoshie Muranaka            <status-icon status="{{ dataService.server_health == 'Critical' ? 'error' :
414b366b5aSYoshie Muranaka                                    dataService.server_health == 'Warning' ? 'warn' :
424b366b5aSYoshie Muranaka                                    dataService.server_health == 'Good' ? 'on' : null }}">
434b366b5aSYoshie Muranaka            </status-icon>
444b366b5aSYoshie Muranaka          {{ dataService.server_health }}
454b366b5aSYoshie Muranaka        </span>
464b366b5aSYoshie Muranaka      </a>
474b366b5aSYoshie Muranaka      <a href="#/server-control/power-operations" class="header__action">
484b366b5aSYoshie Muranaka        Server power
494b366b5aSYoshie Muranaka        <icon aria-hidden="true" file="icon-chevron-right.svg"></icon>
504b366b5aSYoshie Muranaka        <span>
514b366b5aSYoshie Muranaka          <status-icon status="{{ dataService.server_state == 'Quiesced' ? 'error' :
524b366b5aSYoshie Muranaka                                  dataService.server_state == 'Running' ? 'on' :
534b366b5aSYoshie Muranaka                                  dataService.server_state == 'Off' ? 'off' :
544b366b5aSYoshie Muranaka                                  dataService.server_state == 'Unreachable' ? 'off' : null }}">
554b366b5aSYoshie Muranaka          </status-icon>
564b366b5aSYoshie Muranaka          {{ dataService.server_state | quiescedToError }}
574b366b5aSYoshie Muranaka        </span>
584b366b5aSYoshie Muranaka      </a>
5930d7c637SDerick Montague      <p class="header__refresh">
6030d7c637SDerick Montague        Data last refreshed<span>{{
6130d7c637SDerick Montague          dataService.last_updated | localeDate
6230d7c637SDerick Montague        }}</span>
634250f302SMichael Davis      </p>
6430d7c637SDerick Montague      <button
6530d7c637SDerick Montague        class="header__action header__action--refresh"
6630d7c637SDerick Montague        ng-click="refresh()"
6730d7c637SDerick Montague        aria-label="refresh page data"
6830d7c637SDerick Montague      >
694250f302SMichael Davis        <span>Refresh</span>
70c86ce3c9SYoshie Muranaka        <icon file="icon-restart.svg"></icon>
714250f302SMichael Davis      </button>
7299d199f3SIftekharul Islam    </div>
7399d199f3SIftekharul Islam  </div>
741ffa209eSDerick Montague</header>
75