2012-01-22 16:17:55 +00:00
|
|
|
%p== Hello, #{@user.name}.
|
|
|
|
|
|
|
|
- if @comment.commentable.class == Issue
|
2012-02-15 16:30:56 +00:00
|
|
|
- link = link_to @comment.commentable.title, project_issue_url(@comment.commentable.project, @comment.commentable)
|
2012-01-22 16:17:55 +00:00
|
|
|
- object = 'issue'
|
2012-03-03 00:19:31 +00:00
|
|
|
- elsif @comment.commit_comment?
|
2012-02-15 16:30:56 +00:00
|
|
|
- link = link_to @comment.commentable.message, commit_url(@comment.project, @comment.commentable_id)
|
2012-01-22 16:17:55 +00:00
|
|
|
- object = 'commit'
|
2012-02-15 16:30:56 +00:00
|
|
|
%p #{ link_to @comment.user.uname, user_url(@comment.user)} added new comment to #{object} #{link}.
|
2012-01-22 16:17:55 +00:00
|
|
|
|
|
|
|
%p "#{ @comment.body }"
|
|
|
|
|
|
|
|
|
2012-02-15 16:30:56 +00:00
|
|
|
%p== Support team «ROSA Build System»
|