Use more readable datetime tooltip format in activity log

This commit is contained in:
Johannes Zellner
2018-03-02 18:58:49 +01:00
parent e2a3654ed7
commit 31c414bbe1
2 changed files with 7 additions and 1 deletions
+6
View File
@@ -252,6 +252,12 @@ app.filter('prettyDate', function () {
};
});
app.filter('prettyLongDate', function () {
return function prettyLongDate(time) {
return moment(time).format('MMMM Do YYYY, h:mm:ss a');
};
});
app.filter('markdown2html', function () {
var converter = new showdown.Converter({
extensions: ['targetblank'],
+1 -1
View File
@@ -37,7 +37,7 @@
</thead>
<tbody ng-repeat="eventLog in eventLogs">
<tr ng-click="showEventLogDetails(eventLog)" class="hand">
<td><span uib-tooltip="{{eventLog.creationTime}}" class="arrow">{{ eventLog.creationTime | prettyDate }}</span></td>
<td><span uib-tooltip="{{ eventLog.creationTime | prettyLongDate }}" class="arrow">{{ eventLog.creationTime | prettyDate }}</span></td>
<td>{{ eventLog.source.username || eventLog.source.userId || eventLog.source.authType }} <span ng-show="eventLog.source.ip || eventLog.source.appId"> ({{ eventLog.source.ip || eventLog.source.appId }}) </span> </td>
<td>{{ eventLog | eventLogAction }}</td>
<td ng-bind-html="eventLog | eventLogDetails"></td>