bigdir/app/views/users/show_old.html.erb

346 lines
11 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!-- <div class="contextual">
<%= link_to(l(:button_edit), edit_user_path(@user), :class => 'icon icon-edit') if User.current.admin? %>
</div>
<h3><%= avatar @user, :size => "50" %> <%=h @user.name %></h3>
<div class="splitcontentleft">
<ul>
<% unless @user.pref.hide_mail && @user == User.current %>
<li><%=l(:field_mail)%>: <%= mail_to(h(@user.mail), nil, :encode => 'javascript') %></li>
<% end %>
<% @user.visible_custom_field_values.each do |custom_value| %>
<% if !custom_value.value.blank? %>
<li><%=h custom_value.custom_field.name%>: <%=h show_value(custom_value) %></li>
<% end %>
<% end %>
<li><%=l(:label_registered_on)%>: <%= format_date(@user.created_on) %></li>
<% unless @user.last_login_on.nil? %>
<li><%=l(:field_last_login_on)%>: <%= format_date(@user.last_login_on) %></li>
<% end %>
</ul>
<% unless @memberships.empty? %>
<h3><%=l(:label_project_plural)%></h3>
<ul>
<% for membership in @memberships %>
<li><%= link_to_project(membership.project) %>
(<%=h membership.roles.sort.collect(&:to_s).join(', ') %>, <%= format_date(membership.created_on) %>)</li>
<% end %>
</ul>
<% end %>
<%= call_hook :view_account_left_bottom, :user => @user %>
</div>
<div class="splitcontentright">
<% unless @events_by_day.empty? %>
<h3><%= link_to l(:label_activity), :controller => 'activities',
:action => 'index', :id => nil, :user_id => @user,
:from => @events_by_day.keys.first %></h3>
<p>
<%=l(:label_reported_issues)%>: <%= Issue.count(:conditions => ["author_id=?", @user.id]) %>
</p>
<div id="activity">
<% @events_by_day.keys.sort.reverse.each do |day| %>
<h4><%= format_activity_day(day) %></h4>
<dl>
<% @events_by_day[day].sort {|x,y| y.event_datetime <=> x.event_datetime }.each do |e| -%>
<dt class="<%= e.event_type %>">
<span class="time"><%= format_time(e.event_datetime, false) %></span>
<%= content_tag('span', h(e.project), :class => 'project') %>
<%= link_to format_activity_title(e.event_title), e.event_url %></dt>
<dd><span class="description"><%= format_activity_description(e.event_description) %></span></dd>
<% end -%>
</dl>
<% end -%>
</div>
<% other_formats_links do |f| %>
<%= f.link_to 'Atom', :url => {:controller => 'activities', :action => 'index', :id => nil, :user_id => @user, :key => User.current.rss_key} %>
<% end %>
<% content_for :header_tags do %>
<%= auto_discovery_link_tag(:atom, :controller => 'activities', :action => 'index', :user_id => @user, :format => :atom, :key => User.current.rss_key) %>
<% end %>
<% end %>
<%= call_hook :view_account_right_bottom, :user => @user %>
</div>
<% html_title @user.name %> -->
<div class="contextual">
<%= link_to(l(:button_edit), edit_user_path(@user), :class => 'icon icon-edit') if User.current.admin? %>
</div>
<!--Modified by nie-->
<h3> <%= h @user.name %></h3>
<!--个人信息person-->
<div class="newsplitcontentall" >
<div class="newsplitcontentleft">
<div class="lbadding">
<!--<h1><%= h @user.name %></h1>-->
<table>
<tr>
<td align="center" valign="middle" width="100">关注 <%= link_to User.watched_by(@user.id).count, home_path %> 粉丝 <%= link_to @user.watcher_users.count, home_path %></td>
</tr>
<tr>
<td align="center" valign="middle" width="100"> <%= link_to image_tag(avatar_image(@user), :class => 'avatar'), :class => "avatar" %></td><td></td>
</tr>
<!-- <li><img src="/images/watcher/watcher_button.png" width="100" height="20" /></li> -->
<tr>
<td align="center" valign="middle" width="100"><!-- added by liuping 关注 --> <% unless User.current == @user %>
<%= watcher_link(@user, User.current) %><% end %></td>
</tr>
</table>
</div>
<!--<img src="/images/new/liuyan.png" width="300" height="30" /> -->
<!--个人信息-文字-->
<div newsplitcontentright>
<div class=rlbadding>
<ul class="newprojects2">
<li style="line-break: 10px">
<h1><%= h @user.name %></h1>
</li>
<% if @user == User.current %>
<li style="line-break: 10px">
<h3><%= mail_to(h(@user.mail), nil, :encode => 'javascript') %></h3>
</li>
<% end %>
<li style="line-break: 10px">
<td class="last_active"><%= l(:field_last_login_on)%>: <%= format_date(@user.last_login_on) %></td>
</li>
<li style="line-break: 10px">
贡献指数:<img src="/images/new/zhishu.png" height="20"/>
</li>
</ul>
</div>
</div>
</div>
<!--关注-->
<div>
<div class="newsplitcontentright">
<div>
<h3><strong><%= link_to l(:label_user_watcher), home_path %></strong></h3>
</div>
<div style="margin:1;padding:1;width:400px;height:1px;background-color:#dbdbdb;overflow:hidden"></div><!--下划线-->
</div>
<div class="newsplitcontentright">
<ul class="projects">
<li><img src="/images/user_images/m2.png" width="160" height="50" /><img src="/images/user_images/m2.png" width="160" height="50" />
</li>
</ul>
<div width="395" height="80"></div>
</div>
</div>
<!-- fq 留言板 -->
<% unless User.current == @user %>
<div class="contextual-message">
<%= render :partial => 'words/new', :locals => {:user => @user, :sta => @state}%>
</div>
<% end %>
<!-- -->
<div class="newsplitcontentleft">
<!-- added by william -for tag -->
<div id="tags">
<%= render :partial => 'tags/tag', :locals => {:obj => @user,:object_flag => "1"}%>
</div>
</div>
</div>
<!-- 留言 fq -->
<!--Modyfied-->
<div id="activity">
<%= render :partial => 'words/message', :locals => {:message => @message, :state => @state} %>
</div>
<!--第二模块-->
<div class="newsplitcontentall" >
<td>&nbsp</td>
<!--项目信息-->
<div>
<div style="padding:1px 0px 0px 0px" >
<h3><strong><%= link_to l(:label_project_plural),home_path %></strong></h3>
</div>
<% unless @memberships.empty? %>
<ul class="context_projects">
<% for membership in @memberships %>
<li>
<table width="820">
<tr>
<td align="center" valign="middle"><img src="/images/new/logo.png" width="40" height="35"/></td>
<td>
<div class="firstname_project">
<%= link_to_project(membership.project) %>
</div></td>
<td>
<div class="tablecontext">
<%= membership.project.description%>
</div></td>
<td width="200" align="right" valign="middle">
<div class="fontligher">
<%= l(:label_user_watcher)%><%= link_to"999",home_path%>&nbsp;<%= l(:label_user_commits)%><%= link_to"12",home_path%>
<div>
<div align="right" valign="bottom">
(<!--<%=h membership.roles.sort.collect(&:to_s).join(', ') %>,-->
<%= format_date(membership.created_on) %>)
</div>
</td>
</tr>
<tr>
<div style="margin:1;padding:1;width:820px;height:1px;background-color:#e8ecf0;overflow:hidden"></div>
</tr>
</table>
</li>
<% end %>
</ul>
<div class=more>
<%= link_to"更多",:controller=>'projects',:action=>'index'%>
</div>
<% else %>
暂无项目,赶快去<%= link_to"新建",:controller=>'projects',:action=>'new'%>吧
<% end %>
<%= call_hook :view_account_left_bottom, :user => @user %>
</div>
<td>&nbsp</td>
**************************
<% unless @memberships.empty? %>
<ul class="context_projects">
<% for membership in @memberships %>
<li>
<table width="860" border="0" align="center">
<tr>
<td colspan="2" valign="top" width="50" ><img src="/images/new/news.png" width="40" height="40"/></td>
<td><table width="760" border="0">
<tr>
<td colspan="2" valign="top"><strong> <%= link_to_project(membership.project) %></strong> <a class="font_lighter"><%= l(:label_create_project) %></a> <%= link_to_project(membership.project) %></td>
</tr>
<tr>
<td colspan="2" width="760" ><p class="font_description"><%= membership.project.description%></p></td>
</tr>
<tr>
<td align="left"><a class="font_lighter"> <%= format_date(membership.created_on) %></a></td>
<td width="200" align="right" class="a"><%= link_to"查看其他评论",news_path(news)%><%= "(#{l(:label_x_comments, :count => news.comments_count)})" if news.comments_count > 0 %></td>
</tr>
</table></td>
</tr>
</table></li>
<% end %>
</ul>
<div class=more>
<%= link_to"更多",:controller=>'projects',:action=>'index'%>
</div>
<% else %>
暂无项目,赶快去<%= link_to"新建",:controller=>'projects',:action=>'new'%>吧
<% end %>
<%= call_hook :view_account_left_bottom, :user => @user %>
***************************
<!--最新反馈-->
<div>
<div style="padding:30px 0px 0px 0px">
<table>
<tr>
<td><h3><strong><%= link_to l(:label_user_newfeedback), home_path %></strong></h3>start a...</td>
</tr>
</table>
</div>
<div style="margin:1;padding:1;width:820px;height:1px;background-color:#dbdbdb;overflow:hidden"></div>
<ul class="context_projects">
<li>
<table width="820">
<tr>
<td align="center" valign="middle"><img src="/images/user_images/user2.png" width="40" height="40"/></td><td>
<div class="firstname_project">
<strong><%= link_to "huang",home_path%></strong>对我评价了:&nbsp;
</div></td><td>
<div class="tablecontext_single">
新建问题的时候存在一个bug需要解决卡涵盖的垃圾卡拉格德国的萨嘎...
</div></td><td width="200" align="right" valign="middle">&nbsp;<img src="/images/user_images/share.png"/></td>
</tr>
</table>
</li>
</ul>
</div>
<div class=more>
<%= link_to"更多",:contoller=>'project',:action=>'index'%>
</div>
<!--活动区-->
<div>
<div style="padding:30px 0px 0px 0px">
<h3><strong><%= link_to l(:label_activity), :controller => 'activities',
:action => 'index', :id => nil, :user_id => @user,
:from => @events_by_day.keys.first %></strong></h3>
</div>
<div style="margin:1;padding:1;width:820px;height:1px;background-color:#e8ecf0;overflow:hidden"></div>
<!--已报告问题-->
<div id="activity">
<% @events_by_day.keys.sort.reverse.each do |day| %>
<!-- <h4><%= format_activity_day(day) %></h4> -->
<ul class="context_projects">
<% @events_by_day[day].sort {|x,y| y.event_datetime <=> x.event_datetime }.each do |e| -%>
<li>
<table width="820">
<tr>
<td align="center" valign="middle"><img src="/images/new/mlogo.png" width="40" height="40"/></td>
<td>
<div class="firstname_project">
<%= content_tag('span', h(e.project), :class => 'project') %>
</div></td>
<td>
<div class="tablecontext">
<%= link_to format_activity_title(e.event_title), e.event_url %>
<%= format_activity_description(e.event_description) %>
</td>
<td width="200" align="right" valign="middle"><!--<img src="/images/user_images/in_share.png"/> --><img src="/images/user_images/share.png"/></td>
</tr>
</table>
</li>
<% end -%>
</ul>
<% end -%>
</div>
<!--<% unless @events_by_day.empty? %> -->
<% other_formats_links do |f| %>
<%= f.link_to 'Atom', :url => {:controller => 'activities', :action => 'index', :id => nil, :user_id => @user, :key => User.current.rss_key} %>
<% end %>
<% content_for :header_tags do %>
<%= auto_discovery_link_tag(:atom, :controller => 'activities', :action => 'index', :user_id => @user, :format => :atom, :key => User.current.rss_key) %>
<% end %>
<% end %>
<%= call_hook :view_account_right_bottom, :user => @user %>
</div>
</div>
<% html_title @user.name %>