<%= _('Basic information')%> <%= display_field(_('About:'), profile, :description) if !@action %> <%= display_field(_('Sex:'), profile, :sex) { |gender| { 'male' => _('Male'), 'female' => _('Female') }[gender] } %> <%= display_field(_('Date of birth:'), profile, :birth_date) { |date| show_date(date) }%> <%= display_field(_('Location:'), profile, :location, true) %> <%= display_field(_('Type:'), profile, :privacy_setting, true) %> <%= _('Created at:') %> <%= show_date(profile.created_at) %> <% if profile == user || profile.friends.include?(user) %> <%= _('Contact')%> <%= display_field(_('Address:'), profile, :address) %> <%= display_field(_('ZIP code:'), profile, :zip_code) %> <%= display_field(_('Contact phone:'), profile, :contact_phone) %> <%= display_field(_('e-Mail:'), profile, :email, true) { |email| link_to_email(email) } %> <% end %> <% cache_timeout(profile.relationships_cache_key, 4.hours.from_now) do %> <% if !(profile.organization.blank? && profile.organization_website.blank?) && (profile.active_fields.include?('organization') || profile.active_fields.include?('organization_website')) %> <%= _('Work')%> <% end %> <%= display_field(_('Organization:'), profile, :organization) %> <%= display_field(_('Organization website:'), profile, :organization_website) { |url| link_to(url, url) }%> <% if !environment.enabled?('disable_asset_enterprises') && !profile.enterprises.empty? %> <%= __('Enterprises') %> <% profile.enterprises.each do |item| %> <%= button 'menu-enterprise', item.name, item.url %> <% end %> <% end %> <%= _('Network')%> <%= __('Friends') + ':' %> <%= link_to profile.friends.count, { :controller => 'profile', :action => 'friends' } %> <%= __('Communities') + ':' %> <%= link_to profile.communities.count, :controller => "profile", :action => 'communities' %> <% if !environment.enabled?('disable_categories') && !profile.interests.empty? %> <%= _('Interests') %> <% profile.interests.each do |item| %> <%= link_to item.name, :controller => 'search', :action => 'category_index', :category_path => item.explode_path %> <% end %> <% end %> <% end %>