%= 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) && @user == User.current)%>
温馨提示:项目可以是一次作业,也可以是别人或者自己创建的一项小工程~
<%= watch_projects @state%>
<% if @watch_projects.count > 0 %>
<% 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) %> <%= link_to_project(watch_project.project) %> |
<%= watch_project.project.description%>
|
<%= format_time(watch_project.created_on) %> |
|
<% end %>
<% else %>
<%= l(:label_watch_no_projects)%>
<% end %>