2012-01-22 16:17:55 +00:00
|
|
|
%p== Hello, #{@user.name}.
|
|
|
|
|
|
|
|
- if @comment.commentable.class == Issue
|
|
|
|
- link = link_to @comment.commentable.title, [@comment.commentable.project, @comment.commentable]
|
|
|
|
- object = 'issue'
|
|
|
|
- elsif @comment.commentable.class == Grit::Commit
|
|
|
|
- link = link_to @comment.commentable.message, commit_path(@comment.project, @comment.commentable_id)
|
|
|
|
- object = 'commit'
|
2012-01-30 07:06:06 +00:00
|
|
|
%p #{ link_to @comment.user.uname, user_path(@comment.user)} added new comment to #{object} #{link}.
|
2012-01-22 16:17:55 +00:00
|
|
|
|
|
|
|
%p "#{ @comment.body }"
|
|
|
|
|
|
|
|
|
2012-01-30 07:06:06 +00:00
|
|
|
%p== Support team «ROSA Build System»
|