diff options
author | ThibG <thib@sitedethib.com> | 2019-10-24 22:49:26 +0200 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2019-10-24 22:49:26 +0200 |
commit | 15c192ce4053d77183538efa1740ba5bec71082e (patch) | |
tree | 00664d2e8d3f8911be9608fbe97ebd9eb5d0e340 /app/views/admin/accounts | |
parent | bcf694dce7536d29ede3c0865b00cb84f348b5e1 (diff) |
Add link to search for users connected from the same IP address (#12157)
* Add link to search for users connected from the same IP address Fixes #11949 * Fix missing cell in admin account view table
Diffstat (limited to 'app/views/admin/accounts')
-rw-r--r-- | app/views/admin/accounts/show.html.haml | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/views/admin/accounts/show.html.haml b/app/views/admin/accounts/show.html.haml index 40a936e86..9f1e3816b 100644 --- a/app/views/admin/accounts/show.html.haml +++ b/app/views/admin/accounts/show.html.haml @@ -143,12 +143,15 @@ %th= t('admin.accounts.most_recent_ip') %td= @account.user_current_sign_in_ip %td + - if @account.user_current_sign_in_ip + = table_link_to 'search', t('admin.accounts.search_same_ip'), admin_accounts_path(ip: @account.user_current_sign_in_ip) %tr %th= t('admin.accounts.most_recent_activity') %td - if @account.user_current_sign_in_at %time.formatted{ datetime: @account.user_current_sign_in_at.iso8601, title: l(@account.user_current_sign_in_at) }= l @account.user_current_sign_in_at + %td - if @account.user&.invited? %tr |