diff --git a/app/locales/taiga/locale-en.json b/app/locales/taiga/locale-en.json index 4955c071..cf525c24 100644 --- a/app/locales/taiga/locale-en.json +++ b/app/locales/taiga/locale-en.json @@ -1232,6 +1232,8 @@ "FIELDS": { "SUBJECT": "subject", "DESCRIPTION": "description", + "PRIORITY": "priority", + "SEVERITY": "severity", "STATUS": "status", "TYPE": "type", "ASSIGNED_TO": "assigned to", diff --git a/app/modules/history/history/history-diff.jade b/app/modules/history/history/history-diff.jade index 158c0ce0..36016a82 100644 --- a/app/modules/history/history/history-diff.jade +++ b/app/modules/history/history/history-diff.jade @@ -13,6 +13,16 @@ ) include history-templates/history-milestone +.diff-wrapper( + ng-if="vm.type == 'priority'" +) + include history-templates/history-priority + +.diff-wrapper( + ng-if="vm.type == 'severity'" +) + include history-templates/history-severity + .diff-wrapper( ng-if="vm.type == 'status'" ) diff --git a/app/modules/history/history/history-templates/history-priority.jade b/app/modules/history/history/history-templates/history-priority.jade new file mode 100644 index 00000000..a763da88 --- /dev/null +++ b/app/modules/history/history/history-templates/history-priority.jade @@ -0,0 +1,9 @@ +.diff-status-wrapper + span.key( + translate="ACTIVITY.FIELDS.PRIORITY" + ) + span.diff(ng-if="vm.diff[0]") {{vm.diff[0]}} + tg-svg( + svg-icon="icon-arrow-right" + ) + span.diff(ng-if="vm.diff[1]") {{vm.diff[1]}} diff --git a/app/modules/history/history/history-templates/history-severity.jade b/app/modules/history/history/history-templates/history-severity.jade new file mode 100644 index 00000000..219e38b8 --- /dev/null +++ b/app/modules/history/history/history-templates/history-severity.jade @@ -0,0 +1,9 @@ +.diff-status-wrapper + span.key( + translate="ACTIVITY.FIELDS.SEVERITY" + ) + span.diff(ng-if="vm.diff[0]") {{vm.diff[0]}} + tg-svg( + svg-icon="icon-arrow-right" + ) + span.diff(ng-if="vm.diff[1]") {{vm.diff[1]}}