Skip to content

Commit cfb2bb0

Browse files
committed
Adds link to edit user to user login
1 parent d2a093a commit cfb2bb0

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

app/views/alchemy/admin/users/_user.html.erb

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,17 @@
22
<td class="icon">
33
<%= render_icon(:user, style: user.logged_in? ? 'solid' : 'regular') %>
44
</td>
5-
<td class="login"><%= user.login %></td>
5+
<td class="login">
6+
<% if can?(:edit, user) %>
7+
<%= link_to_dialog user.login,
8+
alchemy.edit_admin_user_path(user), {
9+
title: Alchemy.t(:edit_user),
10+
overflow: true,
11+
size: '430x560'
12+
},
13+
title: Alchemy.t(:edit_user) %>
14+
<% end %>
15+
</td>
616
<td class="name"><%= user.firstname %></td>
717
<td><%= user.lastname %></td>
818
<td class="email"><%= user.email %></td>

0 commit comments

Comments
 (0)