Merge branch 'master' into discussions
This commit is contained in:
commit
bda7fe38d0
70 changed files with 571 additions and 311 deletions
|
@ -30,8 +30,17 @@ module EventsHelper
|
|||
|
||||
content_tag :div, class: "filter_icon #{inactive}" do
|
||||
link_to dashboard_path, class: 'has_tooltip event_filter_link', id: "#{key}_event_filter", 'data-original-title' => tooltip do
|
||||
image_tag "event_filter_#{key}.png"
|
||||
content_tag :i, nil, class: icon_for_event[key]
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
def icon_for_event
|
||||
{
|
||||
EventFilter.push => "icon-upload-alt",
|
||||
EventFilter.merged => "icon-check",
|
||||
EventFilter.comments => "icon-comments",
|
||||
EventFilter.team => "icon-user",
|
||||
}
|
||||
end
|
||||
end
|
||||
|
|
|
@ -26,19 +26,17 @@ module ProjectsHelper
|
|||
# Build avatar image tag
|
||||
avatar = image_tag(gravatar_icon(author.try(:email)), width: 16, class: "lil_av")
|
||||
|
||||
# Build name strong tag
|
||||
name = content_tag :strong, author.name, class: 'author'
|
||||
# Build name span tag
|
||||
name = content_tag :span, author.name, class: 'author'
|
||||
|
||||
author_html = avatar + name
|
||||
|
||||
tm = project.team_member_by_id(author)
|
||||
|
||||
content_tag :span, class: 'member-link' do
|
||||
if tm
|
||||
link_to author_html, project_team_member_path(project, tm), class: "author_link"
|
||||
else
|
||||
author_html
|
||||
end
|
||||
if tm
|
||||
link_to author_html, project_team_member_path(project, tm), class: "author_link"
|
||||
else
|
||||
author_html
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue