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

131 lines
4.4 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 %>
<%= 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-08-01 20:10:56 +08:00
<div id="wrapper3">
<%=render :partial => 'layouts/base_header'%>
2013-08-01 10:33:49 +08:00
<div id="main" class="">
2013-08-04 14:23:12 +08:00
<!--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">
<table>
<tr>
<td align="left" valign="middle" ><%= link_to image_tag(url_to_avatar(@user), :class => 'avatar'), :class => "avatar" %></td>
<td>
<table>
<tr>
2013-08-04 10:56:56 +08:00
<td class="info_font"><%= h @user.name%> <img src="/images/sidebar/male.png" width="11" height="11"/> </td>
2013-08-01 10:33:49 +08:00
</tr>
<tr>
<td align="center"><% unless User.current == @user %>
<%= watcher_link(@user, User.current) %>
2013-08-04 10:56:56 +08:00
<% else %><%= link_to(l(:label_user_edit), edit_user_path(@user)) if User.current.admin? %><% end %></td>
2013-08-01 10:33:49 +08:00
</tr>
</table></td>
</tr>
</table>
<div>
关注 (<strong class="font_small_watch"><%= User.watched_by(@user.id).count %></strong>) &nbsp;粉丝 (<strong class="font_small_watch"><%= @user.watcher_users.count %></strong>)
2013-08-01 10:33:49 +08:00
</div>
</div>
<div class="user_underline"></div>
<!--个人信息-->
<div class="inf_user_context">
<table style="font-family:微软雅黑">
<tr>
2013-08-01 11:08:59 +08:00
<td class="font_lighter_sidebar">加入时间:</td><td><%= format_date(@user.created_on) %></td>
2013-08-01 10:33:49 +08:00
</tr>
<tr>
2013-08-01 11:08:59 +08:00
<td class="font_lighter_sidebar">最近登录:</td><td><%= format_date(@user.last_login_on) %></td>
2013-08-01 10:33:49 +08:00
</tr>
<tr>
2013-08-01 11:08:59 +08:00
<td class="font_lighter_sidebar">邮件地址:</td><td><%= mail_to(h(@user.mail), nil, :encode => 'javascript') %></td>
2013-08-01 10:33:49 +08:00
</tr>
</table>
2013-08-04 10:56:56 +08:00
2013-08-01 10:33:49 +08:00
</div>
<div class="user_underline"></div>
<!--关注-->
<div class="user_fans">
<div class="font_title_left">
<strong>关注(<%= link_to User.watched_by(@user.id).count, home_path %>)</strong>
</div>
<div class="left_wf">
<table>
<tr>
<td style="padding-top: 5px">
2013-08-03 19:42:09 +08:00
<%= show_watcher_profile(@user) %>
2013-08-01 10:33:49 +08:00
</td>
</tr>
2013-08-01 10:33:49 +08:00
</table>
</div>
</div>
<div class="user_underline"></div>
<!--粉丝-->
<div class="user_fans">
<div class="font_title_left">
<strong>粉丝(<%= link_to @user.watcher_users.count, home_path %>)</strong>
</div>
<!-- <div class="user_underline"></div> -->
<div class="left_wf">
<table>
<tr>
<td style="padding-top: 5px">
2013-08-03 19:42:09 +08:00
<%= show_fans_picture(@user) %>
2013-08-01 10:33:49 +08:00
</td>
</tr>
2013-08-01 10:33:49 +08:00
</table>
</div>
</div>
<div class="user_underline"></div>
<!--扩充 y有待增加-->
</div>
</div>
</div>
<div id="content" style="padding-top: 0px;">
<div class="tabs_new">
2013-08-01 10:33:49 +08:00
<%= render_menu :user_menu %>
</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>
2013-08-03 19:42:09 +08:00
<%=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>
2013-08-03 19:42:09 +08:00
<div id="ajax-modal" style="display:none;"></div>
2013-08-01 10:33:49 +08:00
</div>
</div>
2013-08-01 20:10:56 +08:00
2013-08-01 10:33:49 +08:00
<%= call_hook :view_layouts_base_body_bottom %>
</body>
</html>