Add utility links to user events from user page
This commit is contained in:
@@ -35,6 +35,16 @@
|
|||||||
</tr>
|
</tr>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
|
<% if policy(UserEvent).show? %>
|
||||||
|
<tr>
|
||||||
|
<th>User Events</th>
|
||||||
|
<td>
|
||||||
|
<%= link_to "By Name", user_events_path(search: { user_name: user.name }) %>,
|
||||||
|
<%= link_to "By IP", user_events_path(search: { user_session: { ip_addr: user.last_ip_addr }}) %>
|
||||||
|
<td>
|
||||||
|
</tr>
|
||||||
|
<% end %>
|
||||||
|
|
||||||
<% if policy(user.email_address).show? %>
|
<% if policy(user.email_address).show? %>
|
||||||
<tr class="user-email-address">
|
<tr class="user-email-address">
|
||||||
<th>Email Address</th>
|
<th>Email Address</th>
|
||||||
|
|||||||
Reference in New Issue
Block a user