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

156 lines
5.3 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">
<div id="top-menu" style="background-color: #FFFFFF">
<div id="account">
<div id="top-menu" style="background-color: #FFFFFF">
<%= render_menu :account_menu -%>
</div>
<%= content_tag('div', "#{l(:label_logged_as)} #{link_to_user(User.current, :format => :username)}".html_safe, :id => 'loggedas') if User.current.logged? %>
<%= render_menu :top_menu if User.current.logged? || !Setting.login_required? -%>
</div>
<div id="main" class="">
<!--user page-->
<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"><%= h @user.name%></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>
关注 (<%= link_to User.watched_by(@user.id).count, home_path %>) &nbsp;粉丝 (<%= link_to @user.watcher_users.count, home_path %>)
</div>
</div>
<div class="user_underline"></div>
<!--个人信息-->
<div class="inf_user_context">
<table style="font-family:微软雅黑">
<tr>
<td class="font_lighter_sidebar">加入时间:</td><td><%= format_date(@user.created_on) %></td>
</tr>
<tr>
<td class="font_lighter_sidebar">最近登录:</td><td><%= format_date(@user.last_login_on) %></td>
</tr>
<tr>
<td class="font_lighter_sidebar">邮件地址:</td><td><%= mail_to(h(@user.mail), nil, :encode => 'javascript') %></td>
</tr>
</table>
</div>
<div class="user_underline"></div>
<!--<div class="user_private">
<div class="user_private_left"><a>发私信</a></div>
<div class="user_private_right"><a>发留言</a></div>
</div> -->
<!--座右铭
<div class="inf_user_motto">
<span>加油~</span>
</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">
<% for user in User.watched_by(@user.id)%>
<%= link_to image_tag(url_to_avatar(user), :class => "avatar"), user_path(user), :class => "avatar" %>
<% end%>
</td>
</tr>
<tr>
<td align="right">...</td>
</tr>
</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">
<% for user in @user.watcher_users %>
<%= link_to image_tag(url_to_avatar(user), :class => "avatar"), user_path(user), :class => "avatar" %>
<% end%>
</td>
</tr>
<tr>
<td align="right">...</td>
</tr>
</table>
</div>
</div>
<div class="user_underline"></div>
<!--扩充 y有待增加-->
</div>
</div>
</div>
<div id="content" style="padding-top: 0px;">
<div class="tabs">
<%= render_menu :user_menu %>
</div>
<%= yield %>
<%= call_hook :view_layouts_base_content %>
<div style="clear:both;"></div>
<%= render_flash_messages %>
</div>
</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>