1<loader loading="loading"></loader>
2<div class="overview">
3  <div class="row column">
4    <h1 class="inline">{{dataService.hostname}}</h1>
5    <button class="btn  btn-tertiary" ng-click="edit_hostname = !edit_hostname">Edit</button>
6  </div>
7  <section class="row">
8    <div class="column large-8">
9      <!-- Server Metadata -->
10      <div class="row overview__server-metadata">
11        <div class="column large-4">
12          <h2 class="h3">Server information</h2>
13        </div>
14        <div class="column large-8">
15          <ul class="overview__metadata-wrapper">
16            <li class="overview__metadata-block">
17              <dl>
18                <dt class="content-label">Model</dt>
19                <dd class="courier-bold">{{server_info.Model}}</dd>
20              </dl>
21            </li>
22            <li class="overview__metadata-block">
23              <dl>
24                <dt class="content-label">Manufacturer</dt>
25                <dd class="courier-bold">{{server_info.Manufacturer}}</dd>
26              </dl>
27            </li>
28            <li class="overview__metadata-block">
29              <dl>
30                <dt class="content-label">Firmware version</dt>
31                <dd class="courier-bold">{{server_firmware}}</dd>
32              </dl>
33            </li>
34            <li class="overview__metadata-block">
35              <dl>
36                <dt class="content-label">Serial number</dt>
37                <dd class="courier-bold">{{server_info.SerialNumber}}</dd>
38              </dl>
39            </li>
40          </ul>
41        </div>
42      </div>
43      <!-- BMC Metadata -->
44      <div class="row overview__server-metadata">
45        <div class="column large-4">
46          <h2 class="h3">BMC information</h2>
47        </div>
48        <div class="column large-8">
49          <ul class="overview__metadata-wrapper">
50            <li class="overview__metadata-block">
51              <dl>
52                <dt class="content-label">Hostname</dt>
53                <dd class="courier-bold overview__hostname">{{dataService.hostname}}</dd>
54              </dl>
55            </li>
56            <li class="overview__metadata-block">
57              <dl>
58                <dt class="content-label">IP addresses</dt>
59                <dd class="courier-bold" ng-repeat="ip_address in bmc_ip_addresses">{{ip_address}}</dd>
60              </dl>
61            </li>
62            <li class="overview__metadata-block">
63              <dl>
64                <dt class="content-label">Firmware Version</dt>
65                <dd class="courier-bold">{{bmc_firmware}}</dd>
66              </dl>
67            </li>
68            <li class="overview__metadata-block">
69              <dl>
70                <dt class="content-label">Mac address</dt>
71                <dd class="courier-bold">{{dataService.mac_address}}</dd>
72              </dl>
73            </li>
74          </ul>
75        </div>
76      </div>
77      <!-- Power metadata -->
78      <div class="row overview__server-metadata">
79        <div class="column large-4">
80          <h2 class="h3">Power information</h2>
81        </div>
82        <div class="column large-8">
83          <ul class="overview__metadata-wrapper">
84            <li class="overview__metadata-block">
85              <dl>
86                <dt class="content-label">Power Consumption</dt>
87                <dd class="courier-bold">{{power_consumption}}</dd>
88              </dl>
89            </li>
90            <li class="overview__metadata-block">
91              <dl>
92                <dt class="content-label">Power Cap</dt>
93                <dd class="courier-bold">{{power_cap}}</dd>
94              </dl>
95            </li>
96          </ul>
97        </div>
98      </div>
99      <!-- Power metadata -->
100    </div>
101    <div class="column large-4 no-padding">
102      <div class="quick-links">
103        <a href="#/server-health/event-log/high" class="quick-links__item quick-links__events event-log__events"
104          ng-show="logs.length">
105          <!-- link to event log filtered to the high priority events -->
106          <p class="inline quick-links__event-copy">View {{logs.length}} high priority events</p>
107        </a>
108        <dl class="quick-links__item no-icon">
109          <dt class="inline quick-links__label">BMC time</dt>
110          <dd class="courier-bold bmc-time">{{ bmc_time | localeDate }}</dd>
111        </dl>
112        <div class="quick-links__item no-icon">
113          <p class="inline quick-links__label">Turn <span ng-if="dataService.LED_state == 'off'">on</span><span
114              ng-if="dataService.LED_state == 'on'">off</span> server LED</p>
115          <div class="toggle inline float-right">
116            <input id="toggle__switch-round" class="toggle-switch toggle-switch__round-flat" type="checkbox"
117              tabindex="0" ng-click="toggleLED()" ng-checked="dataService.LED_state == 'on'"
118              ng-disabled="dataService.server_unreachable">
119            <label for="toggle__switch-round" tabindex="0">Server LED is <span
120                class="led-switch__status">{{dataService.LED_state}}</span></label>
121          </div>
122        </div>
123        <a href="#/server-control/remote-console" class="no-icon quick-links__item">
124          <p class="inline quick-links__label">Serial over LAN console</p>
125          <icon file="icon-launch.svg" class="float-right"></icon>
126        </a>
127        <a href="#/configuration/network" class="quick-links__item">
128          <p class="inline quick-links__label">Edit network settings</p>
129        </a>
130        </d>
131      </div>
132  </section>
133  <section class="row">
134    <div class="column large-12 overview__event-log event-log__events" ng-show="logs.length">
135      <div class="page-header">
136        <div class="row">
137          <div class="column large-7 small-6">
138            <h2 class="h3">High priority events ({{logs.length}})</h2>
139          </div>
140          <div class="column large-5 small-6 no-padding">
141            <a href="#/server-health/event-log/" class="float-right">View all event logs</a>
142          </div>
143        </div>
144      </div>
145
146      <!-- single event -->
147      <a href="#/server-health/event-log/high" ng-repeat="event in logs|orderBy:'-Id'|limitTo : 5">
148        <div class="row column event-log__single-event">
149          <div class="row">
150            <!-- click will go to specific event in event log page-->
151            <div class="column small-10 large-11 event-log__event-info" ng-click="">
152              <div class="row">
153                <div class="column large-1 small-1">
154                  <p class="inline event__id">#{{event.Id}}</p>
155                </div>
156                <div class="column large-4 small-11">
157                  <p class="inline event__priority high-priority">High</p>
158                  <p class="inline event__severity high-priority">{{event.severity_code}}</p>
159                </div>
160                <div class="column large-7 large-offset-0 small-12 small-offset-1">
161                  <p class="inline event__timestamp">{{ event.Timestamp | localeDate }}</p>
162                </div>
163              </div>
164
165              <div class="row">
166                <div class="column large-12 small-12 small-offset-1">
167                  <p class="inline event__description">{{getEventLogTitle(event)}}</p>
168                </div>
169              </div>
170            </div>
171            <div class="column small-2 large-1">
172              <span class="accord-trigger" aria-hidden="true"></span>
173            </div>
174          </div>
175        </div>
176      </a>
177    </div>
178
179    <div class="row column overview__event-log event-log__events" ng-show="!logs.length">
180      <div class="page-header">
181        <h2 class="h3">High priority events (0)</h2>
182      </div>
183      <p>There are no high priority events to display at this time.</p>
184    </div>
185  </section>
186</div>
187<!-- edit server name modal -->
188<section class="modal" aria-hidden="true" aria-labelledby="modalTitle" aria-describedby="modalDescription" role="dialog"
189  ng-class="{'active': edit_hostname}">
190  <div class="modal__upload" role="document">
191    <!-- accessibility only; used for screen readers -->
192    <div class="screen-reader-offscreen modal-description">Edit hostname</div>
193    <div class="page-header ">
194      <h2 class="modal-title">
195        <icon class="icon__info" file="icon-information.svg"></icon>Edit hostname
196      </h2>
197    </div>
198    <div class="modal__content">
199      <form name="edit_hostname_text">
200        <label for="editServerName">Hostname</label>
201        <p class="label__helper-text">Hostname must be less than 64 characters and must not contain spaces.</p>
202        <input id="editServerName" class="modal__edit-server-name" type="text" ng-model="newHostname" ng-trim="false"
203          name="hostname" ng-pattern="/^\S{0,64}$/" required autofocus />
204        <span class="modal__error" ng-show="edit_hostname_text.hostname.$error.pattern">Invalid format.
205          Remove spaces.</span>
206        <span class="modal__char-count"
207          ng-hide="edit_hostname_text.hostname.$error.pattern">{{0 + newHostname.length}}/64</span>
208      </form>
209    </div>
210    <div class="modal__button-wrapper">
211      <button class="btn  btn-secondary"
212        ng-click="edit_hostname= false; newHostname = dataService.hostname">Cancel</button>
213      <button class="btn  btn-primary" ng-click="saveHostname(newHostname);" ng-disabled="edit_hostname_text.$invalid"
214        ng-class="{'disabled' : edit_hostname_text.$invalid}">Save</button>
215    </div>
216  </div>
217</section>
218<div class="modal-overlay" tabindex="-1" ng-class="{'active': edit_hostname}"></div>