1
0
mirror of https://github.com/sismics/docs.git synced 2025-12-17 11:41:41 +00:00

Closes #150: Display file name in audit log

This commit is contained in:
Benjamin Gamard
2017-11-12 02:06:41 +01:00
parent 6f3ae6da9d
commit 517e4a4507
4 changed files with 15 additions and 16 deletions

View File

@@ -21,7 +21,10 @@
<a ng-href="#/document/view/{{ log.target }}">{{ log.message }}</a>
</span>
<span ng-switch-when="File">
<a ng-if="log.message" ng-href="#/document/view/{{ log.message }}/content/file/{{ log.target }}">{{ 'open' | translate }}</a>
<a ng-if="log.message" ng-href="#/document/view/{{ log.message | limitTo: 36 }}/content/file/{{ log.target }}">
<span ng-if="log.message.length > 36">{{ log.message | limitTo: 1000 : 36 }}</span>
<span ng-if="log.message.length == 36">{{ 'open' | translate }}</span>
</a>
<a ng-if="!log.message" ng-href="#/document/file/{{ log.target }}">{{ 'open' | translate }}</a>
</span>
<span ng-switch-when="Comment">