nginx-proxy-manager/frontend/js/app/users/list/item.ejs

46 lines
1.9 KiB
Plaintext
Raw Normal View History

<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')}) %>
</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>
</td>
2018-08-07 06:27:20 -04:00
<td class="text-right">
<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">
<span class="dropdown-header"><%- i18n('audit-log', 'user') %> #<%- id %></span>
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>
<% if (!isSelf()) { %>
2018-08-24 02:04:27 -04:00
<% if (!is_disabled) { %>
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-08-24 02:04:27 -04:00
<% } %>
<div class="dropdown-divider"></div>
<a href="#" class="delete-user dropdown-item"><i class="dropdown-icon fe fe-trash-2"></i> <%- i18n('users', 'delete', {name: name}) %></a>
<% } %>
</div>
</div>
</td>