2013-08-01 10:33:49 +08:00
|
|
|
|
<!DOCTYPE html>
|
|
|
|
|
<html lang="en">
|
|
|
|
|
<head>
|
|
|
|
|
<meta charset="utf-8" />
|
|
|
|
|
<title><%= h html_title %></title>
|
|
|
|
|
<meta name="description" content="<%= Redmine::Info.app_name %>" />
|
|
|
|
|
<meta name="keywords" content="issue,bug,tracker" />
|
|
|
|
|
<%= csrf_meta_tag %>
|
|
|
|
|
<%= favicon %>
|
|
|
|
|
<%= stylesheet_link_tag 'jquery/jquery-ui-1.9.2', 'application', :media => 'all' %>
|
|
|
|
|
<%= stylesheet_link_tag 'rtl', :media => 'all' if l(:direction) == 'rtl' %>
|
|
|
|
|
<%= javascript_heads %>
|
2013-08-10 22:54:16 +08:00
|
|
|
|
|
2013-08-01 10:33:49 +08:00
|
|
|
|
<%= heads_for_theme %>
|
|
|
|
|
<%= call_hook :view_layouts_base_html_head %>
|
|
|
|
|
<!-- page specific tags -->
|
|
|
|
|
<%= yield :header_tags -%>
|
|
|
|
|
</head>
|
|
|
|
|
<body class="<%= h body_css_classes %>">
|
|
|
|
|
<div id="wrapper">
|
|
|
|
|
<div id="wrapper2">
|
2013-11-04 16:07:31 +08:00
|
|
|
|
<div id="wrapper3">
|
|
|
|
|
<%= render :partial => 'layouts/base_header'%>
|
2013-08-06 10:16:51 +08:00
|
|
|
|
<div id="main">
|
2013-11-04 20:51:47 +08:00
|
|
|
|
<!--added by huang-->
|
2013-11-05 12:49:57 +08:00
|
|
|
|
<div class="top-content">
|
2013-11-04 16:07:31 +08:00
|
|
|
|
<table>
|
|
|
|
|
<tr>
|
2013-11-05 20:04:45 +08:00
|
|
|
|
<td class="info_font" style="width: 238px; color: #15bccf"><%= l(:label_user_home) %></td>
|
2013-12-13 20:01:27 +08:00
|
|
|
|
<td style="width: 430px; color: #15bccf"><strong><%= l(:label_user_location) %> : </strong></td>
|
2013-11-05 15:38:12 +08:00
|
|
|
|
<td rowspan="2" width="250px">
|
2013-11-04 20:51:47 +08:00
|
|
|
|
<div class="top-content-search">
|
|
|
|
|
<%= form_tag(:controller => 'users', :action => 'search', :method => :get) do %>
|
2013-11-05 15:38:12 +08:00
|
|
|
|
<%= text_field_tag 'name', params[:name], :size => 20 %>
|
2013-11-05 10:58:23 +08:00
|
|
|
|
<%= submit_tag l(:label_search), :class => "enterprise", :name => nil %>
|
2013-11-04 20:51:47 +08:00
|
|
|
|
<% end %>
|
|
|
|
|
</div>
|
|
|
|
|
</td>
|
2013-11-04 16:07:31 +08:00
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
2013-11-06 10:31:20 +08:00
|
|
|
|
<td style="padding-left: 8px"><a><%=link_to "forge.trustie.net/users" ,:controller => 'users', :action => 'index' %></a></td>
|
2013-11-05 12:49:57 +08:00
|
|
|
|
<!-- modified by bai --> <td><%=link_to "主页", home_path %> > <%=link_to "软件创客", :controller => 'users', :action => 'index' %> > <span><%=link_to @user.show_name, user_path %></span></td>
|
2013-11-04 16:07:31 +08:00
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
2013-11-04 15:20:22 +08:00
|
|
|
|
</div>
|
2013-11-04 20:51:47 +08:00
|
|
|
|
<!--end-->
|
2013-08-10 22:54:16 +08:00
|
|
|
|
<!--user page, add by huang-->
|
2013-08-01 10:33:49 +08:00
|
|
|
|
<div id="sidebar">
|
|
|
|
|
<div class="main_context">
|
2013-08-10 22:54:16 +08:00
|
|
|
|
<div class="spaceleft">
|
|
|
|
|
<div class="inf_user_image">
|
2013-08-01 10:33:49 +08:00
|
|
|
|
<table>
|
|
|
|
|
<tr>
|
2013-11-04 16:07:31 +08:00
|
|
|
|
<td align="left" valign="middle" ><%= image_tag(url_to_avatar(@user), :class => 'avatar2') %></td>
|
2013-08-01 10:33:49 +08:00
|
|
|
|
<td>
|
|
|
|
|
<table>
|
|
|
|
|
<tr>
|
2013-11-19 15:15:54 +08:00
|
|
|
|
<td class="info_font" align="center" style=" word-wrap: break-word; word-break: break-all"><%= h @user.lastname<<@user.firstname %> <!-- added by bai -->
|
|
|
|
|
<%= image_tag(gender_avatar_uri(@user), weight:"25px", height:"25px") if (@user.user_extensions && (@user.user_extensions.identity != 2) )%></td>
|
2013-08-01 10:33:49 +08:00
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
2013-08-10 22:54:16 +08:00
|
|
|
|
<td align="center"> <% unless User.current == @user %>
|
|
|
|
|
<%= watcher_link(@user, User.current) %>
|
|
|
|
|
<% else %>
|
2013-08-13 11:14:25 +08:00
|
|
|
|
<%= link_to(l(:label_user_edit), my_account_path(@user)) if User.current %><% end %></td>
|
2013-08-01 10:33:49 +08:00
|
|
|
|
</tr>
|
|
|
|
|
</table></td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
2013-08-10 22:54:16 +08:00
|
|
|
|
|
2013-08-10 16:16:02 +08:00
|
|
|
|
<div>
|
2013-11-04 16:07:31 +08:00
|
|
|
|
<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>
|
|
|
|
|
|
|
|
|
|
<strong class="font_small_watch"><%= link_to l(:label_requirement_focus)+"("+Bid.watched_by(@user).where('reward_type = ?', 1).count.to_s+")" ,:controller=>"users", :action=>"watch_bids"%></strong> <!-- added by huang -->
|
|
|
|
|
|
|
|
|
|
<!-- added by bai 个人签名-->
|
|
|
|
|
<% if @user.id == User.current.id %>
|
|
|
|
|
<p>
|
|
|
|
|
<%= toggle_link l(:label_brief_introduction), 'introduction', {:focus => 'new_form_user_introduction'} %>
|
|
|
|
|
</p>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% unless @user.user_extensions.nil? %>
|
|
|
|
|
<p>
|
|
|
|
|
<%= @user.user_extensions.brief_introduction %>
|
|
|
|
|
</p>
|
|
|
|
|
<% 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>
|
|
|
|
|
<!-- end -->
|
2013-09-14 17:22:44 +08:00
|
|
|
|
|
2013-08-10 22:54:16 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
2013-08-01 10:33:49 +08:00
|
|
|
|
</div>
|
|
|
|
|
<div class="user_underline"></div>
|
2013-08-06 10:16:51 +08:00
|
|
|
|
<!--info-->
|
2013-08-01 10:33:49 +08:00
|
|
|
|
<div class="inf_user_context">
|
2013-08-27 16:17:52 +08:00
|
|
|
|
<table style="font-family:微软雅黑" width="240">
|
2013-08-01 10:33:49 +08:00
|
|
|
|
<tr>
|
2013-12-26 11:30:31 +08:00
|
|
|
|
<td style="padding-left: 5px" width="70px"><%= l(:label_user_joinin) %>:</td><td class="font_lighter_sidebar" style="padding-left: 0px" width="170px"><%= format_time(@user.created_on) %></td>
|
2013-08-10 22:54:16 +08:00
|
|
|
|
</tr>
|
2013-08-01 10:33:49 +08:00
|
|
|
|
<tr>
|
2013-12-26 11:30:31 +08:00
|
|
|
|
<td style="padding-left: 5px"><%= l(:label_user_login) %>:</td><td class="font_lighter_sidebar" style="padding-left: 0px"><%= format_time(@user.last_login_on) %></td>
|
2013-08-01 10:33:49 +08:00
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
2013-12-26 11:30:31 +08:00
|
|
|
|
<td valign="top" style="padding-left: 5px;"><%= 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>
|
2013-08-01 10:33:49 +08:00
|
|
|
|
</tr>
|
2013-11-04 16:07:31 +08:00
|
|
|
|
|
2013-09-23 09:41:36 +08:00
|
|
|
|
<!-- added by bai 在个人主页里显示“工作单位”“地区”"教师的职称"-->
|
2013-12-26 11:30:31 +08:00
|
|
|
|
<!-- modified by linchun 在个人主页里显示“加入时间”,“最后登录”,“邮件地址”后面添加冒号-->
|
2013-11-04 16:07:31 +08:00
|
|
|
|
|
|
|
|
|
<% unless @user.user_extensions.nil? %>
|
|
|
|
|
<% unless @user.user_extensions.identity == 2 %>
|
|
|
|
|
<tr>
|
2013-12-26 11:30:31 +08:00
|
|
|
|
<td style="padding-left: 5px" width="70px"><%= l(:field_occupation) %>:</td><td class="font_lighter_sidebar" style="padding-left: 0px" width="170px"><%= @user.user_extensions.occupation %></td>
|
2013-11-04 16:07:31 +08:00
|
|
|
|
</tr>
|
|
|
|
|
<% end %>
|
|
|
|
|
<tr>
|
2013-12-26 11:30:31 +08:00
|
|
|
|
<td style="padding-left: 5px" width="76px"><%= l(:label_location) %>:</td><td class="font_lighter_sidebar" style="padding-left: 0px" width="170px"><%= @user.user_extensions.location %><%= @user.user_extensions.location_city %></td>
|
2013-11-04 16:07:31 +08:00
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
2013-12-26 11:30:31 +08:00
|
|
|
|
<td style="padding-left: 5px" width="76px"> <% if @user.user_extensions.identity == 0 %>
|
2013-11-04 16:07:31 +08:00
|
|
|
|
<%= l(:label_technical_title) %>:</td><td class="font_lighter_sidebar" style="padding-left: 0px" width="170px"><%= @user.user_extensions.technical_title %></td>
|
|
|
|
|
<% end %>
|
|
|
|
|
</tr>
|
2013-12-13 20:01:27 +08:00
|
|
|
|
<% if( (@user.user_extensions.identity == 1) && (is_watching?(@user) ) )%>
|
2013-11-22 17:21:27 +08:00
|
|
|
|
<tr>
|
|
|
|
|
<td style="padding-left: 8px" width="70px"><%= l(:label_bidding_user_studentcode)%>:</td><td class="font_lighter_sidebar" style="padding-left: 0px" width="170px"><%= @user.user_extensions.student_id %></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<% end %>
|
2013-11-04 16:07:31 +08:00
|
|
|
|
<% else%>
|
|
|
|
|
<tr>
|
2013-09-24 12:15:24 +08:00
|
|
|
|
<td style="padding-left: 8px" width="70px"><%= l(:field_occupation) %>:</td>
|
2013-11-04 16:07:31 +08:00
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
2013-09-24 12:15:24 +08:00
|
|
|
|
<td style="padding-left: 8px" width="70px"><%= l(:label_location) %>:</td>
|
2013-11-04 16:07:31 +08:00
|
|
|
|
</tr>
|
|
|
|
|
<% end %>
|
2013-09-13 22:47:14 +08:00
|
|
|
|
</tr>
|
|
|
|
|
<!-- end -->
|
2013-08-01 10:33:49 +08:00
|
|
|
|
</table>
|
2013-08-10 22:54:16 +08:00
|
|
|
|
|
2013-08-01 10:33:49 +08:00
|
|
|
|
</div>
|
2013-08-17 10:44:25 +08:00
|
|
|
|
<!--Modified by nie-->
|
2013-11-04 16:07:31 +08:00
|
|
|
|
<div class="user_underline"></div>
|
|
|
|
|
<div class="user_tags">
|
|
|
|
|
<div id="tags">
|
|
|
|
|
<%= render :partial => 'tags/tag', :locals => {:obj => @user,:object_flag => "1"}%>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="user_underline"></div>
|
2013-08-01 10:33:49 +08:00
|
|
|
|
<div class="user_fans">
|
|
|
|
|
<div class="font_title_left">
|
2013-08-10 09:31:48 +08:00
|
|
|
|
<strong><%= l(:label_user_watcher) %></strong>
|
2013-08-17 10:44:25 +08:00
|
|
|
|
<% if show_more_watchers?(@user) %>
|
2013-11-04 16:07:31 +08:00
|
|
|
|
<div style="font-size: 11px; display: inline; float: right; margin-top: 5px; margin-right: 20px" >
|
|
|
|
|
<%= link_to l(:label_more), :controller => "users", :action => "user_watchlist"%>
|
|
|
|
|
</div>
|
2013-08-17 10:44:25 +08:00
|
|
|
|
<% end %>
|
2013-08-01 10:33:49 +08:00
|
|
|
|
</div>
|
2013-08-10 22:54:16 +08:00
|
|
|
|
|
2013-08-01 10:33:49 +08:00
|
|
|
|
<div class="left_wf">
|
|
|
|
|
<table>
|
|
|
|
|
<tr>
|
2013-08-10 22:54:16 +08:00
|
|
|
|
<td style="padding-top: 5px"> <%= show_watcher_profile(@user) %> </td>
|
|
|
|
|
</tr>
|
2013-08-01 10:33:49 +08:00
|
|
|
|
</table>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="user_underline"></div>
|
2013-08-06 10:16:51 +08:00
|
|
|
|
<!--fans-->
|
2013-08-01 10:33:49 +08:00
|
|
|
|
<div class="user_fans">
|
|
|
|
|
<div class="font_title_left">
|
2013-09-11 20:54:01 +08:00
|
|
|
|
<strong><%= l(:label_x_user_fans, :count => User.current.watcher_users(User.current.id).count) %></strong>
|
2013-08-17 10:44:25 +08:00
|
|
|
|
<% if show_more_fans?(@user) %>
|
2013-11-04 16:07:31 +08:00
|
|
|
|
<div style="font-size: 11px; display: inline; float: right; margin-top: 5px; margin-right: 20px" >
|
|
|
|
|
<%= link_to l(:label_more), :controller => "users", :action => "user_fanslist"%>
|
|
|
|
|
</div>
|
2013-08-17 10:44:25 +08:00
|
|
|
|
<% end %>
|
2013-08-10 22:54:16 +08:00
|
|
|
|
</div>
|
2013-08-01 10:33:49 +08:00
|
|
|
|
<div class="left_wf">
|
|
|
|
|
<table>
|
|
|
|
|
<tr>
|
2013-08-10 22:54:16 +08:00
|
|
|
|
<td style="padding-top: 5px"> <%= show_fans_picture(@user) %> </td>
|
|
|
|
|
</tr>
|
2013-08-01 10:33:49 +08:00
|
|
|
|
</table>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2013-08-10 22:54:16 +08:00
|
|
|
|
<div class="user_underline"></div>
|
2013-08-01 10:33:49 +08:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2013-08-10 22:54:16 +08:00
|
|
|
|
|
|
|
|
|
<div id="content" style="padding-top: 0px;">
|
|
|
|
|
<div class="tabs_new">
|
2013-10-08 22:15:50 +08:00
|
|
|
|
<% if @user.user_extensions.identity == 2 %>
|
|
|
|
|
<%= render_menu :user_enterprise_menu %>
|
|
|
|
|
<% else %>
|
2013-08-10 22:54:16 +08:00
|
|
|
|
<%= render_menu :user_menu %>
|
2013-10-08 22:15:50 +08:00
|
|
|
|
<% end %>
|
2013-08-10 22:54:16 +08:00
|
|
|
|
</div>
|
2013-11-04 16:07:31 +08:00
|
|
|
|
|
2013-08-10 22:54:16 +08:00
|
|
|
|
<%= yield %>
|
|
|
|
|
<%= call_hook :view_layouts_base_content %>
|
|
|
|
|
<div style="clear:both;"></div>
|
|
|
|
|
<%= render_flash_messages %>
|
|
|
|
|
|
2013-08-01 20:10:56 +08:00
|
|
|
|
</div>
|
2013-11-04 16:07:31 +08:00
|
|
|
|
|
2013-08-10 22:54:16 +08:00
|
|
|
|
<%= render :partial => 'layouts/base_footer'%>
|
2013-12-14 10:22:11 +08:00
|
|
|
|
<%= debug(params) if Rails.env.development? %>
|
2013-08-10 22:54:16 +08:00
|
|
|
|
</div>
|
2013-08-01 10:33:49 +08:00
|
|
|
|
<div id="ajax-indicator" style="display:none;">
|
|
|
|
|
<span><%= l(:label_loading) %></span>
|
|
|
|
|
</div>
|
2013-08-10 22:54:16 +08:00
|
|
|
|
<div id="ajax-modal" style="display:none;"></div>
|
2013-08-01 10:33:49 +08:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2013-11-04 16:07:31 +08:00
|
|
|
|
</div>
|
|
|
|
|
<%= call_hook :view_layouts_base_body_bottom %>
|
2013-08-01 10:33:49 +08:00
|
|
|
|
</body>
|
|
|
|
|
</html>
|