blob: 84c28873f0cc203b60c8699d87d5f81e74076cea [file] [log] [blame]
Michael Davis4250f302017-09-06 11:03:52 -05001<div id="header__wrapper">
2 <!-- HEADER -->
3 <header id="header">
Gunnar Mills844dace2018-05-15 12:46:59 -05004 <span class="header__title float-left">OpenBMC</span>
Michael Davis4250f302017-09-06 11:03:52 -05005 <a href="" class="header__logout" ng-click="logout()">Log out</a>
6 </header>
7 <div class="header__functions-wrapper" role="heading">
Ed Tanousbbcf6702017-10-06 13:53:06 -07008 <div class="logo__wrapper"><img src="../../assets/images/logo.svg" class="header__logo" alt="company logo"/></div>
Iftekharul Islam1acb4122017-11-02 13:20:32 -05009 <!-- <button class="inline header__multi-server" aria-label="multi server select" ng-class="{'active': multi_server_recent}" ng-click="multiRecent();">
Michael Davis4250f302017-09-06 11:03:52 -050010 <span class="icon icon-angle" aria-hidden="true"></span><span class="accessible-text">Multi server switcher</span>
Iftekharul Islam1acb4122017-11-02 13:20:32 -050011 </button>-->
Michael Davis4250f302017-09-06 11:03:52 -050012 <div class="inline header__server-name">
13 <p class="header__hostname">{{dataService.hostname}}</p>
Jayashankar Padatha5f48c72018-02-16 15:34:55 +053014 <p class="header__server-ip courier-bold">BMC host/IP address {{dataService.server_id}}</p>
Michael Davis4250f302017-09-06 11:03:52 -050015 </div>
16 <div class="header__functions" ng-class="{'active' : toggle}">
17 <a class="header__info" ng-click="toggle = !toggle"><span>Server Info</span><i class="icon icon-angle" aria-hidden="true"></i></a>
18 <a href="#/server-health/event-log" class="header__server-health">Server health
19 <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>
Gunnar Millseedefd32018-02-28 17:02:34 -060020 <a href="#/server-control/power-operations" class="header__server-power" role="button">Server power
CamVan Nguyen3490c0f2018-05-01 22:23:21 -050021 <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>
Gunnar Mills1bc2bfb2018-05-01 14:00:59 -050022 <p class="header__refresh">Data last refreshed<span>{{dataService.last_updated | date:'medium'}}</span>
Michael Davis4250f302017-09-06 11:03:52 -050023 </p>
24 <button class="header__page-refresh" ng-click="refresh()" aria-label="refresh page data">
25 <span>Refresh</span>
26 <svg data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 52.18 51.91">
27 <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)"/>
28 </button>
29 </div>
Michael Davisa6a15c22017-07-31 18:45:41 -050030 </div>
Gunnar Mills6dbd3052018-05-18 13:33:55 -050031</div>