+ <% user = undefined %>
+ <% shown = false %>
+ <% if item.preferences.from && !_.isEmpty(item.preferences.from): %>
+ <% for caller_id in item.preferences.from: %>
+ <% if caller_id.user_id && App.User.exists(caller_id.user_id): %>
+ <% user = App.User.fullLocal(caller_id.user_id) %>
+ <% classes = ['user-popover', 'u-textTruncate'] %>
+ <% classes.push('is-inactive') if !user.active %>
+ <% if shown: %>
<% end %>
+
+
<%- user.avatar() %>
+
<% if caller_id.level isnt 'known': %><%- @T('maybe') %>: <% end %><%= user.displayNameLong() %>
+
<%= item.from_pretty %>
+
+ <% shown = true %>
+ <% else if !_.isEmpty(caller_id.comment): %>
+ <% shown = true %>
+
+ <%- @unique_avatar(caller_id.comment, caller_id.comment.split(" ").map((name) -> name[0]).join("")) %>
+ <%- @T('maybe') %>: <%= caller_id.comment %>
+ <%= item.from_pretty %>
+
+ <% end %>
+ <% end %>
+ <% end %>
+ <% if !shown && !_.isEmpty(item.from_comment): %>
<% shown = true %>
- <%- @unique_avatar(caller_id.comment, caller_id.comment.split(" ").map((name) -> name[0]).join("")) %>
- <%- @T('maybe') %>: <%= caller_id.comment %>
- <%= @item.from_pretty %>
+ <%- @unique_avatar(item.from_comment, item.from_comment.split(" ").map((name) -> name[0]).join("")) %>
+ <%= item.from_comment %>
+ <%= item.from_pretty %>
<% end %>
- <% end %>
- <% end %>
- <% if !shown && !_.isEmpty(@item.from_comment): %>
- <% shown = true %>
-
- <%- @unique_avatar(@item.from_comment, @item.from_comment.split(" ").map((name) -> name[0]).join("")) %>
- <%= @item.from_comment %>
- <%= @item.from_pretty %>
-
- <% end %>
- <% if !shown: %>
-
- <%- @unique_avatar(@item.from_pretty || @item.from, '??') %>
- <% if !_.isEmpty(@item.from_pretty): %>
-
<%= @item.from_pretty %>
- <% if @item.direction is 'in': %>
-
<%- @Icon('plus-small') %> <%- @T('New User') %>
+ <% if !shown: %>
+
+ <%- @unique_avatar(item.from_pretty || item.from, '??') %>
+ <% if !_.isEmpty(item.from_pretty): %>
+
<%= item.from_pretty %>
+ <% if item.direction is 'in': %>
+
<%- @Icon('plus-small') %> <%- @T('New User') %>
+ <% end %>
+ <% else: %>
+
<%= item.from %>
+ <% end %>
+
<% end %>
- <% else: %>
-
<%= @item.from %>
- <% end %>
+
+
<%- @Icon('plus') %>
- <% end %>
-
-
<%- @Icon('plus') %>
-