blob: be7b5a0b57a36c5a3d6702a9d2a976cf142e50c8 [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">
Iftekharul Islamf2d74642017-07-10 16:42:14 -050010 <button class="btn-primary" ng-click="accept(event)">Yes</button>
Iftekharul Islam8b4828a2017-04-19 14:37:55 -050011 <button class="btn-primary" ng-click="event.confirm=false;">No</button>
12 </div>
13 </div>
Iftekharul Islamc0161392017-06-14 15:46:15 -050014 <div class="column small-1 large-2 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 Islam96bbf312017-08-22 13:44:38 -050018 <span class="control__indicator"></span>
Iftekharul Islam8b4828a2017-04-19 14:37:55 -050019 </label>
20 </div>
Michael Davisedb195a2017-07-13 19:07:19 -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 Davisedb195a2017-07-13 19:07:19 -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>
Michael Davisedb195a2017-07-13 19:07:19 -050025 <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>
26 <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>
27 <p class="inline event__timestamp">{{event.Timestamp| date:'MM/dd/yyyy HH:mm:ss '+tmz: tmz}}</p></div>
Iftekharul Islam8b4828a2017-04-19 14:37:55 -050028 <div>
Michael Davisedb195a2017-07-13 19:07:19 -050029 <p class="inline event__description">{{event.Severity}}</p>
30 </div>
Iftekharul Islam8b4828a2017-04-19 14:37:55 -050031 <div class="column small-1 large-1">
Iftekharul Islam96bbf312017-08-22 13:44:38 -050032 <button class="accord-trigger" ng-class="{'active': event.meta}"
33 ng-click="event.meta = ! event.meta"></button>
Iftekharul Islam8b4828a2017-04-19 14:37:55 -050034 </div>
Michael Davisedb195a2017-07-13 19:07:19 -050035 </div>
Iftekharul Islam8b4828a2017-04-19 14:37:55 -050036 <div class="row event__metadata-row" ng-class="{'active': event.meta}">
37 <div class="column small-1 large-1 event-log__col-check">&nbsp;</div>
38 <div class="column small-11 large-11 end">
39 <div class="event__metadata">{{event.additional_data}}
40 </div>
41 <div>
42 <div class="event__actions">
43 <button class="btn-meta-copy" clipboard text="event.additional_data" on-copied="copySuccess(event)" on-error="copyfailed(err)">
44 <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>
45 </button>
Iftekharul Islam96bbf312017-08-22 13:44:38 -050046 <button
47 class="btn-delete"
48 ng-class="{'disabled': multiSelected}"
49 ng-click="event.confirm= ! event.confirm"
50 ng-disabled="multiSelected">
51 <img
Iftekharul Islam8b4828a2017-04-19 14:37:55 -050052 class="event__icon"
53 src="assets/images/icon-trashcan.svg"
54 alt=""/>Delete
55 </button>
Iftekharul Islam96bbf312017-08-22 13:44:38 -050056 <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-checklist.svg" alt=""/>Resolved</button>
Iftekharul Islam8b4828a2017-04-19 14:37:55 -050057 </div>
58 <div class="event__related" ng-show="event.related_items.length">
59 <p class="inline event__related-label">Related items:</p>
60 <p class="event__related-item" ng-repeat="item in event.related_items">{{item}}</p>
61 </div>
62 </div>
63 </div>
64 </div>
Iftekharul Islam96bbf312017-08-22 13:44:38 -050065</div>