添加项目关注列表

This commit is contained in:
huang 2015-04-08 11:48:29 +08:00
parent d832514a55
commit be07c2c961
1 changed files with 22 additions and 31 deletions

View File

@ -1,36 +1,27 @@
<!--add by huang-->
<div class="project_r_h"> <div class="project_r_h">
<h2 class="project_h2"><%= l(:label_user_watcher)%></h2> <h2 class="project_h2"><%= l(:label_user_watcher)%></h2>
</div> </div>
<div class="inf_user_image"> <div class="st_list">
<% for user in @project.watcher_users %> <!-- @project.watcher_users.count --> <div class="st_box">
<ul class="list_watch"> <a href="#" class="fr fb mb5" >加入时间</a>
<li> <div class="cl"></div><!--st_box_top end-->
<table width="660px" border="0" align="center">
<tr> <% for user in @project.watcher_users %>
<td colspan="2" valign="top" width="50" ><%= image_tag(url_to_avatar(user), :class => "avatar") %></td> <div class="st_boxlist">
<td><table width="580px" border="0"> <a href="javascript:" class="st_img">
<tr> <%= user.nil? ? '' : (image_tag(url_to_avatar(user), :width => 32, :height => 32)) %>
<td colspan="2" width="580px" ><p><%= content_tag "div", link_to_user(user), :class =>"project_avatar_name" %></p> </a>
</td> <span class="fl ml10 c_grey"><%= l(:label_username)%></span>
</tr> <%= link_to_user(user) %>
<tr>
<td colspan="2" width="580px" ><p class="font_description"> <span class="fr c_grey"><%= format_date(user.created_on) %></span>
<% unless user.memberships.empty? %> </div>
<%= l(:label_contribute_to, :count => user.memberships.count) %> <div class="cl"></div>
<% for member in user.memberships %> <% end%>
<%= link_to_project(member.project) %><%= (user.memberships.last == member) ? '' : '' %>
<% end %>
<% end %> <div class="cl"></div>
</p></td> </div>
</tr>
<tr>
<td width="200" align="right" class="font_lighter"><%= l(:label_user_joinin) %>&nbsp;<%= format_date(user.created_on) %>
</td>
</tr>
</table></td>
</tr>
</table></li></ul>
<% end %>
</div> </div>
<% html_title(l(:label_followers)) -%> <% html_title(l(:label_followers)) -%>