<% if @user == User.current %>
<%= link_to(l(:label_project_new), {:controller => 'projects', :action => 'new', :course => 0, :project_type => 0}, :class => 'icon icon-add') if User.current.allowed_to?(:add_project, nil, :global => true) %>
<% end %>
<%= watch_projects @state %>
<% unless @memberships.empty? %>
<% for membership in @memberships %>
-
<%= image_tag(url_to_avatar(membership.project), :class => 'avatar') %> |
<%= link_to_user(membership.user) if membership.respond_to?(:user) %>
<%= l(:label_peoject_take_in) %> <%= link_to_project(membership.project) %> |
<%= membership.project.description%>
|
<%= l(:label_create_time) %> : <%= format_time(membership.created_on) %> |
<%= h membership.roles.sort.collect(&:to_s).join(', ') %> |
|
<% end %>
<% else %>
<% if @user != User.current %>
<%= l(:label_project_un) %>
<% else %>
<%= l(:label_project_unadd) %>
<% end %>
<% end %>
<%= call_hook :view_account_left_bottom, :user => @user %>