diff options
author | Douwe Maan <douwe@selenight.nl> | 2017-04-01 03:20:44 +0300 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2017-04-08 22:37:46 +0300 |
commit | f47b737456f848784fddb5958c3fa781d2ede2f1 (patch) | |
tree | 381541a0fde2b71f02e8003e80ee0caf0ac565f1 /app/views | |
parent | d65d245e06fbe45455e130e2d4ca0ca1d066a8c6 (diff) |
Change discussion headline to 'a now outdated portion of the diff'
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/discussions/_discussion.html.haml | 7 |
1 files changed, 3 insertions, 4 deletions
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 |