Michael Davis | 428375e | 2017-08-01 15:48:34 -0500 | [diff] [blame] | 1 | <loader loading="loading"></loader> |
Iftekharul Islam | 8b4828a | 2017-04-19 14:37:55 -0500 | [diff] [blame] | 2 | <div id="event-log"> |
beccabroek | 569ccf6 | 2018-10-29 13:46:53 -0500 | [diff] [blame] | 3 | <div class="row column"> |
Yoshie Muranaka | e4194ce | 2019-05-24 14:33:56 -0500 | [diff] [blame] | 4 | <div class="column small-6 large-7 no-padding"> |
| 5 | <h1>Event log</h1> |
| 6 | </div> |
| 7 | <div class="column small-6 large-5"> |
| 8 | <remote-logging-server class="remote-logging-server"></remote-logging-server> |
| 9 | </div> |
beccabroek | 569ccf6 | 2018-10-29 13:46:53 -0500 | [diff] [blame] | 10 | </div> |
| 11 | <section class="row column"> |
| 12 | <div class="page-header"> |
beccabroek | edf1ab4 | 2019-02-15 16:26:38 -0600 | [diff] [blame] | 13 | <h2 class="inline">All events from the BMC</h2> |
beccabroek | 569ccf6 | 2018-10-29 13:46:53 -0500 | [diff] [blame] | 14 | <div class="event-log__timezone inline float-right"> |
| 15 | <button class="dropdown__button" ng-click="timezone = timezone == true ? false : true;" toggle-flag="timezone"> |
Alexander Filippov | dbf0481 | 2018-11-16 16:26:04 +0300 | [diff] [blame] | 16 | <span>{{tmz === 'UTC' ? 'UTC Timezone' : 'User Timezone'}}</span> |
beccabroek | 569ccf6 | 2018-10-29 13:46:53 -0500 | [diff] [blame] | 17 | </button> |
| 18 | <ul class="dropdown__list inline" ng-show="timezone"> |
| 19 | <li> |
Alexander Filippov | dbf0481 | 2018-11-16 16:26:04 +0300 | [diff] [blame] | 20 | <button ng-click="tmz = ''">User Timezone</button> |
beccabroek | 569ccf6 | 2018-10-29 13:46:53 -0500 | [diff] [blame] | 21 | </li> |
| 22 | <li> |
| 23 | <button ng-click="tmz = 'UTC'">UTC Timezone</button> |
| 24 | </li> |
| 25 | </ul> |
| 26 | </div> |
Iftekharul Islam | 8b4828a | 2017-04-19 14:37:55 -0500 | [diff] [blame] | 27 | </div> |
beccabroek | 569ccf6 | 2018-10-29 13:46:53 -0500 | [diff] [blame] | 28 | </section> |
Gunnar Mills | 84e114a | 2018-11-14 13:44:41 -0600 | [diff] [blame] | 29 | <!-- search --> |
| 30 | <log-search-control></log-search-control> |
| 31 | <!-- filters --> |
| 32 | <log-filter></log-filter> |
Derick Montague | 30d7c63 | 2019-07-31 22:35:48 -0500 | [diff] [blame] | 33 | <section class="row column event-log__events"> |
beccabroek | 569ccf6 | 2018-10-29 13:46:53 -0500 | [diff] [blame] | 34 | <div id="event__actions-bar" class="row header__actions-bar no-margin"> |
| 35 | <div class="column small-1 large-1 event-log__col-check"> |
| 36 | <label class="control-check"> |
beccabroek | dde251d | 2019-03-13 10:29:08 -0500 | [diff] [blame] | 37 | <input type="checkbox" name="events__check-all" ng-disabled="filteredLogs.length === 0" ng-model="all" ng-checked="((filteredLogs|filter:{selected: true}).length == filteredLogs.length) && filteredLogs.length != 0"/> |
beccabroek | 569ccf6 | 2018-10-29 13:46:53 -0500 | [diff] [blame] | 38 | <span class="control__indicator"></span> |
| 39 | </label> |
| 40 | </div> |
| 41 | <div class="column small-11 end col-logged-events"> |
| 42 | <!-- top bar confirmation - ADD ACTIVE CLASS TO DISPLAY--> |
| 43 | <div class="inline__confirm event__confirm" ng-class="{active: confirm}"> |
| 44 | <div class="inline__confirm-message"> |
| 45 | <p class="h3"><i></i>Are you sure you want to <strong class="ng-binding">delete {{selectedEvents.length}} logs</strong>? |
| 46 | </p> |
| 47 | </div> |
| 48 | <div class="inline__confirm-buttons"> |
Yoshie Muranaka | c86ce3c | 2019-06-05 12:30:30 -0500 | [diff] [blame] | 49 | <button class="btn btn-primary" ng-click="accept()">Yes</button> |
| 50 | <button class="btn btn-primary" ng-click="confirm = false">No</button> |
beccabroek | 569ccf6 | 2018-10-29 13:46:53 -0500 | [diff] [blame] | 51 | </div> |
Iftekharul Islam | 8b4828a | 2017-04-19 14:37:55 -0500 | [diff] [blame] | 52 | </div> |
beccabroek | 569ccf6 | 2018-10-29 13:46:53 -0500 | [diff] [blame] | 53 | <p class="inline" ng-show="selectedEvents.length"><span class="event__select-count">{{selectedEvents.length}}</span> Events are selected</p> |
| 54 | <p class="inline" ng-hide="selectedEvents.length"><span class="event__select-count">{{filteredLogs.length}}</span> Events are logged</p> |
| 55 | <!-- when logs are selected, this text changes to show how many logs are checked --> |
| 56 | <div class="event__actions"> |
Yoshie Muranaka | c86ce3c | 2019-06-05 12:30:30 -0500 | [diff] [blame] | 57 | <button class="btn btn-tertiary" ng-class="{'disabled': (!selectedEvents.length && !all)}" ng-disabled="!selectedEvents.length && !all" ng-click="confirm= ! confirm"> |
| 58 | <icon file="icon-trashcan.svg"></icon>Delete |
beccabroek | 569ccf6 | 2018-10-29 13:46:53 -0500 | [diff] [blame] | 59 | </button> |
Yoshie Muranaka | c86ce3c | 2019-06-05 12:30:30 -0500 | [diff] [blame] | 60 | <button class="btn btn-tertiary" ng-class="{'disabled': ((selectedEvents|unResolvedCount) == 0)}" ng-click="resolve()" ng-disabled="(selectedEvents|unResolvedCount) == 0"> |
| 61 | <icon file="icon-check.svg"></icon>Mark as resolved |
beccabroek | 569ccf6 | 2018-10-29 13:46:53 -0500 | [diff] [blame] | 62 | </button> |
Yoshie Muranaka | c86ce3c | 2019-06-05 12:30:30 -0500 | [diff] [blame] | 63 | <a ng-href="data:text/json;charset=utf-8,{{export_data}}" class="btn btn-tertiary" ng-class="{'disabled': (!selectedEvents.length && !all)}" download="{{export_name}}"><icon file="icon-export.svg"></icon>Export</a> |
beccabroek | 569ccf6 | 2018-10-29 13:46:53 -0500 | [diff] [blame] | 64 | </div> |
| 65 | </div> |
| 66 | </div> |
beccabroek | dde251d | 2019-03-13 10:29:08 -0500 | [diff] [blame] | 67 | <div class="empty__logs" ng-if="filteredLogs.length === 0">{{filteredLogs.length === logs.length ? 'No events have been logged yet.' : 'There are no events that match the selected criteria.'}}</div> |
beccabroek | 569ccf6 | 2018-10-29 13:46:53 -0500 | [diff] [blame] | 68 | <log-event |
| 69 | dir-paginate="event in (filteredLogs = (logs|filter:filterBySeverity|filter:filterByStatus|filter:filterByDate|filter:filterBySearchTerms | orderBy:'-Id'))| itemsPerPage: itemsPerPage" |
| 70 | event="event" |
| 71 | tmz="tmz" |
| 72 | multi-selected="selectedEvents.length > 1" |
| 73 | > |
| 74 | </log-event> |
| 75 | <dir-pagination-controls></dir-pagination-controls> |
| 76 | </section> |
Ed Tanous | bbcf670 | 2017-10-06 13:53:06 -0700 | [diff] [blame] | 77 | </div> <!-- end event log --> |