<% if (canedit || canapprove) { %> <% } %> <% _.each(members, function(value, uid) { %> <% if ((canedit || canapprove) && value.trust != "leader" && value.candelete) { %> <% var trustvalues = ["none", "user","root","manager"]; %> <% } else {%> <% } %> <% if (canedit || canapprove) { %> <% if (value.trust != "leader" && value.candelete) { %> <% } else {%> <% } %> <% } %> <% }); %>
UID Name Email Joined Privs
<%= uid %> class="text-danger"<% } %>> <%= value.name %> <%= value.email %> <%- value.joined %> <% if (value.trust == "none") { %> <% } %> <%- value.trust %> 
<% if (Object.keys(nonmembers).length) { %>

Non-members that can be added to the group

<% _.each(nonmembers, function(value, uid) { %> <% var trustvalues = ["none", "user","root","manager"]; %> <% }); %>
UID Name Email Privs
<%= uid %> <%= value.name %> <%= value.email %>
<% } %>