2018-06-20 02:51:18 -04:00
|
|
|
<td class="text-center">
|
|
|
|
<div class="avatar d-block" style="background-image: url(<%- avatar || '/images/default-avatar.jpg' %>)">
|
|
|
|
<span class="avatar-status <%- is_disabled ? 'bg-red' : 'bg-green' %>"></span>
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<div><%- name %></div>
|
|
|
|
<div class="small text-muted">
|
2018-07-18 02:55:09 -04:00
|
|
|
<%- i18n('str', 'created-on', {date: formatDbDate(created_on, 'Do MMMM YYYY')}) %>
|
2018-06-20 02:51:18 -04:00
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<div><%- email %></div>
|
|
|
|
</td>
|
|
|
|
<td>
|
2018-07-18 02:55:09 -04:00
|
|
|
<div>
|
|
|
|
<%
|
|
|
|
var r = [];
|
|
|
|
roles.map(function(role) {
|
|
|
|
if (role) {
|
|
|
|
r.push(i18n('roles', role));
|
|
|
|
}
|
|
|
|
});
|
|
|
|
%>
|
|
|
|
<%- r.join(', ') %>
|
|
|
|
</div>
|
2018-06-20 02:51:18 -04:00
|
|
|
</td>
|
2018-08-07 06:27:20 -04:00
|
|
|
<td class="text-right">
|
2018-06-20 02:51:18 -04:00
|
|
|
<div class="item-action dropdown">
|
|
|
|
<a href="#" data-toggle="dropdown" class="icon"><i class="fe fe-more-vertical"></i></a>
|
|
|
|
<div class="dropdown-menu dropdown-menu-right">
|
2018-07-18 02:55:09 -04:00
|
|
|
<a href="#" class="edit-user dropdown-item"><i class="dropdown-icon fe fe-edit"></i> <%- i18n('users', 'edit-details') %></a>
|
|
|
|
<a href="#" class="edit-permissions dropdown-item"><i class="dropdown-icon fe fe-shield"></i> <%- i18n('users', 'edit-permissions') %></a>
|
|
|
|
<a href="#" class="set-password dropdown-item"><i class="dropdown-icon fe fe-lock"></i> <%- i18n('users', 'change-password') %></a>
|
2018-06-20 02:51:18 -04:00
|
|
|
<% if (!isSelf()) { %>
|
2018-07-18 02:55:09 -04:00
|
|
|
<a href="#" class="login dropdown-item"><i class="dropdown-icon fe fe-log-in"></i> <%- i18n('users', 'sign-in-as') %></a>
|
2018-06-20 02:51:18 -04:00
|
|
|
<div class="dropdown-divider"></div>
|
2018-08-01 07:18:17 -04:00
|
|
|
<a href="#" class="delete-user dropdown-item"><i class="dropdown-icon fe fe-trash-2"></i> <%- i18n('users', 'delete', {name: name}) %></a>
|
2018-06-20 02:51:18 -04:00
|
|
|
<% } %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</td>
|