%p== Здравствуйте, #{@user.user_appeal}. - if @comment.issue_comment? - link = link_to @comment.commentable.title, project_issue_url(@comment.commentable.project, @comment.commentable) - object = 'задаче' - elsif @comment.commit_comment? - link = link_to @comment.commentable.message, commit_url(@comment.project, @comment.commentable_id) - object = 'коммиту' %p #{ link_to @comment.user.uname, user_url(@comment.user)} добавил комментарий к #{object} #{link}. %p "#{ @comment.body }" = render 'footer'