Merge branch 'master' into discussions

This commit is contained in:
Riyad Preukschas 2013-01-15 00:53:00 +01:00
commit bda7fe38d0
70 changed files with 571 additions and 311 deletions

View file

@ -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

View file

@ -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