diff options
author | Drew Blessing <drew.blessing@me.com> | 2014-12-20 14:55:55 -0600 |
---|---|---|
committer | Drew Blessing <drew.blessing@me.com> | 2014-12-20 16:20:29 -0600 |
commit | a9761ac1b86275397f36e484f02ab7e87eb1ff05 (patch) | |
tree | 0713028a2306d898841d8bc605145b041346e422 /app/views/projects/notes | |
parent | 0f7d47f695afa051374996cb1c72bc3ec55820c5 (diff) | |
download | gitlab-ce-a9761ac1b86275397f36e484f02ab7e87eb1ff05.tar.gz |
Differentiate system notes
Diffstat (limited to 'app/views/projects/notes')
-rw-r--r-- | app/views/projects/notes/_note.html.haml | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/app/views/projects/notes/_note.html.haml b/app/views/projects/notes/_note.html.haml index 354afd3e2c9..db972ec572d 100644 --- a/app/views/projects/notes/_note.html.haml +++ b/app/views/projects/notes/_note.html.haml @@ -1,7 +1,10 @@ -%li.timeline-entry{ id: dom_id(note), class: dom_class(note), data: { discussion: note.discussion_id } } +%li.timeline-entry{ id: dom_id(note), class: [dom_class(note), ('system-note' if note.system)], data: { discussion: note.discussion_id } } .timeline-entry-inner .timeline-icon - = image_tag avatar_icon(note.author_email), class: "avatar s40" + - if note.system + %span.fa.fa-circle + - else + = image_tag avatar_icon(note.author_email), class: "avatar s40" .timeline-content .note-header .note-actions @@ -17,6 +20,8 @@ = link_to project_note_path(@project, note), title: "Remove comment", method: :delete, data: { confirm: 'Are you sure you want to remove this comment?' }, remote: true, class: "danger js-note-delete" do %i.fa.fa-trash-o.cred Remove + - if note.system + = image_tag avatar_icon(note.author_email), class: "avatar s16" = link_to_member(@project, note.author, avatar: false) %span.author-username = '@' + note.author.username |