socialforge/app/views/layouts/base_users.html.erb

143 lines
5.0 KiB
Plaintext
Raw Normal View History

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-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">
<div id="wrapper3">
<%= render :partial => 'layouts/base_header'%>
2013-08-06 10:16:51 +08:00
<div id="main">
<!--user page, add by huang-->
2013-08-01 10:33:49 +08:00
<div id="sidebar">
<div class="main_context">
<div class="spaceleft">
<div class="inf_user_image">
2013-08-01 10:33:49 +08:00
<table>
<tr>
<td align="left" valign="middle" ><%= link_to image_tag(url_to_avatar(@user), :class => 'avatar2'), :class => "avatar" %></td>
2013-08-01 10:33:49 +08:00
<td>
<table>
<tr>
<td class="info_font" align="center" style=" word-wrap: break-word; word-break: break-all"><%= h @user.lastname<<@user.firstname %> <%=image_tag("/images/sidebar/male.png", weight:"11px", height:"11px") %>
</td>
2013-08-01 10:33:49 +08:00
</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 %><% end %></td>
2013-08-01 10:33:49 +08:00
</tr>
</table></td>
</tr>
</table>
2013-08-10 16:16:02 +08:00
<div>
<%= l(:label_user_watcher) %> (<strong class="font_small_watch"><%=link_to User.watched_by(@user.id).count ,:controller=>"users", :action=>"user_watchlist"%></strong>) &nbsp;
<%= l(:label_user_fans) %> (<strong class="font_small_watch"><%=link_to @user.watcher_users(@user.id).count, :controller=>"users", :action=>"user_fanslist" %></strong>)
</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-12 23:21:00 +08:00
<table style="font-family:微软雅黑" width="220">
2013-08-01 10:33:49 +08:00
<tr>
2013-08-12 23:21:00 +08:00
<td style="padding-left: 8px" width="80px"><%= l(:label_user_joinin) %></td><td class="font_lighter_sidebar" width="140px"><%= format_date(@user.created_on) %></td>
</tr>
2013-08-01 10:33:49 +08:00
<tr>
2013-08-10 09:31:48 +08:00
<td style="padding-left: 8px"><%= l(:label_user_login) %></td><td class="font_lighter_sidebar"><%= format_date(@user.last_login_on) %></td>
2013-08-01 10:33:49 +08:00
</tr>
<tr>
<td valign="top" style="padding-left: 8px;"><%= l(:label_user_mail) %></td><td class="font_lighter_sidebar" style=" 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>
</table>
2013-08-01 10:33:49 +08:00
</div>
<!--tags-->
2013-08-01 10:33:49 +08:00
<div class="user_underline"></div>
<div class="user_fans">
<!-- added by william -for tag -->
<div class="user_tags">
<div id="tags">
<%= render :partial => 'tags/tag', :locals => {:obj => @user,:object_flag => "1"}%>
</div></div>
</div>
2013-08-06 10:16:51 +08:00
<!--watch-->
<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-01 10:33:49 +08:00
</div>
2013-08-01 10:33:49 +08:00
<div class="left_wf">
<table>
<tr>
<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">
<strong><%= l(:label_user_fans) %></strong>
</div>
2013-08-01 10:33:49 +08:00
<div class="left_wf">
<table>
<tr>
<td style="padding-top: 5px"> <%= show_fans_picture(@user) %> </td>
</tr>
2013-08-01 10:33:49 +08:00
</table>
</div>
</div>
<div class="user_underline"></div>
2013-08-01 10:33:49 +08:00
</div>
</div>
</div>
<div id="content" style="padding-top: 0px;">
<div class="tabs_new">
<% if @user == User.current %>
<%= render_menu :user_menu_self %>
<%else%>
<%= render_menu :user_menu %>
<%end%>
</div>
<%= yield %>
<%= call_hook :view_layouts_base_content %>
<div style="clear:both;"></div>
<%= render_flash_messages %>
2013-08-01 20:10:56 +08:00
</div>
<%= render :partial => 'layouts/base_footer'%>
</div>
2013-08-01 10:33:49 +08:00
<div id="ajax-indicator" style="display:none;">
<span><%= l(:label_loading) %></span>
</div>
<div id="ajax-modal" style="display:none;"></div>
2013-08-01 10:33:49 +08:00
</div>
</div>
2013-08-01 10:33:49 +08:00
<%= call_hook :view_layouts_base_body_bottom %>
</body>
</html>