40 lines
1.3 KiB
Plaintext
40 lines
1.3 KiB
Plaintext
<!--add by huang-->
|
|
<div class="content_frame">
|
|
<% unless @memberships.empty? %>
|
|
<ul class="user_project_sort">
|
|
<% for membership in @memberships %>
|
|
<li class="line_under">
|
|
<table width="660" border="0" align="center">
|
|
<tr>
|
|
<td colspan="2" valign="top" width="50" ><%= link_to image_tag(url_to_avatar(membership.project), :class => 'avatar') %></td>
|
|
<td>
|
|
<table width="580" border="0">
|
|
<tr>
|
|
<td colspan="2" valign="top"><strong> <%= link_to_user(membership.user) if membership.respond_to?(:user) %></strong>
|
|
<a class="font_lighter"> 创建了</a> <%= link_to_project(membership.project) %></td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="2" width="580" >
|
|
<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 align="right" class="a"><%= h membership.roles.sort.collect(&:to_s).join(', ') %> </td>
|
|
</tr>
|
|
</table></td>
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</li>
|
|
<% end %>
|
|
</ul>
|
|
<% else %>
|
|
<% if @user != User.current %>
|
|
<%= l(:label_project_un) %>
|
|
<% else %><%= l(:label_project_unadd) %><%= link_to"新建",:controller=>'projects',:action=>'new'%>
|
|
<% end %>
|
|
<% end %>
|
|
<%= call_hook :view_account_left_bottom, :user => @user %></div> |