Fixes #2930 - CTI Callerlog signaling hides "+" for new ticket if more than one user is found
This commit is contained in:
parent
e9a442160b
commit
520d834c1c
2 changed files with 53 additions and 47 deletions
|
@ -9,7 +9,6 @@
|
|||
<div class="btn btn--text js-remove" title="<%- @Ti('Remove') %>"><%- @Icon('diagonal-cross') %></div>
|
||||
-->
|
||||
</div>
|
||||
<div class="horizontal center">
|
||||
<% user = undefined %>
|
||||
<% shown = false %>
|
||||
<% if item.preferences.from && !_.isEmpty(item.preferences.from): %>
|
||||
|
@ -23,6 +22,7 @@
|
|||
<a href="<%- user.uiUrl() %>"><%- user.avatar() %></a>
|
||||
<div class="<%= classes.join(' ') %>" data-id="<%- user.id %>"><% if caller_id.level isnt 'known': %><%- @T('maybe') %>: <% end %><%= user.displayNameLong() %></div>
|
||||
<span class="text-muted"><%= item.from_pretty %></span>
|
||||
<div class="btn btn--small btn--quad btn--create space-left js-newTicket" title="<%- @Ti('New Ticket') %>" data-user-id="<% if user: %><%- user.id %><% end %>"><%- @Icon('plus') %></div>
|
||||
</div>
|
||||
<% shown = true %>
|
||||
<% else if !_.isEmpty(caller_id.comment): %>
|
||||
|
@ -31,6 +31,7 @@
|
|||
<%- @unique_avatar(caller_id.comment, caller_id.comment.split(" ").map((name) -> name[0]).join("")) %>
|
||||
<%- @T('maybe') %>: <%= caller_id.comment %><br>
|
||||
<span class="text-muted"><%= item.from_pretty %></span>
|
||||
<div class="btn btn--small btn--quad btn--create space-left js-newTicket" title="<%- @Ti('New Ticket') %>" data-user-id="<% if user: %><%- user.id %><% end %>"><%- @Icon('plus') %></div>
|
||||
</div>
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
@ -41,6 +42,7 @@
|
|||
<%- @unique_avatar(item.from_comment, item.from_comment.split(" ").map((name) -> name[0]).join("")) %>
|
||||
<%= item.from_comment %><br>
|
||||
<span class="text-muted"><%= item.from_pretty %></span>
|
||||
<div class="btn btn--small btn--quad btn--create space-left js-newTicket" title="<%- @Ti('New Ticket') %>" data-user-id="<% if user: %><%- user.id %><% end %>"><%- @Icon('plus') %></div>
|
||||
</div>
|
||||
<% end %>
|
||||
<% if !shown: %>
|
||||
|
@ -54,11 +56,9 @@
|
|||
<% else: %>
|
||||
<a class="inherit-color" href="<%- App.Utils.phoneify(item.from) %>"><%= item.from %></a>
|
||||
<% end %>
|
||||
</div>
|
||||
<% end %>
|
||||
<div class="flex-spacer"></div>
|
||||
<div class="btn btn--small btn--quad btn--create space-left js-newTicket" title="<%- @Ti('New Ticket') %>" data-user-id="<% if user: %><%- user.id %><% end %>"><%- @Icon('plus') %></div>
|
||||
</div>
|
||||
<% end %>
|
||||
</div>
|
||||
<% end %>
|
||||
</div>
|
||||
|
|
|
@ -5543,16 +5543,22 @@ footer {
|
|||
padding: 2px 0 0 50px;
|
||||
position: relative;
|
||||
min-height: 40px;
|
||||
max-width: 192px;
|
||||
padding-right: 48px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
min-width: 192px;
|
||||
|
||||
.avatar {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
}
|
||||
|
||||
.btn.js-newTicket {
|
||||
position: absolute;
|
||||
right: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.stat-icon {
|
||||
|
|
Loading…
Reference in a new issue