From 1c69e80745e684e229fd663f97a98450b843effc Mon Sep 17 00:00:00 2001 From: xianbo Date: Fri, 11 Apr 2014 08:41:15 +0800 Subject: [PATCH] keep same between take project and watch project --- app/views/users/user_projects.html.erb | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/app/views/users/user_projects.html.erb b/app/views/users/user_projects.html.erb index 9d6c7e64e..6b218a97d 100644 --- a/app/views/users/user_projects.html.erb +++ b/app/views/users/user_projects.html.erb @@ -1,10 +1,6 @@ -

温馨提示:这里显示的是您创建或参与的所有项目。

-
-<% 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 %> -
+<%= 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 %> <% unless @memberships.empty? %>