|
|
@ -3,7 +3,6 @@ class ShixunsController < ApplicationController
|
|
|
|
include ApplicationHelper
|
|
|
|
include ApplicationHelper
|
|
|
|
include ElasticsearchAble
|
|
|
|
include ElasticsearchAble
|
|
|
|
include CoursesHelper
|
|
|
|
include CoursesHelper
|
|
|
|
include JupyterService
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
before_action :require_login, :check_auth, except: [:download_file, :index, :menus, :show, :show_right, :ranking_list,
|
|
|
|
before_action :require_login, :check_auth, except: [:download_file, :index, :menus, :show, :show_right, :ranking_list,
|
|
|
|
:discusses, :collaborators, :fork_list, :propaedeutics]
|
|
|
|
:discusses, :collaborators, :fork_list, :propaedeutics]
|
|
|
@ -25,10 +24,6 @@ class ShixunsController < ApplicationController
|
|
|
|
|
|
|
|
|
|
|
|
before_action :special_allowed, only: [:send_to_course, :search_user_courses]
|
|
|
|
before_action :special_allowed, only: [:send_to_course, :search_user_courses]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
helper_method :jupyter_url_with_shixun, :jupyter_port_with_shixun
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## 获取课程列表
|
|
|
|
## 获取课程列表
|
|
|
|
def index
|
|
|
|
def index
|
|
|
|
@shixuns = current_laboratory.shixuns.unhidden
|
|
|
|
@shixuns = current_laboratory.shixuns.unhidden
|
|
|
|