From 4b9bad0dc5a9c818c6ad2aac88eff98e51ff397c Mon Sep 17 00:00:00 2001 From: alan <547533434@qq.com> Date: Fri, 9 Jan 2015 10:57:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E3=80=8A=E8=8B=A5=E6=9C=89?= =?UTF-8?q?=E6=9F=90=E5=85=AC=E5=BC=80=E8=AF=BE=E7=A8=8BcourseA=EF=BC=8C?= =?UTF-8?q?=E5=9C=A8=E8=AF=BE=E7=A8=8B=E4=B8=BB=E9=A1=B5=E4=B8=AD=E6=90=9C?= =?UTF-8?q?=E7=B4=A2courseA=E8=B7=B3=E8=BD=AC=E5=88=B0=E6=90=9C=E7=B4=A2?= =?UTF-8?q?=E7=BB=93=E6=9E=9C=E7=95=8C=E9=9D=A2=EF=BC=8C=E7=9B=B8=E5=85=B3?= =?UTF-8?q?=E9=93=BE=E6=8E=A5=E6=B2=A1=E6=9C=89=E5=AF=B9=E9=BD=90=E3=80=8B?= =?UTF-8?q?bug=20Signed-off-by:=20alan=20<547533434@qq.com>?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/contests/index.html.erb | 2 +- app/views/courses/search.html.erb | 2 +- app/views/projects/search.html.erb | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/views/contests/index.html.erb b/app/views/contests/index.html.erb index 75b892461..170f11037 100644 --- a/app/views/contests/index.html.erb +++ b/app/views/contests/index.html.erb @@ -10,7 +10,7 @@ <%= l(:label_user_location) %> : - + <% if User.current.logged? %> <% unless User.current.user_extensions.identity == 1 %> <%= link_to(l(:label_newtype_contest), new_contest_contests_path, :class => 'icon icon-add', :target => "_blank") %> diff --git a/app/views/courses/search.html.erb b/app/views/courses/search.html.erb index e2c701932..661feb3c9 100644 --- a/app/views/courses/search.html.erb +++ b/app/views/courses/search.html.erb @@ -13,7 +13,7 @@ <%= l(:label_user_location) %> : - + <% if User.current.logged?%> <% if User.current.user_extensions.identity == 0 %> <%= link_to(l(:label_course_new), {:controller => 'courses', :action => 'new'}, :class => 'icon icon-add') if User.current.allowed_to?(:add_course, nil, :global => true) %> diff --git a/app/views/projects/search.html.erb b/app/views/projects/search.html.erb index 8e810b087..7a91082ca 100644 --- a/app/views/projects/search.html.erb +++ b/app/views/projects/search.html.erb @@ -10,7 +10,7 @@ <%= l(:label_course_practice) %> <%= l(:label_user_location) %> : - + <% if User.current.logged?%> <% if User.current.user_extensions.identity == 0 %> <%= link_to(l(:label_course_new), {:controller => 'projects', :action => 'new', :course => 1, :project_type => @project_type}, :class => 'icon icon-add') if User.current.allowed_to?(:add_project, nil, :global => true) %> @@ -35,7 +35,7 @@ <%= l(:label_project_deposit) %> <%= l(:label_user_location) %> : - + <% if User.current.logged? %> <%= 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 %>