温馨提示:项目可以是一次作业,也可以是别人或者自己创建的一项小工程~
<% if @user == User.current %> <%= 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) %> <% end %><%= watch_projects @state%> <% unless @memberships.empty? %>
<%= image_tag(url_to_avatar(membership.project), :class => 'avatar') %> |
|
<%= l(:label_project_un) %>
<% else %><%= l(:label_project_unadd) %>
<% end %> <% end %> <%= call_hook :view_account_left_bottom, :user => @user %>