blob: 3921c207aa88d4f922fa05251de5ddef213ceb83 [file] [log] [blame]
Michael Davis428375e2017-08-01 15:48:34 -05001<loader loading="loading"></loader>
Iftekharul Islam8b4828a2017-04-19 14:37:55 -05002<div id="event-log">
beccabroek569ccf62018-10-29 13:46:53 -05003 <div class="row column">
Yoshie Muranakae4194ce2019-05-24 14:33:56 -05004 <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>
beccabroek569ccf62018-10-29 13:46:53 -050010 </div>
11 <section class="row column">
12 <div class="page-header">
beccabroekedf1ab42019-02-15 16:26:38 -060013 <h2 class="inline">All events from the BMC</h2>
beccabroek569ccf62018-10-29 13:46:53 -050014 <div class="event-log__timezone inline float-right">
15 <button class="dropdown__button" ng-click="timezone = timezone == true ? false : true;" toggle-flag="timezone">
Alexander Filippovdbf04812018-11-16 16:26:04 +030016 <span>{{tmz === 'UTC' ? 'UTC Timezone' : 'User Timezone'}}</span>
beccabroek569ccf62018-10-29 13:46:53 -050017 </button>
18 <ul class="dropdown__list inline" ng-show="timezone">
19 <li>
Alexander Filippovdbf04812018-11-16 16:26:04 +030020 <button ng-click="tmz = ''">User Timezone</button>
beccabroek569ccf62018-10-29 13:46:53 -050021 </li>
22 <li>
23 <button ng-click="tmz = 'UTC'">UTC Timezone</button>
24 </li>
25 </ul>
26 </div>
Iftekharul Islam8b4828a2017-04-19 14:37:55 -050027 </div>
beccabroek569ccf62018-10-29 13:46:53 -050028 </section>
Gunnar Mills84e114a2018-11-14 13:44:41 -060029 <!-- search -->
30 <log-search-control></log-search-control>
31 <!-- filters -->
32 <log-filter></log-filter>
Derick Montague30d7c632019-07-31 22:35:48 -050033 <section class="row column event-log__events">
beccabroek569ccf62018-10-29 13:46:53 -050034 <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">
beccabroekdde251d2019-03-13 10:29:08 -050037 <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"/>
beccabroek569ccf62018-10-29 13:46:53 -050038 <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 Muranakac86ce3c2019-06-05 12:30:30 -050049 <button class="btn btn-primary" ng-click="accept()">Yes</button>
50 <button class="btn btn-primary" ng-click="confirm = false">No</button>
beccabroek569ccf62018-10-29 13:46:53 -050051 </div>
Iftekharul Islam8b4828a2017-04-19 14:37:55 -050052 </div>
beccabroek569ccf62018-10-29 13:46:53 -050053 <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 Muranakac86ce3c2019-06-05 12:30:30 -050057 <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
beccabroek569ccf62018-10-29 13:46:53 -050059 </button>
Yoshie Muranakac86ce3c2019-06-05 12:30:30 -050060 <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
beccabroek569ccf62018-10-29 13:46:53 -050062 </button>
Yoshie Muranakac86ce3c2019-06-05 12:30:30 -050063 <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>
beccabroek569ccf62018-10-29 13:46:53 -050064 </div>
65 </div>
66 </div>
beccabroekdde251d2019-03-13 10:29:08 -050067 <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>
beccabroek569ccf62018-10-29 13:46:53 -050068 <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 Tanousbbcf6702017-10-06 13:53:06 -070077</div> <!-- end event log -->