|
|
@ -105,6 +105,7 @@ module UsersHelper
|
|
|
|
end
|
|
|
|
end
|
|
|
|
content_tag('div', content, :class => "pagination")
|
|
|
|
content_tag('div', content, :class => "pagination")
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
def user_course(state)
|
|
|
|
def user_course(state)
|
|
|
|
content = ''.html_safe
|
|
|
|
content = ''.html_safe
|
|
|
|
if @user != User.current
|
|
|
|
if @user != User.current
|
|
|
@ -166,8 +167,8 @@ module UsersHelper
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
# added by huang
|
|
|
|
# added by huang
|
|
|
|
def sort_user(state, project_type)
|
|
|
|
def sort_user(state, project_type)
|
|
|
|
content = ''.html_safe
|
|
|
|
content = ''.html_safe
|
|
|
|
case state
|
|
|
|
case state
|
|
|
|
when 0
|
|
|
|
when 0
|
|
|
@ -206,4 +207,11 @@ def sort_user(state, project_type)
|
|
|
|
content = content_tag('ul', content)
|
|
|
|
content = content_tag('ul', content)
|
|
|
|
content_tag('div', content, :class => "tabs_enterprise")
|
|
|
|
content_tag('div', content, :class => "tabs_enterprise")
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def gender_avatar_uri user
|
|
|
|
|
|
|
|
img_uri = '/images/sidebar/female.png'
|
|
|
|
|
|
|
|
return img_uri if user.user_extensions.blank?
|
|
|
|
|
|
|
|
person_gender = user.user_extensions.gender
|
|
|
|
|
|
|
|
img_uri = (person_gender == 1) ? '/images/sidebar/female.png' : '/images/sidebar/male.png'
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|