1<loader loading="loading"></loader> 2<div id="event-log"> 3 <div class="row column"> 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> 10 </div> 11 <section class="row column"> 12 <div class="page-header"> 13 <h2 class="inline">All events from the BMC</h2> 14 <div class="event-log__timezone inline float-right"> 15 <button class="dropdown__button" ng-click="timezone = timezone == true ? false : true;" toggle-flag="timezone"> 16 <span>{{tmz === 'UTC' ? 'UTC Timezone' : 'User Timezone'}}</span> 17 </button> 18 <ul class="dropdown__list inline" ng-show="timezone"> 19 <li> 20 <button ng-click="tmz = ''">User Timezone</button> 21 </li> 22 <li> 23 <button ng-click="tmz = 'UTC'">UTC Timezone</button> 24 </li> 25 </ul> 26 </div> 27 </div> 28 </section> 29 <!-- search --> 30 <log-search-control></log-search-control> 31 <!-- filters --> 32 <log-filter></log-filter> 33 <section class="row column event-log__events"> 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"> 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"/> 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"> 49 <button class="btn btn-primary" ng-click="accept()">Yes</button> 50 <button class="btn btn-primary" ng-click="confirm = false">No</button> 51 </div> 52 </div> 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"> 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 59 </button> 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 62 </button> 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> 64 </div> 65 </div> 66 </div> 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> 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> 77</div> <!-- end event log --> 78