settings增加old_projects_url
This commit is contained in:
parent
efec15a649
commit
83eb672cc7
|
@ -78,7 +78,7 @@ class ProjectsController < ApplicationController
|
|||
rescue Exception => e
|
||||
uid_logger_error(e.message)
|
||||
tip_exception(e.message)
|
||||
end
|
||||
end·
|
||||
|
||||
private
|
||||
def project_params
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
class SettingsController < ApplicationController
|
||||
def show
|
||||
|
||||
@old_projects_url = nil
|
||||
@old_projects_url = "https://www.trustie.net/users/#{current_user.try(:login)}/projects" if current_user.present?
|
||||
end
|
||||
end
|
||||
|
|
|
@ -36,6 +36,7 @@ json.setting do
|
|||
|
||||
json.main_site current_laboratory.main_site?
|
||||
json.new_course default_course_links
|
||||
json.old_projects_url @old_projects_url
|
||||
|
||||
|
||||
end
|
Loading…
Reference in New Issue