|
@@ -3,6 +3,7 @@ aside.change-list(
|
|
|
ng-controller="HistoryV2ListController"
|
|
ng-controller="HistoryV2ListController"
|
|
|
)
|
|
)
|
|
|
history-entries-list(
|
|
history-entries-list(
|
|
|
|
|
+ ng-if="!history.showOnlyLabels"
|
|
|
entries="history.updates"
|
|
entries="history.updates"
|
|
|
current-user="user"
|
|
current-user="user"
|
|
|
users="projectUsers"
|
|
users="projectUsers"
|
|
@@ -13,6 +14,10 @@ aside.change-list(
|
|
|
on-entry-select="handleEntrySelect(selectedEntry)"
|
|
on-entry-select="handleEntrySelect(selectedEntry)"
|
|
|
on-label-delete="handleLabelDelete(label)"
|
|
on-label-delete="handleLabelDelete(label)"
|
|
|
)
|
|
)
|
|
|
|
|
+ history-labels-list(
|
|
|
|
|
+ ng-if="history.showOnlyLabels"
|
|
|
|
|
+ labels="history.labels"
|
|
|
|
|
+ )
|
|
|
|
|
|
|
|
aside.change-list(
|
|
aside.change-list(
|
|
|
ng-if="history.isV2 && history.viewMode === HistoryViewModes.COMPARE"
|
|
ng-if="history.isV2 && history.viewMode === HistoryViewModes.COMPARE"
|
|
@@ -193,4 +198,15 @@ 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")}
|
|
|
|
|
|
|
+ ) #{translate("anonymous")}
|
|
|
|
|
+
|
|
|
|
|
+script(type="text/ng-template", id="historyLabelsListTpl")
|
|
|
|
|
+ history-label(
|
|
|
|
|
+ ng-repeat="label in $ctrl.labels"
|
|
|
|
|
+ show-tooltip="false"
|
|
|
|
|
+ label-text="label.comment"
|
|
|
|
|
+ label-owner-name="$ctrl.displayNameById(label.user_id)"
|
|
|
|
|
+ label-creation-date-time="label.created_at"
|
|
|
|
|
+ is-owned-by-current-user="label.user_id === $ctrl.currentUser.id"
|
|
|
|
|
+ on-label-delete="$ctrl.onLabelDelete({ label: label })"
|
|
|
|
|
+ )
|