#328: add project name into subject
This commit is contained in:
parent
126cdf1e68
commit
387f2136dc
|
@ -83,7 +83,7 @@ class UserMailer < ActionMailer::Base
|
||||||
set_locale user
|
set_locale user
|
||||||
mail(
|
mail(
|
||||||
:to => user.email,
|
:to => user.email,
|
||||||
:subject => I18n.t('notifications.subjects.new_commit')
|
:subject => I18n.t('notifications.subjects.new_commit', :project_name => "#{options[:project_owner]}/#{options[:project_name]}")
|
||||||
) do |format|
|
) do |format|
|
||||||
format.html { render 'git_delete_branch_notification', :locals => options }
|
format.html { render 'git_delete_branch_notification', :locals => options }
|
||||||
end
|
end
|
||||||
|
@ -93,7 +93,7 @@ class UserMailer < ActionMailer::Base
|
||||||
set_locale user
|
set_locale user
|
||||||
mail(
|
mail(
|
||||||
:to => user.email,
|
:to => user.email,
|
||||||
:subject => I18n.t('notifications.subjects.new_commit')
|
:subject => I18n.t('notifications.subjects.new_commit', :project_name => "#{options[:project_owner]}/#{options[:project_name]}")
|
||||||
) do |format|
|
) do |format|
|
||||||
format.html { render 'git_new_push_notification', :locals => options }
|
format.html { render 'git_new_push_notification', :locals => options }
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue