cleanup auditlog css

This commit is contained in:
Benjamin Gamard 2018-03-05 15:59:00 +01:00
parent 0b14ab5032
commit 71f15e1736
3 changed files with 13 additions and 10 deletions

View File

@ -1,13 +1,13 @@
<table class="table">
<tr ng-repeat="log in logs">
<td width="20%">{{ log.create_date | date: $root.dateTimeFormat }}</td>
<td width="20%">
<a ng-href="#/user/{{ log.username }}">
<td width="20%" class="text-muted small va-middle">{{ log.create_date | timeAgo: $root.dateTimeFormat }}</td>
<td width="20%" class="va-middle">
<a ng-href="#/user/{{ log.username }}" class="btn btn-xs">
<span class="glyphicon glyphicon-user"></span>
{{ log.username }}
</a>
</td>
<td>
<td class="va-middle">
<span ng-class="{ 'text-danger': log.type == 'DELETE', 'text-info': log.type == 'UPDATE', 'text-success': log.type == 'CREATE' }">
{{ 'directive.auditlog.' + log.class | translate }}
<span ng-switch="log.type">
@ -32,7 +32,7 @@
<span ng-switch-when="Comment">
<a ng-href="#/document/view/{{ log.message }}">{{ 'see' | translate }}</a>
</span>
<span ng-switch-when="Acl">
<span ng-switch-when="Acl" class="label label-default">
{{ 'acl.' + log.message | translate }}
</span>
<span ng-switch-when="Tag">

View File

@ -19,11 +19,10 @@
<dt>{{ 'document.contributors' | translate }}</dt>
<dd>
<span ng-repeat="contributor in document.contributors">
<span class="btn btn-link btn-xs">
<a href="#/user/{{ contributor.username }}">
{{ contributor.username }}
</a>
</span>
<a class="btn btn-xs" href="#/user/{{ contributor.username }}">
<span class="glyphicon glyphicon-user"></span>
{{ contributor.username }}
</a>
</span>
</dd>
<dt ng-if="document.relations.length > 0">{{ 'document.relations' | translate }}</dt>

View File

@ -541,6 +541,10 @@ input[readonly].share-link {
margin-right: 10px;
}
.va-middle {
vertical-align: middle !important;
}
// BS customizations
.btn {
transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;