From e6b786edc0431d6e90f2666a223bb9b03830ca7d Mon Sep 17 00:00:00 2001 From: huang Date: Tue, 2 Apr 2019 17:46:51 +0800 Subject: [PATCH] .. --- app/views/challenges/_challenges_left_nav.html.erb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/views/challenges/_challenges_left_nav.html.erb b/app/views/challenges/_challenges_left_nav.html.erb index 3111266d..caba1cbe 100644 --- a/app/views/challenges/_challenges_left_nav.html.erb +++ b/app/views/challenges/_challenges_left_nav.html.erb @@ -1,8 +1,6 @@
fl mr40">任务 - <% if @shixun.try(:propaedeutics).present? %> - fl mr40">背景知识 - <% end %> + <% if User.current.manager_of_shixun?(@shixun) %> <%= link_to l(:project_module_repository), ({:controller => 'repositories',