fix UrlGenerationError: No route matches for the wiki feed
This commit is contained in:
parent
8ee384775b
commit
4aec2ba061
|
@ -1,10 +1,10 @@
|
|||
-user= User.where(email: user_email).first || User.new(email: user_email) if defined?(user_email)
|
||||
- name_with_owner = "#{project_owner}/#{project_name}"
|
||||
.top
|
||||
.image= link_to(image_tag(avatar_url(user, :small), alt: 'avatar'), user_path(user)) if user.persisted?
|
||||
.text
|
||||
%span
|
||||
= raw t("notifications.bodies.wiki_new_commit_notification", {user_link: user_link(user, user_name), history_link: link_to("wiki", history_project_wiki_index_path(project_owner, project_name))})
|
||||
- name_with_owner = "#{project_owner}/#{project_name}"
|
||||
= raw t("notifications.bodies.wiki_new_commit_notification", {user_link: user_link(user, user_name), history_link: link_to("wiki", history_project_wiki_index_path(name_with_owner))})
|
||||
= raw t("notifications.bodies.project", project_link: link_to(name_with_owner, project_path(name_with_owner)) )
|
||||
.both
|
||||
= datetime_moment activity_feed.created_at, tag: :span, class: 'date'
|
||||
|
|
Loading…
Reference in New Issue