blob: 8d6a2ad05a2ebaf37fa73fdc9341b421a3b22f88 [file] [log] [blame]
Michael Davis4250f302017-09-06 11:03:52 -05001<div id="header__wrapper">
Gunnar Mills5f0b7762018-09-25 14:10:45 -05002 <!-- HEADER -->
3 <header id="header">
4 <span class="header__title float-left">OpenBMC</span>
5 <a href="" class="header__logout" ng-click="logout()">Log out</a>
6 </header>
7 <div class="header__functions-wrapper" role="heading">
8 <div class="logo__wrapper"><img src="../../assets/images/logo.svg" class="header__logo" alt="company logo"/></div>
Gunnar Mills5f0b7762018-09-25 14:10:45 -05009 <div class="inline header__server-name">
10 <p class="header__hostname">{{dataService.hostname}}</p>
Ryan Arnell75494d42019-01-16 15:07:58 -060011 <p class="header__server-ip courier-bold">{{dataService.server_id}}</p>
Gunnar Mills5f0b7762018-09-25 14:10:45 -050012 </div>
13 <div class="header__functions" ng-class="{'active' : toggle}">
Ryan Arnell75494d42019-01-16 15:07:58 -060014 <button type="button" class="header__info" ng-click="toggle = !toggle"><i class="icon icon-angle" aria-hidden="true"></i></button>
Gunnar Mills5f0b7762018-09-25 14:10:45 -050015 <a href="#/server-health/event-log" class="header__server-health">Server health
16 <i class="icon icon-angle" aria-hidden="true"></i><span ng-class="{'status-light__error': dataService.server_health == 'Critical', 'status-light__warn': dataService.server_health == 'Warning', 'status-light__good': dataService.server_health == 'Good'}">{{dataService.server_health}}</span></a>
17 <a href="#/server-control/power-operations" class="header__server-power" role="button">Server power
18 <i class="icon icon-angle" aria-hidden="true"></i><span 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'}">{{dataService.server_state | quiescedToError}}</span></a>
Alexander Filippovdbf04812018-11-16 16:26:04 +030019 <p class="header__refresh">Data last refreshed<span>{{dataService.last_updated | localeDate}}</span>
Gunnar Mills5f0b7762018-09-25 14:10:45 -050020 </p>
21 <button class="header__page-refresh" ng-click="refresh()" aria-label="refresh page data">
22 <span>Refresh</span>
23 <svg data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 52.18 51.91">
24 <path class="cls-1" d="M38,20.77H52v-14H48.3v6.07A26,26,0,1,0,48.7,38H44.32a22.14,22.14,0,1,1,1.8-20.92H38v3.67Z" transform="translate(0.16 0.14)"/>
Ryan Arnell75494d42019-01-16 15:07:58 -060025 </svg>
Gunnar Mills5f0b7762018-09-25 14:10:45 -050026 </button>
27 </div>
28 </div>
Gunnar Mills10850982018-10-22 13:20:05 -050029</div>