summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/views/discussions/_discussion.html.haml7
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