Remove team_member show page -> use user_path instead
This commit is contained in:
parent
366bc32013
commit
fa9a8c3847
13 changed files with 34 additions and 178 deletions
|
@ -32,17 +32,7 @@ module ProjectsHelper
|
|||
|
||||
author_html = author_html.html_safe
|
||||
|
||||
tm = project.team_member_by_id(author)
|
||||
|
||||
if tm
|
||||
link_to author_html, project_team_member_path(project, tm.user_username), class: "author_link"
|
||||
else
|
||||
author_html
|
||||
end.html_safe
|
||||
end
|
||||
|
||||
def tm_path team_member
|
||||
project_team_member_path(@project, team_member)
|
||||
link_to(author_html, user_path(author), class: "author_link").html_safe
|
||||
end
|
||||
|
||||
def project_title project
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue