summaryrefslogtreecommitdiff
path: root/app/views/admin/users
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2016-01-06 17:27:56 -0500
committerRobert Speicher <rspeicher@gmail.com>2016-01-07 20:01:08 -0500
commitfa36749bcee7fa2eb72c9f2a6a28aab1b7274097 (patch)
treece7eb20119e69fac8cb41f35dd059599b4e71817 /app/views/admin/users
parent59305715e9d3569f47d7c2accc2106022c0a6960 (diff)
downloadgitlab-ce-fa36749bcee7fa2eb72c9f2a6a28aab1b7274097.tar.gz
Add two custom Date/Time conversion formats
Diffstat (limited to 'app/views/admin/users')
-rw-r--r--app/views/admin/users/_profile.html.haml2
-rw-r--r--app/views/admin/users/show.html.haml8
2 files changed, 5 insertions, 5 deletions
diff --git a/app/views/admin/users/_profile.html.haml b/app/views/admin/users/_profile.html.haml
index 26f01c0df04..6bc217f84cc 100644
--- a/app/views/admin/users/_profile.html.haml
+++ b/app/views/admin/users/_profile.html.haml
@@ -4,7 +4,7 @@
%ul.well-list
%li
%span.light Member since
- %strong= user.created_at.strftime('%b %-d, %Y')
+ %strong= user.created_at.to_s(:medium)
- unless user.public_email.blank?
%li
%span.light E-mail:
diff --git a/app/views/admin/users/show.html.haml b/app/views/admin/users/show.html.haml
index 5d8601c4668..2c2450d4117 100644
--- a/app/views/admin/users/show.html.haml
+++ b/app/views/admin/users/show.html.haml
@@ -58,12 +58,12 @@
%li
%span.light Member since:
%strong
- = @user.created_at.strftime('%b %-d, %Y')
+ = @user.created_at.to_s(:medium)
- if @user.confirmed_at
%li
%span.light Confirmed at:
%strong
- = @user.confirmed_at.strftime('%b %-d, %Y')
+ = @user.confirmed_at.to_s(:medium)
- else
%li
%span.light Confirmed:
@@ -74,7 +74,7 @@
%span.light Current sign-in at:
%strong
- if @user.current_sign_in_at
- = @user.current_sign_in_at.strftime('%b %-d, %Y')
+ = @user.current_sign_in_at.to_s(:medium)
- else
never
@@ -82,7 +82,7 @@
%span.light Last sign-in at:
%strong
- if @user.last_sign_in_at
- = @user.last_sign_in_at.strftime('%b %-d, %Y')
+ = @user.last_sign_in_at.to_s(:medium)
- else
never