From dd722f94c92fac7425910994ca790cf250830114 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Tue, 11 Sep 2018 08:44:51 +0200 Subject: [PATCH] Improved UX if ticket title is ''. --- .../javascripts/app/views/agent_ticket_view/detail.jst.eco | 2 +- app/assets/javascripts/app/views/link/info.jst.eco | 2 +- .../javascripts/app/views/popover/user_ticket_list.jst.eco | 2 +- app/assets/javascripts/app/views/ticket_zoom/title.jst.eco | 2 +- .../javascripts/app/views/time_accounting/by_ticket.jst.eco | 2 +- .../javascripts/app/views/widget/ticket_stats_list.jst.eco | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/assets/javascripts/app/views/agent_ticket_view/detail.jst.eco b/app/assets/javascripts/app/views/agent_ticket_view/detail.jst.eco index 050a35b40..ba30a90de 100644 --- a/app/assets/javascripts/app/views/agent_ticket_view/detail.jst.eco +++ b/app/assets/javascripts/app/views/agent_ticket_view/detail.jst.eco @@ -12,7 +12,7 @@ <%- ticket.customer.avatar("50", "", "userInfo-avatar") %> -

<%= ticket.title %>

+

<%= ticket.title || '-' %>

diff --git a/app/assets/javascripts/app/views/link/info.jst.eco b/app/assets/javascripts/app/views/link/info.jst.eco index 52b191925..7a757986e 100644 --- a/app/assets/javascripts/app/views/link/info.jst.eco +++ b/app/assets/javascripts/app/views/link/info.jst.eco @@ -9,7 +9,7 @@ <%- @Icon('task-state', item.iconClass()) %>
- <%= item.title %> + <%= item.title || '-' %> <%- @humanTime(item.created_at) %>
diff --git a/app/assets/javascripts/app/views/popover/user_ticket_list.jst.eco b/app/assets/javascripts/app/views/popover/user_ticket_list.jst.eco index 9216f53d1..65de820b5 100644 --- a/app/assets/javascripts/app/views/popover/user_ticket_list.jst.eco +++ b/app/assets/javascripts/app/views/popover/user_ticket_list.jst.eco @@ -5,7 +5,7 @@ <%- @Icon('task-state', ticket.iconClass()) %>
diff --git a/app/assets/javascripts/app/views/ticket_zoom/title.jst.eco b/app/assets/javascripts/app/views/ticket_zoom/title.jst.eco index c4d66f32c..7687f434f 100644 --- a/app/assets/javascripts/app/views/ticket_zoom/title.jst.eco +++ b/app/assets/javascripts/app/views/ticket_zoom/title.jst.eco @@ -1 +1 @@ -
<%= @object.title %>
\ No newline at end of file +
<%= @object.title || '-' %>
\ No newline at end of file diff --git a/app/assets/javascripts/app/views/time_accounting/by_ticket.jst.eco b/app/assets/javascripts/app/views/time_accounting/by_ticket.jst.eco index 0f395dbf9..802dd1c93 100644 --- a/app/assets/javascripts/app/views/time_accounting/by_ticket.jst.eco +++ b/app/assets/javascripts/app/views/time_accounting/by_ticket.jst.eco @@ -20,7 +20,7 @@ <% for row in @rows: %>
<%= row.ticket.number %> - <%= row.ticket.title %> + <%= row.ticket.title || '-' %> <%= row.customer %> <%= row.organization %> <%= row.agent %> diff --git a/app/assets/javascripts/app/views/widget/ticket_stats_list.jst.eco b/app/assets/javascripts/app/views/widget/ticket_stats_list.jst.eco index 43845ece2..1cf1bae10 100644 --- a/app/assets/javascripts/app/views/widget/ticket_stats_list.jst.eco +++ b/app/assets/javascripts/app/views/widget/ticket_stats_list.jst.eco @@ -8,7 +8,7 @@ <%- @Icon('task-state', ticket.iconClass()) %>
- <%= ticket.title %> + <%= ticket.title || '-' %> <%- @humanTime(ticket.created_at, false, 'time') %>