2013-08-04 14:23:12 +08:00
|
|
|
<!--add by huang-->
|
2013-10-30 22:04:47 +08:00
|
|
|
<p>温馨提示:项目可以是一次作业,也可以是别人或者自己创建的一项小工程~</p>
|
2013-11-08 20:54:45 +08:00
|
|
|
<div class="content-title-top">
|
2013-10-13 15:26:41 +08:00
|
|
|
<% if @user == User.current %>
|
2013-10-28 20:09:15 +08:00
|
|
|
<%= link_to(l(:label_project_new), {:controller => 'projects', :action => 'new', :course => 0, :project_type => @project_type}, :class => 'icon icon-add') if User.current.allowed_to?(:add_project, nil, :global => true) %>
|
2013-10-13 15:26:41 +08:00
|
|
|
<% end %>
|
2013-11-08 20:54:45 +08:00
|
|
|
</div>
|
2013-10-28 20:09:15 +08:00
|
|
|
<p><%= watch_projects @state%>
|
|
|
|
<% unless @memberships.empty? %>
|
2013-10-24 10:13:00 +08:00
|
|
|
<div class="content_frame">
|
2013-08-01 10:33:49 +08:00
|
|
|
<ul class="user_project_sort">
|
|
|
|
<% for membership in @memberships %>
|
2013-08-12 16:17:03 +08:00
|
|
|
<li>
|
2013-08-30 09:34:21 +08:00
|
|
|
<table width="660" border="0" align="center" style="border-bottom: 1px dashed rgb(204, 204, 204); margin-bottom: 10px;font-size:14px;">
|
2013-08-01 10:33:49 +08:00
|
|
|
<tr>
|
2013-11-01 15:48:23 +08:00
|
|
|
<td colspan="2" valign="top" width="50" ><%= 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-10-24 10:13:00 +08:00
|
|
|
<span class="font_lighter"> <%= l(:label_peoject_take_in) %></span> <%= 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>
|
2013-09-12 10:41:15 +08:00
|
|
|
<td align="left"><span class="font_lighter"> <%= format_time(membership.created_on) %></span></td><!-- modified by ming -->
|
|
|
|
<td align="right" ><%= h membership.roles.sort.collect(&:to_s).join(', ') %> </td>
|
2013-08-01 10:33:49 +08:00
|
|
|
</tr>
|
|
|
|
</table></td>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
</table>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<% end %>
|
|
|
|
</ul>
|
|
|
|
<% else %>
|
2013-08-08 09:38:54 +08:00
|
|
|
<% if @user != User.current %>
|
2013-08-15 10:13:47 +08:00
|
|
|
<p class="font_description"><%= l(:label_project_un) %></p>
|
|
|
|
<% else %>
|
2013-11-06 17:00:14 +08:00
|
|
|
<p class="font_description"><%= l(:label_project_unadd) %></p>
|
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>
|