blob: 651e56dd54b6ab4a888a960f50c45125ead05fb9 [file] [log] [blame]
Derick Montague1ffa2092019-04-01 17:57:27 -05001<header id="header" class="header">
Gunnar Mills5f0b7762018-09-25 14:10:45 -05002 <!-- HEADER -->
Derick Montague1ffa2092019-04-01 17:57:27 -05003 <div class="header__info-section">
4 <span class="header__title">OpenBMC</span>
Gunnar Mills5f0b7762018-09-25 14:10:45 -05005 <a href="" class="header__logout" ng-click="logout()">Log out</a>
Derick Montague1ffa2092019-04-01 17:57:27 -05006 </div>
7 <div class="header__functions-section">
Derick Montague30d7c632019-07-31 22:35:48 -05008 <div class="logo__wrapper">
9 <img
10 src="../../assets/images/logo.svg"
11 class="header__logo"
12 alt="company logo"
13 />
14 </div>
Gunnar Mills5f0b7762018-09-25 14:10:45 -050015 <div class="inline header__server-name">
Derick Montague30d7c632019-07-31 22:35:48 -050016 <p class="header__hostname">{{ dataService.hostname }}</p>
17 <p class="header__server-ip courier-bold">{{ dataService.server_id }}</p>
Gunnar Mills5f0b7762018-09-25 14:10:45 -050018 </div>
19 <div class="header__functions" ng-class="{'active' : toggle}">
Derick Montague30d7c632019-07-31 22:35:48 -050020 <button
21 type="button"
22 class="header__action header__action--info"
23 ng-click="toggle = !toggle"
24 >
25 <icon aria-hidden="true" file="icon-chevron-right.svg"></icon>
26 </button>
27 <a href="#/server-health/event-log" class="header__action"
28 >Server health
29 <icon aria-hidden="true" file="icon-chevron-right.svg"></icon
30 ><span
31 ng-class="{'status-light__error': dataService.server_health == 'Critical', 'status-light__warn': dataService.server_health == 'Warning', 'status-light__good': dataService.server_health == 'Good'}"
32 >{{ dataService.server_health }}</span
33 ></a
34 >
35 <a href="#/server-control/power-operations" class="header__action"
36 >Server power
37 <icon aria-hidden="true" file="icon-chevron-right.svg"></icon
38 ><span
39 ng-class="{'status-light__off': dataService.server_state == 'Off', 'status-light__disabled': dataService.server_state == 'Unreachable', 'status-light__good': dataService.server_state == 'Running', 'status-light__error': dataService.server_state == 'Quiesced'}"
40 >{{ dataService.server_state | quiescedToError }}</span
41 ></a
42 >
43 <p class="header__refresh">
44 Data last refreshed<span>{{
45 dataService.last_updated | localeDate
46 }}</span>
Gunnar Mills5f0b7762018-09-25 14:10:45 -050047 </p>
Derick Montague30d7c632019-07-31 22:35:48 -050048 <button
49 class="header__action header__action--refresh"
50 ng-click="refresh()"
51 aria-label="refresh page data"
52 >
Gunnar Mills5f0b7762018-09-25 14:10:45 -050053 <span>Refresh</span>
Yoshie Muranakac86ce3c2019-06-05 12:30:30 -050054 <icon file="icon-restart.svg"></icon>
Gunnar Mills5f0b7762018-09-25 14:10:45 -050055 </button>
56 </div>
57 </div>
Derick Montague1ffa2092019-04-01 17:57:27 -050058</header>