From b05edf1915e045e21ba43256ca664eaf55f9f33e Mon Sep 17 00:00:00 2001 From: Mantas Date: Fri, 19 Feb 2021 14:19:42 +0200 Subject: [PATCH] Follow up - 5ee6418c18ad723819d03431ae8de118624bad73 - UI Refactoring: Dashbboard item texts get rendered below actual item. --- .../stats/ticket_channel_distribution.jst.eco | 20 +++++++++---------- .../dashboard/stats/ticket_escalation.jst.eco | 2 -- .../dashboard/stats/ticket_in_process.jst.eco | 2 -- .../stats/ticket_load_measure.jst.eco | 6 +++--- .../dashboard/stats/ticket_reopen.jst.eco | 2 -- .../stats/ticket_waiting_time.jst.eco | 4 ++-- 6 files changed, 15 insertions(+), 21 deletions(-) diff --git a/app/assets/javascripts/app/views/dashboard/stats/ticket_channel_distribution.jst.eco b/app/assets/javascripts/app/views/dashboard/stats/ticket_channel_distribution.jst.eco index c96e6d220..4b713a384 100644 --- a/app/assets/javascripts/app/views/dashboard/stats/ticket_channel_distribution.jst.eco +++ b/app/assets/javascripts/app/views/dashboard/stats/ticket_channel_distribution.jst.eco @@ -8,17 +8,17 @@
<% for id, channel of @StatsTicketChannelDistribution.channels: %> -
-
- <%- @Icon(channel.icon, 'stat-channel-icon') %> +
+
+ <%- @Icon(channel.icon, 'stat-channel-icon') %> +
+
+
+
+
+
<%- channel.overal_percentage %>%
-
-
-
-
-
<%- channel.overal_percentage %>%
-
-
+
<% end %>
diff --git a/app/assets/javascripts/app/views/dashboard/stats/ticket_escalation.jst.eco b/app/assets/javascripts/app/views/dashboard/stats/ticket_escalation.jst.eco index 900dae4ed..ae42aca64 100644 --- a/app/assets/javascripts/app/views/dashboard/stats/ticket_escalation.jst.eco +++ b/app/assets/javascripts/app/views/dashboard/stats/ticket_escalation.jst.eco @@ -12,6 +12,4 @@
<%- @T('%s of my tickets escalated.', @StatsTicketEscalation.own) %>
<%- @T('Total: %s', @StatsTicketEscalation.total) %>
-
<%- @T('%s of my tickets escalated.', @StatsTicketEscalation.own) %>
-
<%- @T('Total: %s', @StatsTicketEscalation.total) %>
diff --git a/app/assets/javascripts/app/views/dashboard/stats/ticket_in_process.jst.eco b/app/assets/javascripts/app/views/dashboard/stats/ticket_in_process.jst.eco index ddd126490..f1c82a833 100644 --- a/app/assets/javascripts/app/views/dashboard/stats/ticket_in_process.jst.eco +++ b/app/assets/javascripts/app/views/dashboard/stats/ticket_in_process.jst.eco @@ -12,6 +12,4 @@
<%- @T('%s% are currently in process', @StatsTicketInProcess.percent) %>
<%- @T('Average: %s%', @StatsTicketInProcess.average_per_agent) %>
-
<%- @T('%s% are currently in process', @StatsTicketInProcess.percent) %>
-
<%- @T('Average: %s%', @StatsTicketInProcess.average_per_agent) %>
diff --git a/app/assets/javascripts/app/views/dashboard/stats/ticket_load_measure.jst.eco b/app/assets/javascripts/app/views/dashboard/stats/ticket_load_measure.jst.eco index 2eb0566fd..592efae29 100644 --- a/app/assets/javascripts/app/views/dashboard/stats/ticket_load_measure.jst.eco +++ b/app/assets/javascripts/app/views/dashboard/stats/ticket_load_measure.jst.eco @@ -15,8 +15,8 @@ <%- @Icon('total-tickets', 'total-tickets') %> - <%- @Icon('total-tickets', 'total-tickets') %> + +
<%- @T('Tickets assigned to me: %s of %s', @StatsTicketLoadMeasure.own, @StatsTicketLoadMeasure.total) %>
+
<%- @T('Average: %s', @StatsTicketLoadMeasure.average_per_agent) %>
-
<%- @T('Tickets assigned to me: %s of %s', @StatsTicketLoadMeasure.own, @StatsTicketLoadMeasure.total) %>
-
<%- @T('Average: %s', @StatsTicketLoadMeasure.average_per_agent) %>
diff --git a/app/assets/javascripts/app/views/dashboard/stats/ticket_reopen.jst.eco b/app/assets/javascripts/app/views/dashboard/stats/ticket_reopen.jst.eco index a4fc73598..4e13354e0 100644 --- a/app/assets/javascripts/app/views/dashboard/stats/ticket_reopen.jst.eco +++ b/app/assets/javascripts/app/views/dashboard/stats/ticket_reopen.jst.eco @@ -12,6 +12,4 @@
<%- @T('%s% have been reopened', @StatsTicketReopen.percent) %>
<%- @T('Average: %s%', @StatsTicketReopen.average_per_agent) %>
-
<%- @T('%s% have been reopened', @StatsTicketReopen.percent) %>
-
<%- @T('Average: %s%', @StatsTicketReopen.average_per_agent) %>
diff --git a/app/assets/javascripts/app/views/dashboard/stats/ticket_waiting_time.jst.eco b/app/assets/javascripts/app/views/dashboard/stats/ticket_waiting_time.jst.eco index 452224c3b..7ef19c345 100644 --- a/app/assets/javascripts/app/views/dashboard/stats/ticket_waiting_time.jst.eco +++ b/app/assets/javascripts/app/views/dashboard/stats/ticket_waiting_time.jst.eco @@ -13,7 +13,7 @@
+
<%- @T('My handling time: %s minutes', @StatsTicketWaitingTime.handling_time) %>
+
<%- @T('Average: %s minutes', @StatsTicketWaitingTime.average_per_agent) %>
-
<%- @T('My handling time: %s minutes', @StatsTicketWaitingTime.handling_time) %>
-
<%- @T('Average: %s minutes', @StatsTicketWaitingTime.average_per_agent) %>