<% if @user.user_extensions.identity == 2 %>
<%= render_menu :user_enterprise_menu %>
<% else %>
<%= render_menu :user_menu %>
<% end %>
<%= yield %>
<%= call_hook :view_layouts_base_content %>
<%= render_flash_messages %>
<%= link_to image_tag(url_to_avatar(@user), :class => 'avatar2'), :class => "avatar" %> |
|
<%=link_to l(:label_user_watcher)+"("+User.watched_by(@user.id).count.to_s+")" ,:controller=>"users", :action=>"user_watchlist"%>
<%=link_to l(:label_x_user_fans, :count => User.current.watcher_users(User.current.id).count)+"("+@user.watcher_users(@user.id).count.to_s+")", :controller=>"users", :action=>"user_fanslist" %>
<% if @user.id == User.current.id %>
<%= toggle_link l(:label_brief_introduction), 'introduction', {:focus => 'new_form_user_introduction'} %>
<% end %> <% unless @user.user_extensions.nil? %><%= @user.user_extensions.brief_introduction %>
<% end %>
<%= form_for('new_form', :method => :post,
:url => {:controller => 'words', :action => 'add_brief_introdution'}) do |f|%>
<% end %>
<%= f.text_area 'user_introduction', :rows => 3, :cols => 65, :placeholder => "#{l(:label_my_brief_introduction)}", :style => "resize: none;", :class => 'noline'%> |
<%= submit_tag l(:button_submit), :name => nil , :class => "bid_btn" %> |
<%= l(:label_user_joinin) %> | <%= format_time(@user.created_on) %> |
<%= l(:label_user_login) %> | <%= format_time(@user.last_login_on) %> |
<%= l(:label_user_mail) %> | <%= mail_to(h(@user.mail), nil, :encode => 'javascript') %> |
<%= l(:field_occupation) %>: | <%= @user.user_extensions.occupation %> |
<%= l(:label_location) %>: | <%= @user.user_extensions.location %><%= @user.user_extensions.location_city %> |
<% if @user.user_extensions.identity == 0 %> <%= l(:label_technical_title) %>: | <%= @user.user_extensions.technical_title %> | <% end %>
<%= l(:field_occupation) %>: | |
<%= l(:label_location) %>: |
<%= render :partial => 'tags/tag', :locals => {:obj => @user,:object_flag => "1"}%>
<%= l(:label_user_watcher) %>
<% if show_more_watchers?(@user) %>
<%= link_to l(:label_more), :controller => "users", :action => "user_watchlist"%>
<% end %>
<%= show_watcher_profile(@user) %> |
<%= l(:label_x_user_fans, :count => User.current.watcher_users(User.current.id).count) %>
<% if show_more_fans?(@user) %>
<%= link_to l(:label_more), :controller => "users", :action => "user_fanslist"%>
<% end %>
<%= show_fans_picture(@user) %> |