<% 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 %>
<%= 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 request.host()+"/users" ,:controller => 'users', :action => 'index' %> | <%=link_to "主页", home_path %> > <%=link_to "软件创客", :controller => 'users', :action => 'index' %> > <%=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)}", :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(:field_occupation) %>: | <% unless @user.user_extensions.school.nil? %> <%= @user.user_extensions.school.name %> <% end %> |
<%= l(:label_location) %>: | <%= @user.user_extensions.location %><%= @user.user_extensions.location_city %> |
<%= l(:label_technical_title) %>: | <%= @user.user_extensions.technical_title %> | <% end %>
<%= l(:label_bidding_user_studentcode)%>: | <%= @user.user_extensions.student_id %> |
<%= 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) %> |