正式版的网站定制错误的修复
This commit is contained in:
parent
7e09da8d99
commit
3cea3bae55
|
@ -32,12 +32,13 @@ module LaboratoryHelper
|
|||
end
|
||||
|
||||
def default_course_links
|
||||
# my_projects: "/users/#{current_user.try(:login)}/projects",
|
||||
{
|
||||
new_syllabuses: "https://www.trustie.net/syllabuses/new",
|
||||
new_course: "https://www.trustie.net/courses/new",
|
||||
edit_account: "https://www.trustie.net/my/account",
|
||||
my_courses: "https://www.trustie.net/users/#{current_user.try(:login)}/user_courselist",
|
||||
my_projects: "/users/#{current_user.try(:login)}/projects",
|
||||
my_projects: "https://www.trustie.net/users/#{current_user.try(:login)}/user_projectlist",
|
||||
my_organ: "https://www.trustie.net/users/#{current_user.try(:login)}/user_organizations",
|
||||
default_url: "https://www.trustie.net/",
|
||||
tiding_url: "https://www.trustie.net/users/#{current_user.try(:login)}/user_messages",
|
||||
|
|
|
@ -15,7 +15,11 @@ class Admins::SaveLaboratorySettingService < ApplicationService
|
|||
laboratory_setting.footer = strip params[:footer]
|
||||
|
||||
laboratory.save!
|
||||
laboratory_setting.save!
|
||||
Rails.logger.info("####_____name____E####{laboratory_setting.name}")
|
||||
Rails.logger.info("####_____navbar____E####{laboratory_setting.navbar}")
|
||||
Rails.logger.info("####_____footer___E####{laboratory_setting.footer}")
|
||||
|
||||
laboratory_setting.save!(:validate =>false)
|
||||
|
||||
deal_image_file
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue