% 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 @watch_projects.nil?&&watch_projects.project.nil? %>
<% for watch_project in @watch_projects %>
<%= image_tag(url_to_avatar(watch_project.project), :class => 'avatar') %> |
<%= link_to_user(@user) if watch_project.respond_to?(:user) %> <%= @user.name%><%= l(:label_watch_project) %> <%= link_to_project(watch_project.project) %> |
<%= watch_project.project.description%>
|
<%= format_time(watch_project.created_on) %> |
|
<% end %>
<% else %>
<%= l(:label_watch_no_projects)%>
<% end %>