Commit c1ffee4e authored by Riyad Preukschas's avatar Riyad Preukschas

Fix dicussion headers

parent c20af32a
...@@ -21,13 +21,12 @@ ...@@ -21,13 +21,12 @@
- else - else
%cite.cgray started a discussion %cite.cgray started a discussion
%div %div
- if discussion_notes.size > 1 - last_note = discussion_notes.last
- last_note = discussion_notes.last last updated by
last updated by = link_to last_note.author_name, project_team_member_path(@project, @project.team_member_by_id(last_note.author)), class: "note-author"
= link_to last_note.author_name, project_team_member_path(@project, @project.team_member_by_id(last_note.author)), class: "note-author" %span.discussion-last-update
%span.discussion-last-update = time_ago_in_words(last_note.updated_at)
= time_ago_in_words(last_note.updated_at) ago
ago
.discussion-body .discussion-body
- if note.for_diff_line? - if note.for_diff_line?
.content .content
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment