2013-08-04 14:23:12 +08:00
|
|
|
<!--add by huang-->
|
2013-08-01 10:33:49 +08:00
|
|
|
<div class="content_frame">
|
|
|
|
<% unless @memberships.empty? %>
|
|
|
|
<ul class="user_project_sort">
|
|
|
|
<% for membership in @memberships %>
|
2013-08-12 16:17:03 +08:00
|
|
|
<li>
|
|
|
|
<table width="660" border="0" align="center" style="border-bottom: 1px dashed rgb(204, 204, 204); margin-bottom: 10px;">
|
2013-08-01 10:33:49 +08:00
|
|
|
<tr>
|
2013-08-07 11:29:00 +08:00
|
|
|
<td colspan="2" valign="top" width="50" ><%= link_to image_tag(url_to_avatar(membership.project), :class => 'avatar') %></td>
|
2013-08-01 10:33:49 +08:00
|
|
|
<td>
|
|
|
|
<table width="580" border="0">
|
|
|
|
<tr>
|
2013-08-08 22:19:15 +08:00
|
|
|
<td colspan="2" valign="top"><strong> <%= link_to_user(membership.user) if membership.respond_to?(:user) %></strong>
|
2013-08-10 16:09:07 +08:00
|
|
|
<a class="font_lighter"> <%= l(:label_create_project) %></a> <%= link_to_project(membership.project) %></td>
|
2013-08-01 10:33:49 +08:00
|
|
|
</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 %>
|
2013-08-08 09:38:54 +08:00
|
|
|
<% if @user != User.current %>
|
|
|
|
<%= l(:label_project_un) %>
|
2013-08-13 10:45:01 +08:00
|
|
|
<% else %><%= l(:label_project_unadd) %><%= link_to"#{l(:label_new)}",:controller=>'projects',:action=>'new'%>
|
2013-08-08 09:38:54 +08:00
|
|
|
<% end %>
|
2013-08-11 21:09:12 +08:00
|
|
|
|
2013-08-01 10:33:49 +08:00
|
|
|
<% end %>
|
2013-08-11 21:09:12 +08:00
|
|
|
<%= call_hook :view_account_left_bottom, :user => @user %>
|
|
|
|
</div>
|