Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2016-01-12 11:57:05 +0300
committerStan Hu <stanhu@gmail.com>2016-01-12 11:59:29 +0300
commit75123458eecbc34d01844538b9ffc04c71f550d6 (patch)
treeb47c6122a2cff4f5ec035c0625f9ff8f60b810a1 /app
parentc4511a123401dcf9c2e1b3de732d18463fe9ba90 (diff)
Add user's last used IP addresses to admin page
This would help admins figure out from where spam is originating.
Diffstat (limited to 'app')
-rw-r--r--app/views/admin/users/show.html.haml16
1 files changed, 16 insertions, 0 deletions
diff --git a/app/views/admin/users/show.html.haml b/app/views/admin/users/show.html.haml
index 2c2450d4117..2bdbae19588 100644
--- a/app/views/admin/users/show.html.haml
+++ b/app/views/admin/users/show.html.haml
@@ -71,6 +71,14 @@
No
%li
+ %span.light Current sign-in IP:
+ %strong
+ - if @user.current_sign_in_ip
+ = @user.current_sign_in_ip
+ - else
+ never
+
+ %li
%span.light Current sign-in at:
%strong
- if @user.current_sign_in_at
@@ -79,6 +87,14 @@
never
%li
+ %span.light Last sign-in IP:
+ %strong
+ - if @user.last_sign_in_ip
+ = @user.last_sign_in_ip
+ - else
+ never
+
+ %li
%span.light Last sign-in at:
%strong
- if @user.last_sign_in_at