blob: 2f02315461af0fe9001182daf5ba345f087d51c8 [file] [log] [blame]
Iftekharul Islam8b4828a2017-04-19 14:37:55 -05001<div class="row column event-log__single-event"
2 ng-class="{'active': event.meta, 'selected': event.selected}">
3 <div class="row">
4 <div class="inline__confirm" ng-class="{active: event.confirm}">
5 <div class="inline__confirm-message">
6 <p class="h3"><i></i>Are you sure you want to <strong class="ng-binding">delete this
7 event</strong>?</p>
8 </div>
9 <div class="inline__confirm-buttons">
10 <button class="btn-primary" ng-click="accept()">Yes</button>
11 <button class="btn-primary" ng-click="event.confirm=false;">No</button>
12 </div>
13 </div>
Michael Davis522a5522017-06-09 13:51:05 -050014 <div class="column small-1 large-1 event-log__col-check">
Iftekharul Islam8b4828a2017-04-19 14:37:55 -050015 <label class="control-check">
16 <input type="checkbox" name="events__check" ng-click="event.selected= ! event.selected"
17 ng-checked="event.selected"/>
Iftekharul Islam4390b022017-06-05 09:44:50 -050018 <div class="control__indicator"></div>
Iftekharul Islam8b4828a2017-04-19 14:37:55 -050019 </label>
20 </div>
Michael Davis522a5522017-06-09 13:51:05 -050021 <div class="column small-9 large-10 event-log__event-info"
Iftekharul Islam8b4828a2017-04-19 14:37:55 -050022 ng-click="event.meta = ! event.meta">
Michael Davis522a5522017-06-09 13:51:05 -050023 <p class="inline event__id">#{{event.Id}}</p>
Iftekharul Islam8b4828a2017-04-19 14:37:55 -050024 <p class="inline event__priority event-resolved" ng-hide="event.Resolved == 0">Resolved</p>
25 <p class="inline event__priority med-priority" ng-class="{'low-priority': event.priority == 'Low', 'medium-priority': event.priority == 'Medium', 'high-priority': event.priority == 'High'}" ng-hide="event.Resolved == 1">{{event.priority}}</p>
26 <p class="inline event__severity">{{event.severity_code}}</p>
Michael Davis522a5522017-06-09 13:51:05 -050027 <p class="inline event__timestamp">{{event.Timestamp| date:'MM/dd/yyyy HH:mm:ss '+tmz: tmz}}</p>
Iftekharul Islam8b4828a2017-04-19 14:37:55 -050028 <div>
Michael Davis522a5522017-06-09 13:51:05 -050029 <p class="inline event__description">{{event.Severity}}</p>
30 </div>
Iftekharul Islam8b4828a2017-04-19 14:37:55 -050031 </div>
32 <div class="column small-1 large-1">
33 <button class="accord-trigger" ng-class="{'active': event.meta}"
34 ng-click="event.meta = ! event.meta"></button>
35 </div>
36 </div>
37 <div class="row event__metadata-row" ng-class="{'active': event.meta}">
38 <div class="column small-1 large-1 event-log__col-check">&nbsp;</div>
39 <div class="column small-11 large-11 end">
40 <div class="event__metadata">{{event.additional_data}}
41 </div>
42 <div>
43 <div class="event__actions">
44 <button class="btn-meta-copy" clipboard text="event.additional_data" on-copied="copySuccess(event)" on-error="copyfailed(err)">
45 <img class="event__icon" src="assets/images/icon-copy.svg" alt=""/><span ng-if="!event.copied">Copy</span><span ng-if="event.copied">Copied</span>
46 </button>
47 <button class="btn-delete" ng-click="event.confirm= ! event.confirm"><img
48 class="event__icon"
49 src="assets/images/icon-trashcan.svg"
50 alt=""/>Delete
51 </button>
52 <button class="btn-resolve"><img class="event__icon" src="assets/images/icon-checklist.svg" alt=""/>Resolved</button>
53 </div>
54 <div class="event__related" ng-show="event.related_items.length">
55 <p class="inline event__related-label">Related items:</p>
56 <p class="event__related-item" ng-repeat="item in event.related_items">{{item}}</p>
57 </div>
58 </div>
59 </div>
60 </div>
61</div>