Commit b3bfb752 authored by Riyad Preukschas's avatar Riyad Preukschas

Fix link_to_member to not be bold by default

parent 167f26b9
...@@ -26,21 +26,19 @@ module ProjectsHelper ...@@ -26,21 +26,19 @@ module ProjectsHelper
# Build avatar image tag # Build avatar image tag
avatar = image_tag(gravatar_icon(author.try(:email)), width: 16, class: "lil_av") avatar = image_tag(gravatar_icon(author.try(:email)), width: 16, class: "lil_av")
# Build name strong tag # Build name span tag
name = content_tag :strong, author.name, class: 'author' name = content_tag :span, author.name, class: 'author'
author_html = avatar + name author_html = avatar + name
tm = project.team_member_by_id(author) tm = project.team_member_by_id(author)
content_tag :span, class: 'member-link' do
if tm if tm
link_to author_html, project_team_member_path(project, tm), class: "author_link" link_to author_html, project_team_member_path(project, tm), class: "author_link"
else else
author_html author_html
end end
end end
end
def tm_path team_member def tm_path team_member
project_team_member_path(@project, team_member) project_team_member_path(@project, team_member)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment