Merge pull request #310 from warpc/252-user_appeal
[refs #252] fixed appeal to user in email and in welcome message in activity feed
This commit is contained in:
commit
4ce3e5bf32
|
@ -7,7 +7,7 @@ class ActivityFeedObserver < ActiveRecord::Observer
|
|||
ActivityFeed.create(
|
||||
:user => record,
|
||||
:kind => 'new_user_notification',
|
||||
:data => {:user_name => record.name, :user_email => record.email}
|
||||
:data => {:user_name => record.user_appeal, :user_email => record.email}
|
||||
)
|
||||
|
||||
when 'Issue'
|
||||
|
|
|
@ -120,6 +120,10 @@ class User < ActiveRecord::Base
|
|||
end
|
||||
end
|
||||
|
||||
def user_appeal
|
||||
name.blank? ? uname : name
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def create_settings_notifier
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
%p== Здравствуйте, #{@register_request.name}.
|
||||
%p== Здравствуйте, #{@register_request.name || @register_request.email}.
|
||||
|
||||
%p
|
||||
Вы приглашены в проект ABF. Чтобы зарегистрироваться перейдите по
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
%p== Hello, #{@user.name}.
|
||||
%p== Hello, #{@user.user_appeal}.
|
||||
|
||||
|
||||
%p You have been assigned to issue #{ link_to @issue.title, project_issue_url(@issue.project, @issue) }
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
%p== Здравствуйте, #{@user.name}.
|
||||
%p== Здравствуйте, #{@user.user_appeal}.
|
||||
|
||||
|
||||
%p Вам была назначена задача #{ link_to @issue.title, project_issue_url(@issue.project, @issue) }
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
%p== Hello, #{@user.name}.
|
||||
%p== Hello, #{@user.user_appeal}.
|
||||
|
||||
- if @comment.commentable.class == Issue
|
||||
- link = link_to @comment.commentable.title, project_issue_url(@comment.commentable.project, @comment.commentable)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
%p== Здравствуйте, #{@user.name}.
|
||||
%p== Здравствуйте, #{@user.user_appeal}.
|
||||
|
||||
- if @comment.commentable.class == Issue
|
||||
- link = link_to @comment.commentable.title, project_issue_url(@comment.commentable.project, @comment.commentable)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
%p== Hello, #{@user.name}.
|
||||
%p== Hello, #{@user.user_appeal}.
|
||||
|
||||
|
||||
%p To project #{ link_to @issue.project.name, project_url(@issue.project) } has been added an issue #{ link_to @issue.title, project_issue_url(@issue.project, @issue) }
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
%p== Здравствуйте, #{@user.name}.
|
||||
%p== Здравствуйте, #{@user.user_appeal}.
|
||||
|
||||
|
||||
%p К проекту #{ link_to @issue.project.name, project_url(@issue.project) } была добавлена задача #{ link_to @issue.title, project_issue_url(@issue.project, @issue) }
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
%p== Hello, #{@user.name}.
|
||||
%p== Hello, #{@user.user_appeal}.
|
||||
|
||||
|
||||
%p You have been sign up to project «ROSA Build System» and now can sign in.
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
%p== Здравствуйте, #{@user.name}.
|
||||
%p== Здравствуйте, #{@user.user_appeal}.
|
||||
|
||||
|
||||
%p Вы зарегистрированы на проекте «ROSA Build System» и теперь можете войти в систему.
|
||||
|
|
Loading…
Reference in New Issue