<% if @user.user_extensions.identity == 2 %>
<%= render_menu :user_enterprise_menu %>
<% else %>
<%= render_menu :user_menu, @user %>
<% end %>
<%= yield %>
<%= call_hook :view_layouts_base_content %>
<%#= render_flash_messages %>
<%= l(:label_user_home) %> | <%= l(:label_user_location) %> : |
<%= form_tag(:controller => 'users', :action => 'search', :method => :get) do %>
<%= text_field_tag 'name', params[:name], :size => 20 %>
<%= submit_tag l(:label_search), :class => "enterprise", :name => nil %>
<% end %>
|
<%=link_to l(:field_homepage), home_path %> > <%=link_to @user.name, user_path %> |
<%= image_tag(url_to_avatar(@user), :class => 'avatar2') %> |
|
<%= 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.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)}", :maxlength => 200, :style => "resize: none;", :class => 'noline'%> |
<%#= submit_tag l(:button_submit), :name => nil , :class => "bid_btn" %> <%= l(:label_submit)%> |
<%= l(:label_user_join) %>: | <%= format_time(@user.created_on) %> |
<%= l(:label_user_login) %>: | <%= format_time(@user.last_login_on) %> |
<%= l(:field_occupation) %>: | <%= @user.user_extensions.school.name %> | <% end %>
<%= l(:field_occupation) %>: | <%= @user.user_extensions.occupation %> |
<%= l(:label_company_name) %>: | <%= @user.firstname %> |
<%= l(:label_location) %>: | <%= @user.user_extensions.location %> <%= @user.user_extensions.location_city %> |
<%= l(:label_technical_title) %>: | <%= get_technical_title @user %> | <% end %>
<%= l(:label_bidding_user_studentcode)%>: | <%= @user.user_extensions.student_id %> |
<%= l(:label_identity)%>: | <%= l(:label_account_identity_student) %> |
<%= l(:label_identity)%>: | <%= l(:label_account_identity_developer) %> |
<%= render :partial => 'tags/tag', :locals => {:obj => @user,:object_flag => "1"}%>
<%= l(:label_user_watcher) %>
<% if show_more_watchers?(@user) %>
<%= link_to l(:button_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(:button_more), :controller => "users", :action => "user_fanslist"%>
<% end %>
<%= show_fans_picture(@user) %> |