1<div id="event-log">
2    <div class="row column">
3        <h1>Event log</h1>
4    </div>
5    <section class="row column">
6        <div class="page-header">
7            <h2 class="inline h4">All events from the BMC</h2>
8            <div class="event-log__timezone inline float-right">
9                <button class="dropdown__button" ng-click="timezone = timezone == true ? false : true;" toggle-flag="timezone"
10                        >User timezone: <span ng-show="tmz== 'EDT'">EDT (UTC-4)</span><span ng-show="tmz=='UTC'">UTC - 0</span>
11                </button>
12                <ul class="dropdown__list inline" ng-show="timezone">
13                    <li>
14                        <button ng-click="tmz = 'EDT'; timezone=false;">User timezone: EDT (UTC-4)</button>
15                    </li>
16                    <li>
17                        <button ng-click="tmz = 'UTC'; timezone=false;">UTC Timezone : UTC - 0</button>
18                    </li>
19                </ul>
20            </div>
21        </div>
22    </section>
23    <!-- Filters -->
24    <section class="row column">
25        <!-- search -->
26        <log-search-control></log-search-control>
27        <!-- filters -->
28        <log-filter></log-filter>
29    </section> <!-- end filter -->
30
31    <section id="event-log__events" class="row column">
32        <div id="event__actions-bar" class="row header__actions-bar no-margin">
33            <div class="column small-1 large-1 event-log__col-check">
34                <label class="control-check">
35                    <input type="checkbox" name="events__check-all" ng-model="all" ng-checked="(logs|filter:{selected: true}).length == logs.length"/>
36                    <span class="control__indicator"></span>
37                </label>
38            </div>
39            <div class="column small-11 end col-logged-events">
40                <!-- top bar confirmation - ADD ACTIVE CLASS TO DISPLAY-->
41                <div class="inline__confirm event__confirm" ng-class="{active: confirm}">
42                    <div class="inline__confirm-message">
43                        <p class="h3"><i></i>Are you sure you want to <strong class="ng-binding">delete {{selectedEvents.length}} events</strong>?
44                        </p>
45                    </div>
46                    <div class="inline__confirm-buttons">
47                        <button class="btn-primary" ng-click="accept()">Yes</button>
48                        <button class="btn-primary" ng-click="confirm = false">No</button>
49                    </div>
50                </div>
51                <p class="inline" ng-show="selectedEvents.length"><span class="event__select-count">{{selectedEvents.length}}</span> Events are Selected</p>
52                <p class="inline" ng-hide="selectedEvents.length"><span class="event__select-count">{{filteredLogs.length}}</span> Events are Logged</p>
53                <!-- when logs are selected, this text changes to show how many logs are checked -->
54                <div class="event__actions">
55                    <button class="inline btn-delete" ng-show="selectedEvents.length || all" ng-click="confirm= ! confirm">
56                        <img class="event__icon" src="assets/images/icon-trashcan-white.svg" alt="">Delete
57                    </button>
58                    <button class="inline btn-resolve" ng-show="selectedEvents.length || all" ng-click="resolve()">
59                        <img class="event__icon" src="assets/images/icon-checklist-white.svg" alt="">Mark as resolved
60                    </button>
61                    <a ng-href="data:text/json;charset=utf-8,{{export_data}}" class="inline btn-export"  download="{{export_name}}" ng-show="selectedEvents.length || all">Export</a>
62                </div>
63            </div>
64        </div>
65        <log-event
66        dir-paginate="event in (filteredLogs = (logs|filter:filterBySeverity|filter:filterByStatus|filter:filterByDate|filter:filterBySearchTerms | orderBy:'+Id'))| itemsPerPage: itemsPerPage"
67        event="event"
68        tmz="tmz">
69        </log-event>
70    </section>
71    <dir-pagination-controls template-url="common/directives/dirPagination.tpl.html"></dir-pagination-controls>
72</div> <!-- end event log -->