From a84967630097f198601805695845da4f5138ef46 Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Fri, 20 Dec 2013 10:03:29 +0200 Subject: [PATCH] Use relative dates with tooltips fopr Issue#show and MR#show --- app/views/projects/issues/show.html.haml | 3 +-- app/views/projects/merge_requests/show/_mr_title.html.haml | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/app/views/projects/issues/show.html.haml b/app/views/projects/issues/show.html.haml index 9c2b061..7d40721 100644 --- a/app/views/projects/issues/show.html.haml +++ b/app/views/projects/issues/show.html.haml @@ -2,8 +2,7 @@ Issue ##{@issue.iid} %small - created at - = @issue.created_at.stamp("Aug 21, 2011") + created #{time_ago_with_tooltip(@issue.created_at)} ago - if @issue.closed? %span.state-label.state-label-red Closed diff --git a/app/views/projects/merge_requests/show/_mr_title.html.haml b/app/views/projects/merge_requests/show/_mr_title.html.haml index 0d6a546..b649a18 100644 --- a/app/views/projects/merge_requests/show/_mr_title.html.haml +++ b/app/views/projects/merge_requests/show/_mr_title.html.haml @@ -1,8 +1,7 @@ %h3.page-title = "Merge Request ##{@merge_request.iid}" %small - created at - = @merge_request.created_at.stamp("Aug 21, 2011") + created #{time_ago_with_tooltip(@merge_request.created_at)} ago - if @merge_request.merged? %span.state-label.state-label-green -- libgit2 0.21.2