Merge pull request #964 from warpc/946-wrong_links
[refs #946] Fixed undefined local variable or method 'user_name'
This commit is contained in:
commit
d53506b092
|
@ -3,7 +3,8 @@
|
|||
.image= link_to(image_tag(avatar_url(user, :small), :alt => 'avatar'), user_path(user)) if user.persisted?
|
||||
.text
|
||||
%span
|
||||
= raw t("notifications.bodies.#{change_type}_branch", {:branch_name => branch_name, :user_link => user_link(user, user_name)})
|
||||
-_user_link = user_link(user, defined?(user_name) ? user_name : user_email)
|
||||
= raw t("notifications.bodies.#{change_type}_branch", {:branch_name => branch_name, :user_link => _user_link})
|
||||
= raw t("notifications.bodies.project", :project_link => link_to("#{project_owner}/#{project_name}", project_path(project_owner, project_name)) )
|
||||
.both
|
||||
%span.date= activity_feed.created_at
|
||||
|
|
Loading…
Reference in New Issue