2013-08-08 22:19:15 +08:00
|
|
|
|
<!--add by huang-->
|
|
|
|
|
<h3><%= l(:label_user_watcher)%></h3>
|
|
|
|
|
<div class="inf_user_image">
|
|
|
|
|
<% for user in User.watched_by(@user.id) %>
|
|
|
|
|
<ul class="list_watch"><li>
|
|
|
|
|
<table width="660px" border="0" align="center">
|
|
|
|
|
<tr>
|
|
|
|
|
<td colspan="2" valign="top" width="50" ><%= link_to image_tag(url_to_avatar(user), :class => "avatar"), user_path(user), :title => "#{user.name}" %></td>
|
|
|
|
|
<td><table width="580px" border="0">
|
|
|
|
|
<tr>
|
2013-08-27 09:26:56 +08:00
|
|
|
|
<td colspan="2" valign="top"><strong><%= content_tag "div", link_to_user(user), :class => "project_avatar_name" %>
|
2013-08-08 22:19:15 +08:00
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td colspan="2" width="580px" ><p class="font_description">
|
|
|
|
|
<% unless user.memberships.empty? %>
|
|
|
|
|
<%= l(:label_contribute_to, :project_count => "#{user.memberships.count}") %>
|
|
|
|
|
<% for member in user.memberships %>
|
|
|
|
|
<%= link_to_project(member.project) %><%= (user.memberships.last == member) ? '' : ',' %>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% end %>
|
|
|
|
|
</p></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
2013-08-22 21:54:52 +08:00
|
|
|
|
<td width="200" align="right" class="font_lighter"><%= l(:label_user_joinin) %><%= format_date(user.created_on) %>
|
2013-08-08 22:19:15 +08:00
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table></td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table></li></ul>
|
|
|
|
|
<% end %>
|
|
|
|
|
</div>
|