summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorBen Bodenmiller <bbodenmiller@hotmail.com>2014-08-24 23:52:31 -0700
committerBen Bodenmiller <bbodenmiller@hotmail.com>2014-08-24 23:52:31 -0700
commitf8182183599e8fd3ccf9d7d3741ecbf966d8c853 (patch)
treebfe8bfbb372be7c16f4d1f9a87012e00fa3c0dd1 /app
parenta25e6f725a6b31db6a9a327cc5cd51a078caef03 (diff)
downloadgitlab-ce-f8182183599e8fd3ccf9d7d3741ecbf966d8c853.tar.gz
add current sign-in date
add current sign-in date to admin section profile view
Diffstat (limited to 'app')
-rw-r--r--app/views/admin/users/show.html.haml8
1 files changed, 8 insertions, 0 deletions
diff --git a/app/views/admin/users/show.html.haml b/app/views/admin/users/show.html.haml
index 3c30ccd78b3..f60d40b5334 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 at:
+ %strong
+ - if @user.current_sign_in_at
+ = @user.current_sign_in_at.stamp("Nov 12, 2031")
+ - else
+ never
+
+ %li
%span.light Last sign-in at:
%strong
- if @user.last_sign_in_at