2013-08-22 14:55:44 +01:00
|
|
|
- edit_url ||= nil
|
2012-10-02 16:20:58 +01:00
|
|
|
- user ||= nil
|
|
|
|
- group ||= nil
|
|
|
|
- name ||= uname
|
2013-08-22 14:55:44 +01:00
|
|
|
- desc, desc_title = if user
|
|
|
|
- [user.professional_experience, t('activerecord.attributes.user.professional_experience')]
|
|
|
|
- else
|
|
|
|
- [group.description , t('activerecord.attributes.group.description')]
|
|
|
|
- max_length = 35
|
|
|
|
|
|
|
|
.row
|
|
|
|
.span3
|
|
|
|
%div{:style => 'float: left;width: 81px; height: 81px;'}
|
|
|
|
= image_tag avatar_url(user || group, :big), :alt => (user || group).uname
|
|
|
|
%div{:style => 'float: left; width: 138px;'}
|
|
|
|
%h3{:style => 'margin: 0 0 0 10px;', :title => uname}= title short_message(uname, 16)
|
|
|
|
%p{:style => 'height: 20px; margin-left: 10px;', :title => user.try(:name)}
|
|
|
|
- if user
|
|
|
|
= short_message(user.name, 28)
|
|
|
|
= link_to image_tag('gears.png', :style => 'margin: 16px 0 0 10px;'), edit_url
|
|
|
|
.both
|
2012-10-02 16:20:58 +01:00
|
|
|
- if user
|
2013-08-22 14:55:44 +01:00
|
|
|
%p{:style => 'margin-top: 10px;'}
|
|
|
|
- message = "#{t 'activerecord.attributes.user.email'}: "
|
|
|
|
= message
|
|
|
|
= mail_to user.email, short_message(user.email, max_length - message.length), :encode => 'javascript', :title => user.email
|
|
|
|
%p
|
|
|
|
- message = "#{t 'activerecord.attributes.user.site'}: "
|
|
|
|
= message
|
|
|
|
= link_to short_message(user.site, max_length - message.length), user.site, :title => user.site
|
|
|
|
%p{:title => user.company}= short_message("#{t 'activerecord.attributes.user.company'}: #{user.company}", max_length)
|
|
|
|
%p{:title => user.location}= short_message("#{t 'activerecord.attributes.user.location'}: #{user.location}", max_length)
|
|
|
|
.span6
|
|
|
|
%h3{:style => 'margin-top: 0;'}= desc_title
|
|
|
|
= desc
|
|
|
|
|
|
|
|
%hr{:color => 'dfe8ef', :size => '3', :style => 'margin-top: 20px;'}
|
|
|
|
|
2012-10-02 16:20:58 +01:00
|
|
|
.content
|
|
|
|
%h4= t("layout.projects.public_projects_list") + ":"
|
|
|
|
%p
|
|
|
|
=form_tag search_path, :id => 'filter_projects', :method => :get do
|
|
|
|
=tracker_search_field(:search, t('layout.find_project'))
|
|
|
|
%br
|
|
|
|
%p
|
|
|
|
- projects.each do |project|
|
|
|
|
= link_to project.name, project
|
|
|
|
%br
|
|
|
|
%br
|
|
|
|
= will_paginate projects
|
|
|
|
%br
|