diff options
author | jomo <github@jomo.tv> | 2014-05-09 00:37:42 +0200 |
---|---|---|
committer | jomo <github@jomo.tv> | 2014-05-09 00:37:42 +0200 |
commit | d7f0dff89ed56f7e15f02a7669b03f507e552b48 (patch) | |
tree | 8d04c9d26f5d446c9428638cf9f5a61312bc0542 /app/views/users/show.html.erb | |
parent | b0e01d3b013a3820a166c49e9d6f1e3d8c51d22e (diff) |
use relative time on user page
Diffstat (limited to 'app/views/users/show.html.erb')
-rw-r--r-- | app/views/users/show.html.erb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/users/show.html.erb b/app/views/users/show.html.erb index 91e2595..3e7a389 100644 --- a/app/views/users/show.html.erb +++ b/app/views/users/show.html.erb @@ -64,7 +64,7 @@ <% end %> <tr> <td>Joined</td> - <td><%= @user.created_at.strftime("%e %b %Y, %H:%M") %></td> + <td><time title="<%= @user.created_at.strftime("%e %b %Y, %H:%M") %>" datetime="<%= @user.created_at.to_datetime.rfc3339 %>"><%= @user.created_at.strftime("%e %b %Y, %H:%M") %></time></td> </tr> <% if mod? || @user.is?(current_user) %> <tr> @@ -77,7 +77,7 @@ </tr> <tr> <td>Last seen</td> - <td><%= @user.last_seen.strftime("%e %b %Y, %H:%M") %></td> + <td><time title="<%= @user.last_seen.strftime("%e %b %Y, %H:%M") %>" datetime="<%= @user.last_seen.to_datetime.rfc3339 %>"><%= @user.last_seen.strftime("%e %b %Y, %H:%M") %></time></td> </tr> <% end %> </tbody> |