Commit b3bfb75252b9feaaab7fa5969b9c9bb4b34d864e

Authored by Riyad Preukschas
1 parent 167f26b9

Fix link_to_member to not be bold by default

Showing 1 changed file with 6 additions and 8 deletions   Show diff stats
app/helpers/projects_helper.rb
... ... @@ -26,19 +26,17 @@ module ProjectsHelper
26 26 # Build avatar image tag
27 27 avatar = image_tag(gravatar_icon(author.try(:email)), width: 16, class: "lil_av")
28 28  
29   - # Build name strong tag
30   - name = content_tag :strong, author.name, class: 'author'
  29 + # Build name span tag
  30 + name = content_tag :span, author.name, class: 'author'
31 31  
32 32 author_html = avatar + name
33 33  
34 34 tm = project.team_member_by_id(author)
35 35  
36   - content_tag :span, class: 'member-link' do
37   - if tm
38   - link_to author_html, project_team_member_path(project, tm), class: "author_link"
39   - else
40   - author_html
41   - end
  36 + if tm
  37 + link_to author_html, project_team_member_path(project, tm), class: "author_link"
  38 + else
  39 + author_html
42 40 end
43 41 end
44 42  
... ...