From f47b737456f848784fddb5958c3fa781d2ede2f1 Mon Sep 17 00:00:00 2001 From: Douwe Maan Date: Fri, 31 Mar 2017 18:20:44 -0600 Subject: Change discussion headline to 'a now outdated portion of the diff' --- app/views/discussions/_discussion.html.haml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'app/views') diff --git a/app/views/discussions/_discussion.html.haml b/app/views/discussions/_discussion.html.haml index 47739809108..6f74948f498 100644 --- a/app/views/discussions/_discussion.html.haml +++ b/app/views/discussions/_discussion.html.haml @@ -30,11 +30,10 @@ - else a deleted commit - else + - unless discussion.active? + a now outdated portion of = conditional_link_to url.present?, url do - - if discussion.active? - the diff - - else - an outdated diff + the diff = time_ago_with_tooltip(discussion.created_at, placement: "bottom", html_class: "note-created-ago") = render "discussions/headline", discussion: discussion -- cgit v1.2.1