|
|
|
@ -39,6 +39,7 @@
|
|
|
|
|
<% if @user.user_extensions.gender == 1 %> <%=image_tag("/images/sidebar/female.png", weight:"22px", height:"22px") %>
|
|
|
|
|
<% else %> <%=image_tag("/images/sidebar/male.png", weight:"25px", height:"25px") %> <% end %>
|
|
|
|
|
<% else %> <%=image_tag("/images/sidebar/male.png", weight:"25px", height:"25px") %> <% end %>
|
|
|
|
|
|
|
|
|
|
<!-- end -->
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
@ -56,7 +57,31 @@
|
|
|
|
|
<strong class="font_small_watch"><%=link_to l(:label_user_watcher)+"("+User.watched_by(@user.id).count.to_s+")" ,:controller=>"users", :action=>"user_watchlist"%></strong>
|
|
|
|
|
|
|
|
|
|
<strong class="font_small_watch"><%=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" %></strong>
|
|
|
|
|
|
|
|
|
|
<p><%= toggle_link l(:label_brief_introduction), 'introduction', {:focus => 'new_form_project_message'} %></p>
|
|
|
|
|
|
|
|
|
|
<% unless @user.user_extensions.nil? %>
|
|
|
|
|
<%= @user.user_extensions.brief_introduction %>
|
|
|
|
|
<% end %>
|
|
|
|
|
<div id="introduction" style="display: none">
|
|
|
|
|
<%= form_for('new_form', :method => :post,
|
|
|
|
|
:url => {:controller => 'words', :action => 'add_brief_introdution'}) do |f|%>
|
|
|
|
|
|
|
|
|
|
<table border="0" width="100%" align="center" >
|
|
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
<td><%= f.text_area 'user_introduction', :rows => 3, :cols => 65, :placeholder => "#{l(:label_my_brief_introduction)}", :style => "resize: none;", :class => 'noline'%></td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
<table border="0" width="200px" align="center">
|
|
|
|
|
<tr>
|
|
|
|
|
<td align="right"> <%= submit_tag l(:button_submit), :name => nil , :class => "bid_btn" %></td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
<% end %>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
<div class="user_underline"></div>
|
|
|
|
@ -72,8 +97,8 @@
|
|
|
|
|
<tr>
|
|
|
|
|
<td valign="top" style="padding-left: 8px;"><%= l(:label_user_mail) %></td><td class="font_lighter_sidebar" style="padding-left: 0px; word-wrap: break-word; word-break: break-all"><%= mail_to(h(@user.mail), nil, :encode => 'javascript') %></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<!-- added by bai 在个人主页里显示“工作单位”“地区”-->
|
|
|
|
|
|
|
|
|
|
<!-- added by bai 在个人主页里显示“工作单位”“地区”-->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|