|
@@ -69,17 +69,25 @@ aside.change-list(
|
|
|
|
|
|
|
|
div.description(ng-click="select()")
|
|
div.description(ng-click="select()")
|
|
|
div
|
|
div
|
|
|
- .history-entry-label(
|
|
|
|
|
- ng-if="update.labels.length > 0"
|
|
|
|
|
|
|
+ history-label(
|
|
|
ng-repeat="label in update.labels"
|
|
ng-repeat="label in update.labels"
|
|
|
|
|
+ label-text="label.comment"
|
|
|
|
|
+ label-owner-name="getDisplayNameById(label.user_id)"
|
|
|
|
|
+ label-creation-date-time="label.created_at"
|
|
|
|
|
+ is-owned-by-current-user="label.user_id === $ctrl.currentUser.id"
|
|
|
|
|
+ on-label-delete="deleteLabel(label)"
|
|
|
)
|
|
)
|
|
|
- span.history-entry-label-comment
|
|
|
|
|
- i.fa.fa-tag
|
|
|
|
|
- | {{ label.comment }}
|
|
|
|
|
- button.history-entry-label-delete-btn(
|
|
|
|
|
- stop-propagation="click"
|
|
|
|
|
- ng-click="deleteLabel(label)"
|
|
|
|
|
- ) ×
|
|
|
|
|
|
|
+ //- .history-entry-label(
|
|
|
|
|
+ //- ng-if="update.labels.length > 0"
|
|
|
|
|
+ //- ng-repeat="label in update.labels"
|
|
|
|
|
+ //- )
|
|
|
|
|
+ //- span.history-entry-label-comment
|
|
|
|
|
+ //- i.fa.fa-tag
|
|
|
|
|
+ //- | {{ label.comment }}
|
|
|
|
|
+ //- button.history-entry-label-delete-btn(
|
|
|
|
|
+ //- stop-propagation="click"
|
|
|
|
|
+ //- ng-click="deleteLabel(label)"
|
|
|
|
|
+ //- ) ×
|
|
|
div.time {{ update.meta.end_ts | formatDate:'h:mm a' }}
|
|
div.time {{ update.meta.end_ts | formatDate:'h:mm a' }}
|
|
|
div.action.action-edited(ng-if="history.isV2 && update.pathnames.length > 0")
|
|
div.action.action-edited(ng-if="history.isV2 && update.pathnames.length > 0")
|
|
|
| #{translate("file_action_edited")}
|
|
| #{translate("file_action_edited")}
|
|
@@ -198,28 +206,4 @@ script(type="text/ng-template", id="historyEntryTpl")
|
|
|
li.history-entry-metadata-user(ng-if="::$ctrl.entry.meta.users.length == 0")
|
|
li.history-entry-metadata-user(ng-if="::$ctrl.entry.meta.users.length == 0")
|
|
|
span.name(
|
|
span.name(
|
|
|
ng-style="$ctrl.getUserCSSStyle();"
|
|
ng-style="$ctrl.getUserCSSStyle();"
|
|
|
- ) #{translate("anonymous")}
|
|
|
|
|
-
|
|
|
|
|
-script(type="text/ng-template", id="historyLabelTpl")
|
|
|
|
|
- .history-entry-label(
|
|
|
|
|
- ng-class="{ 'history-entry-label-own' : $ctrl.isOwnedByCurrentUser }"
|
|
|
|
|
- )
|
|
|
|
|
- span.history-entry-label-comment(
|
|
|
|
|
- tooltip-template="'historyLabelTooltipTpl'"
|
|
|
|
|
- tooltip-placement="left"
|
|
|
|
|
- )
|
|
|
|
|
- i.fa.fa-tag
|
|
|
|
|
- | {{ $ctrl.labelText }}
|
|
|
|
|
- button.history-entry-label-delete-btn(
|
|
|
|
|
- ng-if="$ctrl.isOwnedByCurrentUser"
|
|
|
|
|
- stop-propagation="click"
|
|
|
|
|
- ng-click="$ctrl.onLabelDelete()"
|
|
|
|
|
- ) ×
|
|
|
|
|
-
|
|
|
|
|
-script(type="text/ng-template", id="historyLabelTooltipTpl")
|
|
|
|
|
- .history-label-tooltip
|
|
|
|
|
- p.history-label-tooltip-title
|
|
|
|
|
- i.fa.fa-tag
|
|
|
|
|
- | {{ $ctrl.labelText }}
|
|
|
|
|
- p.history-label-tooltip-owner Created by {{ $ctrl.labelOwnerName }}
|
|
|
|
|
- time.history-label-tooltip-datetime {{ labelCreationDateTime | formatDate }}
|
|
|
|
|
|
|
+ ) #{translate("anonymous")}
|