| 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> | 
| Yoshie Muranaka | 4b366b5 | 2019-09-24 08:32:42 -0700 | [diff] [blame] | 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 |             <status-icon status="{{ dataService.server_health == 'Critical' ? 'error' : | 
 | 32 |                                     dataService.server_health == 'Warning' ? 'warn' : | 
 | 33 |                                     dataService.server_health == 'Good' ? 'on' : null }}"> | 
 | 34 |             </status-icon> | 
 | 35 |           {{ dataService.server_health }} | 
 | 36 |         </span> | 
 | 37 |       </a> | 
 | 38 |       <a href="#/server-control/power-operations" class="header__action"> | 
 | 39 |         Server power | 
 | 40 |         <icon aria-hidden="true" file="icon-chevron-right.svg"></icon> | 
 | 41 |         <span> | 
 | 42 |           <status-icon status="{{ dataService.server_state == 'Quiesced' ? 'error' : | 
 | 43 |                                   dataService.server_state == 'Running' ? 'on' : | 
 | 44 |                                   dataService.server_state == 'Off' ? 'off' : | 
 | 45 |                                   dataService.server_state == 'Unreachable' ? 'off' : null }}"> | 
 | 46 |           </status-icon> | 
 | 47 |           {{ dataService.server_state | quiescedToError }} | 
 | 48 |         </span> | 
 | 49 |       </a> | 
| Derick Montague | 30d7c63 | 2019-07-31 22:35:48 -0500 | [diff] [blame] | 50 |       <p class="header__refresh"> | 
 | 51 |         Data last refreshed<span>{{ | 
 | 52 |           dataService.last_updated | localeDate | 
 | 53 |         }}</span> | 
| Gunnar Mills | 5f0b776 | 2018-09-25 14:10:45 -0500 | [diff] [blame] | 54 |       </p> | 
| Derick Montague | 30d7c63 | 2019-07-31 22:35:48 -0500 | [diff] [blame] | 55 |       <button | 
 | 56 |         class="header__action header__action--refresh" | 
 | 57 |         ng-click="refresh()" | 
 | 58 |         aria-label="refresh page data" | 
 | 59 |       > | 
| Gunnar Mills | 5f0b776 | 2018-09-25 14:10:45 -0500 | [diff] [blame] | 60 |         <span>Refresh</span> | 
| Yoshie Muranaka | c86ce3c | 2019-06-05 12:30:30 -0500 | [diff] [blame] | 61 |         <icon file="icon-restart.svg"></icon> | 
| Gunnar Mills | 5f0b776 | 2018-09-25 14:10:45 -0500 | [diff] [blame] | 62 |       </button> | 
 | 63 |     </div> | 
 | 64 |   </div> | 
| Derick Montague | 1ffa209 | 2019-04-01 17:57:27 -0500 | [diff] [blame] | 65 | </header> |