135 lines
4.8 KiB
Plaintext
135 lines
4.8 KiB
Plaintext
<!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 %>
|
|
|
|
<%= 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">
|
|
<div id="wrapper3">
|
|
<%=render :partial => 'layouts/base_header'%>
|
|
<div id="main">
|
|
<!--user page, add by huang-->
|
|
<div id="sidebar">
|
|
<div class="main_context">
|
|
<div class="spaceleft">
|
|
<div class="inf_user_image">
|
|
<table>
|
|
<tr>
|
|
<td align="left" valign="middle" ><%= link_to image_tag(url_to_avatar(@user), :class => 'avatar'), :class => "avatar" %></td>
|
|
<td>
|
|
<table>
|
|
<tr>
|
|
<td class="info_font" align="center"><%= h @user.name%> <img src="/images/sidebar/male.png" width="11" height="11"/> </td>
|
|
</tr>
|
|
<tr>
|
|
<td align="center">
|
|
<% unless User.current == @user %>
|
|
<%= watcher_link(@user, User.current) %>
|
|
<% else %>
|
|
<%= link_to(l(:label_user_edit), edit_user_path(@user)) if User.current.admin? %><% end %></td>
|
|
</tr>
|
|
</table></td>
|
|
</tr>
|
|
</table>
|
|
|
|
<div id="praise_tread">
|
|
<%= render :partial => "/praise_tread/praise_tread",:locals => {:obj => @user,:show_flag => false,:user_id => User.current.id}%>
|
|
</div>
|
|
|
|
<div>
|
|
<%= l(:label_user_watcher) %> (<strong class="font_small_watch"><%= User.watched_by(@user.id).count %></strong>)
|
|
<%= l(:label_user_fans) %> (<strong class="font_small_watch"><%= @user.watcher_users.count %></strong>)
|
|
</div>
|
|
</div>
|
|
<div class="user_underline"></div>
|
|
<!--info-->
|
|
<div class="inf_user_context">
|
|
<table style="font-family:微软雅黑">
|
|
<tr>
|
|
<td class="font_lighter_sidebar"><%= l(:label_user_joinin) %></td><td><%= format_date(@user.created_on) %></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="font_lighter_sidebar"><%= l(:label_user_login) %></td><td><%= format_date(@user.last_login_on) %></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="font_lighter_sidebar"><%= l(:label_user_mail) %></td><td><%= mail_to(h(@user.mail), nil, :encode => 'javascript') %></td>
|
|
</tr>
|
|
</table>
|
|
|
|
</div>
|
|
<div class="user_underline"></div>
|
|
<!--watch-->
|
|
|
|
<div class="user_fans">
|
|
<div class="font_title_left">
|
|
<strong><%= l(:label_user_watcher) %>(<%= link_to User.watched_by(@user.id).count %>)</strong>
|
|
</div>
|
|
|
|
<div class="left_wf">
|
|
<table>
|
|
<tr>
|
|
<td style="padding-top: 5px">
|
|
<%= show_watcher_profile(@user) %>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="user_underline"></div>
|
|
<!--fans-->
|
|
<div class="user_fans">
|
|
<div class="font_title_left">
|
|
<strong><%= l(:label_user_fans) %>(<%= link_to @user.watcher_users.count %>)</strong>
|
|
</div>
|
|
<div class="left_wf">
|
|
<table>
|
|
<tr>
|
|
<td style="padding-top: 5px">
|
|
<%= show_fans_picture(@user) %>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="user_underline"></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="content" style="padding-top: 0px;">
|
|
<div class="tabs_new">
|
|
<%= render_menu :user_menu %>
|
|
</div>
|
|
<%= yield %>
|
|
<%= call_hook :view_layouts_base_content %>
|
|
<div style="clear:both;"></div>
|
|
<%= render_flash_messages %>
|
|
|
|
</div>
|
|
<%=render :partial => 'layouts/base_footer'%>
|
|
</div>
|
|
<div id="ajax-indicator" style="display:none;">
|
|
<span><%= l(:label_loading) %></span>
|
|
</div>
|
|
<div id="ajax-modal" style="display:none;"></div>
|
|
</div>
|
|
</div>
|
|
|
|
<%= call_hook :view_layouts_base_body_bottom %>
|
|
</body>
|
|
</html>
|