]> cat aescling's git repositories - mastodon.git/commitdiff
Add link to search for users connected from the same IP address (#12157)
authorThibG <thib@sitedethib.com>
Thu, 24 Oct 2019 20:49:26 +0000 (22:49 +0200)
committerEugen Rochko <eugen@zeonfederated.com>
Thu, 24 Oct 2019 20:49:26 +0000 (22:49 +0200)
* Add link to search for users connected from the same IP address

Fixes #11949

* Fix missing cell in admin account view table

app/views/admin/accounts/show.html.haml
config/locales/en.yml

index 40a936e86933babae3a98d24d46a63c7fcd03e67..9f1e3816b6e1c20e26c330007e6859d9015b969f 100644 (file)
             %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
index be66b6c6cf44cfd773b2667f5ccceeb13fbc5614..458524c3d3a77491568c0efb10ee4707e9fca5b4 100644 (file)
@@ -175,6 +175,7 @@ en:
         user: User
       salmon_url: Salmon URL
       search: Search
+      search_same_ip: Other users with the same IP
       shared_inbox_url: Shared inbox URL
       show:
         created_reports: Made reports