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',