blob: 8311a870d0c0cd99c23cec286e88ea22748dac5e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
<div class="row column event-log__single-event"
ng-class="{'active': event.meta, 'selected': event.selected}">
<div class="row">
<div class="inline__confirm" ng-class="{active: event.confirm}">
<div class="inline__confirm-message">
<p class="h3"><i></i>Are you sure you want to <strong class="ng-binding">delete this
event</strong>?</p>
</div>
<div class="inline__confirm-buttons">
<button class="btn-primary" ng-click="accept(event)">Yes</button>
<button class="btn-primary" ng-click="event.confirm=false;">No</button>
</div>
</div>
<div class="column small-1 large-2 event-log__col-check">
<label class="control-check">
<input type="checkbox" name="events__check" ng-click="event.selected= ! event.selected"
ng-checked="event.selected"/>
<span class="control__indicator"></span>
</label>
</div>
<div class="column small-9 large-10 event-log__event-info"
ng-click="event.meta = ! event.meta">
<p class="inline event__id">#{{event.Id}}</p>
<p class="inline event__priority event-resolved" ng-hide="event.Resolved == 0">Resolved</p>
<p class="inline event__priority" ng-class="{'low-priority': event.priority == 'Low', 'medium-priority': event.priority == 'Medium', 'high-priority': event.priority == 'High'}">{{event.priority}}</p>
<p class="inline event__severity" ng-class="{'low-priority': event.priority == 'Low', 'medium-priority': event.priority == 'Medium', 'high-priority': event.priority == 'High'}">{{event.severity_code}}</p>
<p class="inline event__timestamp">{{event.Timestamp| date:'MM/dd/yyyy HH:mm:ss '+tmz: tmz}}</p></div>
<div>
<p class="inline event__description">{{event.Severity}}</p>
</div>
<div class="column small-1 large-1">
<span class="button accord-trigger" ng-class="{'active': event.meta}"
ng-click="event.meta = ! event.meta" aria-hidden="true"></span>
</div>
</div>
<div class="row event__metadata-row" ng-class="{'active': event.meta}">
<div class="column small-1 large-1 event-log__col-check"> </div>
<div class="column small-11 large-11 end">
<div class="event__metadata">{{event.additional_data}}
</div>
<div>
<div class="event__actions">
<button class="btn-meta-copy" clipboard text="event.additional_data" on-copied="copySuccess(event)" on-error="copyfailed(err)">
<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>
</button>
<button
class="btn-delete"
ng-class="{'disabled': multiSelected}"
ng-click="event.confirm= ! event.confirm"
ng-disabled="multiSelected">
<img
class="event__icon"
src="assets/images/icon-trashcan.svg"
alt=""/>Delete
</button>
<button class="btn-resolve" ng-class="{'disabled': (event.Resolved == 1 || multiSelected)}" ng-click="resolveEvent(event)" ng-disabled="event.Resolved == 1 || multiSelected"><img class="event__icon" src="assets/images/icon-check.svg" alt=""/>Mark as resolved</button>
</div>
<div class="event__related" ng-show="event.related_items.length">
<p class="inline event__related-label">Related items:</p>
<p class="event__related-item" ng-repeat="item in event.related_items">{{item}}</p>
</div>
</div>
</div>
</div>
</div>
|