cleanup mail eventlog ui

This commit is contained in:
Girish Ramakrishnan
2020-02-12 23:17:24 -08:00
parent 8ca51f1877
commit 43b49ef4c9
3 changed files with 13 additions and 17 deletions

View File

@@ -97,10 +97,11 @@
<thead>
<tr>
<th style="width: 5%"><!-- Direction --></th>
<th style="width: 15%">Time</th>
<th style="width: 30%">From</th>
<th style="width: 30%">To</th>
<th style="width: 5%"><!-- Type --></th>
<th style="width: 10%">Time</th>
<th style="width: 15%">Txn ID</th>
<th style="width: 25%">From</th>
<th style="width: 25%">To</th>
<th style="width: 5%">Event</th>
</tr>
</thead>
<tbody ng-show="activity.busy">
@@ -113,22 +114,18 @@
<tbody ng-repeat="eventlog in activity.eventLogs" ng-hide="activity.busy">
<tr ng-click="activity.showEventLogDetails(eventlog)" class="hand">
<td class="no-wrap">
<i class="fas fa-upload" ng-show="eventlog.direction === 'outbound'" uib-tooltip="Outgoing"></i>
<i class="fas fa-download" ng-show="eventlog.direction === 'inbound'" uib-tooltip="Incoming"></i>
<i class="fas fa-arrow-circle-left" ng-show="eventlog.direction === 'outbound'" uib-tooltip="Outgoing"></i>
<i class="fas fa-arrow-circle-right" ng-show="eventlog.direction === 'inbound'" uib-tooltip="Incoming"></i>
<i class="fas fa-ban" ng-show="eventlog.details.spamStatus.indexOf('Yes,') === 0" uib-tooltip="Spam"></i>
</td>
<td class="no-wrap"><span uib-tooltip="{{ eventlog.ts | prettyLongDate }}" class="arrow">{{ eventlog.ts | prettyDate }}</span></td>
<td class="no-wrap"><span uib-tooltip="{{ eventlog.uuid }}">{{ eventlog.uuid.slice(0, 8) }}</span></td>
<td class="elide-table-cell">{{ eventlog.mailFrom | prettyEmailAddresses }}</td>
<td class="elide-table-cell">{{ eventlog.rcptTo | prettyEmailAddresses }}</td>
<td class="no-wrap">
<i class="fas fa-check" ng-show="eventlog.type === 'received'" uib-tooltip="Received"></i>
<i class="fas fa-check" ng-show="eventlog.type === 'delivered'" uib-tooltip="Delivered"></i>
<i class="fas fa-tasks" ng-show="eventlog.type === 'queued'" uib-tooltip="Queued"></i>
<i class="fas fa-ban" ng-show="eventlog.type === 'denied'" uib-tooltip="Denied"></i>
<!-- {{ eventlog.type }} -->
</td>
<td class="elide-table-cell" style="text-transform: capitalize">{{ eventlog.type }}</td>
</tr>
<tr ng-show="activity.activeEventLog === eventlog">
<td colspan="5">
<td colspan="6">
<pre class="eventlog-details">{{ eventlog.details | json }}</pre>
</td>
</tr>