Michael Davis | aeedf9e | 2017-04-06 14:35:56 -0500 | [diff] [blame] | 1 | <div id="sensors"> |
| 2 | <div class="row column"> |
| 3 | <h1>Fan Speed Sensors</h1> |
| 4 | </div> |
| 5 | <section class="row column"> |
| 6 | <div class="page-header"> |
| 7 | <h2 class="inline h4">Sensors present in the system</h2> |
Iftekharul Islam | d2269e2 | 2017-05-02 09:32:45 -0500 | [diff] [blame] | 8 | <a ng-href="data:text/json;charset=utf-8,{{export_data}}" class="inline btn-export float-right" download="{{export_name}}" ng-show="filteredSensorData.length">Export</a> |
Michael Davis | aeedf9e | 2017-04-06 14:35:56 -0500 | [diff] [blame] | 9 | </div> |
| 10 | </section> |
| 11 | |
| 12 | <!-- Filters --> |
| 13 | <section class="row column"> |
| 14 | <!-- search --> |
| 15 | <div class="content__search"> |
| 16 | <label for="content__search-input">Sensors Search</label> |
Iftekharul Islam | d2269e2 | 2017-05-02 09:32:45 -0500 | [diff] [blame] | 17 | <input id="content__search-input" type="text" placeholder="Filter issues" ng-model="customSearch" ng-keydown="doSearchOnEnter($event)"/> |
| 18 | <input id="content__search-submit" type="submit" class="btn btn-secondary" value="Submit" ng-click="doSearchOnClick()"/> |
Michael Davis | aeedf9e | 2017-04-06 14:35:56 -0500 | [diff] [blame] | 19 | </div> |
Iftekharul Islam | d2269e2 | 2017-05-02 09:32:45 -0500 | [diff] [blame] | 20 | |
Michael Davis | aeedf9e | 2017-04-06 14:35:56 -0500 | [diff] [blame] | 21 | <div class="toggle-filter"> |
Iftekharul Islam | d2269e2 | 2017-05-02 09:32:45 -0500 | [diff] [blame] | 22 | <button class="inline first btn-primary" ng-click="toggleSeverityAll()" |
| 23 | ng-class="selectedSeverity.all ? 'btn-primary' : 'btn-secondary'">All |
Michael Davis | aeedf9e | 2017-04-06 14:35:56 -0500 | [diff] [blame] | 24 | </button> |
Iftekharul Islam | d2269e2 | 2017-05-02 09:32:45 -0500 | [diff] [blame] | 25 | <button class="inline " ng-click="toggleSeverity('critical')" |
| 26 | ng-class="selectedSeverity.critical ? 'btn-primary' : 'btn-secondary'">Critical |
Michael Davis | aeedf9e | 2017-04-06 14:35:56 -0500 | [diff] [blame] | 27 | </button> |
Iftekharul Islam | d2269e2 | 2017-05-02 09:32:45 -0500 | [diff] [blame] | 28 | <button class="inline" ng-click="toggleSeverity('warning')" |
| 29 | ng-class="selectedSeverity.warning ? 'btn-primary' : 'btn-secondary'">Warning |
Michael Davis | aeedf9e | 2017-04-06 14:35:56 -0500 | [diff] [blame] | 30 | </button> |
Iftekharul Islam | d2269e2 | 2017-05-02 09:32:45 -0500 | [diff] [blame] | 31 | <button class="inline last" ng-click="toggleSeverity('normal')" |
| 32 | ng-class="selectedSeverity.normal ? 'btn-primary' : 'btn-secondary'">Normal |
Michael Davis | aeedf9e | 2017-04-06 14:35:56 -0500 | [diff] [blame] | 33 | </button> |
| 34 | </div> |
| 35 | </section> <!-- end filter --> |
| 36 | |
| 37 | <section class="row column"> |
| 38 | <div id="back-link"> |
Iftekharul Islam | cd78950 | 2017-04-19 14:37:55 -0500 | [diff] [blame] | 39 | <a href="#/server-health/sensors-overview">Back to Sensor Overview</a> |
Michael Davis | aeedf9e | 2017-04-06 14:35:56 -0500 | [diff] [blame] | 40 | </div> |
| 41 | </section> |
| 42 | |
Iftekharul Islam | d2269e2 | 2017-05-02 09:32:45 -0500 | [diff] [blame] | 43 | <section id="sensor__details" class="row column" ng-hide="!data.display_headers"> |
Michael Davis | aeedf9e | 2017-04-06 14:35:56 -0500 | [diff] [blame] | 44 | <div class="row column header-row"> |
Iftekharul Islam | cd78950 | 2017-04-19 14:37:55 -0500 | [diff] [blame] | 45 | <div class="column small-10 large-11 header__actions-bar"> |
Iftekharul Islam | 06229be | 2017-05-05 09:17:54 -0500 | [diff] [blame] | 46 | <p class="inline priority-tag-circ" ng-class="{'high-priority': data.status == 'critical', 'medium-priority': data.status == 'warning', 'low-priority': data.status == 'normal'}" aria-label="High Priority"></p> |
Iftekharul Islam | d2269e2 | 2017-05-02 09:32:45 -0500 | [diff] [blame] | 47 | <p class="inline sensor__heading sensor__category">{{data.display_headers[0]}}</p> |
| 48 | <p class="inline sensor__heading middle">{{data.display_headers[1]}}</p> |
| 49 | <p class="inline float-right sensor__heading right">{{data.display_headers[2]}}</p> |
Michael Davis | aeedf9e | 2017-04-06 14:35:56 -0500 | [diff] [blame] | 50 | </div> |
| 51 | <div class="column small-2 large-1 sensor__heading trigger-col"></div> |
| 52 | </div> |
| 53 | |
| 54 | <!-- Sensor --> |
Iftekharul Islam | d2269e2 | 2017-05-02 09:32:45 -0500 | [diff] [blame] | 55 | <div ng-repeat="sensor in (filteredSensorData = (data.data|filter:filterBySeverity|filter:filterBySearchTerms))" class="row column accord-row" ng-class="{'active': sensors__metadatarow, 'selected': sensors__selected}"> |
Michael Davis | aeedf9e | 2017-04-06 14:35:56 -0500 | [diff] [blame] | 56 | <div class="row"> |
| 57 | <div class="column small-10 large-11 sensor__info" ng-click="sensors__metadatarow = ! sensors__metadatarow"> |
Iftekharul Islam | 06229be | 2017-05-05 09:17:54 -0500 | [diff] [blame] | 58 | <p class="inline priority-tag-circ" ng-class="{'high-priority': sensor.status == 'critical', 'medium-priority': sensor.status == 'warning', 'low-priority': sensor.status == 'normal'}" aria-label="High Priority"></p> |
Iftekharul Islam | d2269e2 | 2017-05-02 09:32:45 -0500 | [diff] [blame] | 59 | <p class="inline sensor__title">{{sensor.title}}</p> |
| 60 | <p class="inline sensor__reading">{{sensor.reading}}</p> |
| 61 | <p class="inline float-right" ng-class="{'sensor__critical-label': sensor.status == 'critical', 'sensor__warning-label': sensor.status == 'warning', 'sensor__normal-label': sensor.status == 'normal'}">{{sensor.status}}</p> |
Michael Davis | aeedf9e | 2017-04-06 14:35:56 -0500 | [diff] [blame] | 62 | </div> |
| 63 | <div class="column small-2 large-1"> |
| 64 | <button class="accord-trigger" ng-class="{'active': sensors__metadatarow}" ng-click="sensors__metadatarow = ! sensors__metadatarow"></button> |
| 65 | </div> |
| 66 | </div> |
| 67 | <div class="row sensors__metadata-row" ng-class="{'active': sensors__metadatarow}"> |
| 68 | <div class="column small-12"> |
| 69 | <div class="threshold-chart__wrapper"> |
| 70 | <span class="threshold__label low">Low</span> |
| 71 | <div class="threshold-chart"> |
Iftekharul Islam | d2269e2 | 2017-05-02 09:32:45 -0500 | [diff] [blame] | 72 | <span class="threshold__marker" ng-class="{'thresh__high-critical': sensor.status == 'critical', 'thresh__low-warn': sensor.status == 'warning', 'thresh__normal': sensor.status == 'normal'}" style="left: {{sensor.indicator}};"><span class="threshold__value">{{sensor.reading}}</span></span> |
Michael Davis | aeedf9e | 2017-04-06 14:35:56 -0500 | [diff] [blame] | 73 | <span class="threshold thresh__low-critical"></span> |
| 74 | <span class="threshold thresh__low-warn"></span> |
| 75 | <span class="threshold thresh__normal"></span> |
| 76 | <span class="threshold thresh__high-warn"></span> |
| 77 | <span class="threshold thresh__high-critical"></span> |
| 78 | </div> |
| 79 | <span class="threshold__label high">High</span> |
| 80 | </div> |
| 81 | </div> |
| 82 | </div> |
| 83 | </div> |
| 84 | |
Michael Davis | aeedf9e | 2017-04-06 14:35:56 -0500 | [diff] [blame] | 85 | </section> |
Michael Davis | aeedf9e | 2017-04-06 14:35:56 -0500 | [diff] [blame] | 86 | </div> <!-- end event log --> |