From 1e471a203c0f496d6bff8394265c563567e21ca4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Garc=C3=ADa?= Date: Thu, 26 Apr 2018 16:55:06 +0200 Subject: [PATCH] Template for activity entries of issues severity or type changes --- app/locales/taiga/locale-en.json | 2 ++ app/modules/history/history/history-diff.jade | 10 ++++++++++ .../history/history-templates/history-priority.jade | 9 +++++++++ .../history/history-templates/history-severity.jade | 9 +++++++++ 4 files changed, 30 insertions(+) create mode 100644 app/modules/history/history/history-templates/history-priority.jade create mode 100644 app/modules/history/history/history-templates/history-severity.jade 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]}}