Improved UX if ticket title is ''.

This commit is contained in:
Martin Edenhofer 2018-09-11 08:44:51 +02:00
parent ccbf10cb7a
commit dd722f94c9
6 changed files with 6 additions and 6 deletions

View file

@ -12,7 +12,7 @@
</td> </td>
<td> <td>
<%- ticket.customer.avatar("50", "", "userInfo-avatar") %> <%- ticket.customer.avatar("50", "", "userInfo-avatar") %>
<h2 style="margin-top: 0px;"><a href="<%- ticket.uiUrl() %>" data-type="edit"><%= ticket.title %></a></h2> <h2 style="margin-top: 0px;"><a href="<%- ticket.uiUrl() %>" data-type="edit"><%= ticket.title || '-' %></a></h2>
<div class="horizontal"> <div class="horizontal">
<div class="vertical flex"> <div class="vertical flex">
<table style="width: 100%;"> <table style="width: 100%;">

View file

@ -9,7 +9,7 @@
<%- @Icon('task-state', item.iconClass()) %> <%- @Icon('task-state', item.iconClass()) %>
</div> </div>
<div class="task-text"> <div class="task-text">
<a class="name ticket-popover" data-id="<%- item.id %>" href="#ticket/zoom/<%= item.id %>"><%= item.title %></a> <a class="name ticket-popover" data-id="<%- item.id %>" href="#ticket/zoom/<%= item.id %>"><%= item.title || '-' %></a>
<%- @humanTime(item.created_at) %> <%- @humanTime(item.created_at) %>
</div> </div>
<div class="list-item-delete js-delete" data-object="Ticket" data-object-id="<%= item.id %>" data-link-type="<%= type %>" data-type="remove"> <div class="list-item-delete js-delete" data-object="Ticket" data-object-id="<%= item.id %>" data-link-type="<%= type %>" data-type="remove">

View file

@ -5,7 +5,7 @@
<%- @Icon('task-state', ticket.iconClass()) %> <%- @Icon('task-state', ticket.iconClass()) %>
</div> </div>
<div class="task-text"> <div class="task-text">
<a class="name" data-id="<%- ticket.id %>" href="<%- ticket.uiUrl() %>">#<%= ticket.number %> <%= ticket.title %></a> <a class="name" data-id="<%- ticket.id %>" href="<%- ticket.uiUrl() %>">#<%= ticket.number %> <%= ticket.title || '-' %></a>
<%- @humanTime(ticket.created_at, false, 'time') %> <%- @humanTime(ticket.created_at, false, 'time') %>
</div> </div>
</li> </li>

View file

@ -1 +1 @@
<div contenteditable="true" class="ticket-title-update js-objectTitle" data-placeholder="<%- @Ti('Enter Title...') %>"><%= @object.title %></div> <div contenteditable="true" class="ticket-title-update js-objectTitle" data-placeholder="<%- @Ti('Enter Title...') %>"><%= @object.title || '-' %></div>

View file

@ -20,7 +20,7 @@
<% for row in @rows: %> <% for row in @rows: %>
<tr> <tr>
<td><a href="#ticket/zoom/<%- row.ticket.id %>"><%= row.ticket.number %></a> <td><a href="#ticket/zoom/<%- row.ticket.id %>"><%= row.ticket.number %></a>
<td title="<%= row.ticket.title %>"><%= row.ticket.title %> <td title="<%= row.ticket.title %>"><%= row.ticket.title || '-' %>
<td><%= row.customer %> <td><%= row.customer %>
<td><%= row.organization %> <td><%= row.organization %>
<td><%= row.agent %> <td><%= row.agent %>

View file

@ -8,7 +8,7 @@
<%- @Icon('task-state', ticket.iconClass()) %> <%- @Icon('task-state', ticket.iconClass()) %>
</div> </div>
<div class="task-text"> <div class="task-text">
<a class="name ticket-popover" data-id="<%- ticket_id %>" href="<%- ticket.uiUrl() %>"><%= ticket.title %></a> <a class="name ticket-popover" data-id="<%- ticket_id %>" href="<%- ticket.uiUrl() %>"><%= ticket.title || '-' %></a>
<%- @humanTime(ticket.created_at, false, 'time') %> <%- @humanTime(ticket.created_at, false, 'time') %>
</div> </div>
</li> </li>