1<header id="header" class="header"> 2 <!-- HEADER --> 3 <div class="header__info-section"> 4 <span class="header__title">OpenBMC</span> 5 <a href="" class="header__logout" ng-click="logout()">Log out</a> 6 </div> 7 <div class="header__functions-section"> 8 <div class="logo__wrapper"> 9 <img 10 src="../../assets/images/logo.svg" 11 class="header__logo" 12 alt="company logo" 13 /> 14 </div> 15 <div class="inline header__server-name"> 16 <p class="header__hostname">{{ dataService.hostname }}</p> 17 <p class="header__server-ip courier-bold">{{ dataService.server_id }}</p> 18 </div> 19 <div class="header__functions" ng-class="{'active' : toggle}"> 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> 47 </p> 48 <button 49 class="header__action header__action--refresh" 50 ng-click="refresh()" 51 aria-label="refresh page data" 52 > 53 <span>Refresh</span> 54 <icon file="icon-restart.svg"></icon> 55 </button> 56 </div> 57 </div> 58</header> 59