diff --git a/app/views/users/_statistics.html.erb b/app/views/users/_statistics.html.erb index e76f2b571..465dbc9a8 100644 --- a/app/views/users/_statistics.html.erb +++ b/app/views/users/_statistics.html.erb @@ -35,6 +35,16 @@ <% end %> + <% if policy(UserEvent).show? %> + + User Events + + <%= 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 }}) %> + + + <% end %> + <% if policy(user.email_address).show? %> Email Address