Derick Montague | 1ffa209 | 2019-04-01 17:57:27 -0500 | [diff] [blame] | 1 | <header id="header" class="header"> |
Gunnar Mills | 5f0b776 | 2018-09-25 14:10:45 -0500 | [diff] [blame] | 2 | <!-- HEADER --> |
Derick Montague | 1ffa209 | 2019-04-01 17:57:27 -0500 | [diff] [blame] | 3 | <div class="header__info-section"> |
| 4 | <span class="header__title">OpenBMC</span> |
Gunnar Mills | 5f0b776 | 2018-09-25 14:10:45 -0500 | [diff] [blame] | 5 | <a href="" class="header__logout" ng-click="logout()">Log out</a> |
Derick Montague | 1ffa209 | 2019-04-01 17:57:27 -0500 | [diff] [blame] | 6 | </div> |
| 7 | <div class="header__functions-section"> |
Derick Montague | 30d7c63 | 2019-07-31 22:35:48 -0500 | [diff] [blame] | 8 | <div class="logo__wrapper"> |
| 9 | <img |
| 10 | src="../../assets/images/logo.svg" |
| 11 | class="header__logo" |
| 12 | alt="company logo" |
| 13 | /> |
| 14 | </div> |
Gunnar Mills | 5f0b776 | 2018-09-25 14:10:45 -0500 | [diff] [blame] | 15 | <div class="inline header__server-name"> |
Derick Montague | 30d7c63 | 2019-07-31 22:35:48 -0500 | [diff] [blame] | 16 | <p class="header__hostname">{{ dataService.hostname }}</p> |
| 17 | <p class="header__server-ip courier-bold">{{ dataService.server_id }}</p> |
Gunnar Mills | 5f0b776 | 2018-09-25 14:10:45 -0500 | [diff] [blame] | 18 | </div> |
| 19 | <div class="header__functions" ng-class="{'active' : toggle}"> |
Derick Montague | 30d7c63 | 2019-07-31 22:35:48 -0500 | [diff] [blame] | 20 | <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 Mills | 5f0b776 | 2018-09-25 14:10:45 -0500 | [diff] [blame] | 47 | </p> |
Derick Montague | 30d7c63 | 2019-07-31 22:35:48 -0500 | [diff] [blame] | 48 | <button |
| 49 | class="header__action header__action--refresh" |
| 50 | ng-click="refresh()" |
| 51 | aria-label="refresh page data" |
| 52 | > |
Gunnar Mills | 5f0b776 | 2018-09-25 14:10:45 -0500 | [diff] [blame] | 53 | <span>Refresh</span> |
Yoshie Muranaka | c86ce3c | 2019-06-05 12:30:30 -0500 | [diff] [blame] | 54 | <icon file="icon-restart.svg"></icon> |
Gunnar Mills | 5f0b776 | 2018-09-25 14:10:45 -0500 | [diff] [blame] | 55 | </button> |
| 56 | </div> |
| 57 | </div> |
Derick Montague | 1ffa209 | 2019-04-01 17:57:27 -0500 | [diff] [blame] | 58 | </header> |