mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-08 06:01:43 +08:00
setting add site_page_deploy_domain
This commit is contained in:
@@ -2,6 +2,7 @@ class SettingsController < ApplicationController
|
||||
def show
|
||||
@old_projects_url = nil
|
||||
get_navbar
|
||||
site_page_deploy_domain
|
||||
get_add_menu
|
||||
get_common_menu
|
||||
get_sub_competitions
|
||||
@@ -34,6 +35,10 @@ class SettingsController < ApplicationController
|
||||
# end
|
||||
end
|
||||
|
||||
def site_page_deploy_domain
|
||||
@deploy_domain = EduSetting.find_by_name("site_page_deploy_domain").try(:value)
|
||||
end
|
||||
|
||||
def get_add_menu
|
||||
@add = []
|
||||
Site.add.select(:id, :name, :url, :key).to_a.map(&:serializable_hash).each do |site|
|
||||
|
||||
@@ -32,6 +32,7 @@ json.setting do
|
||||
json.nav_logo_url default_setting.nav_logo_url&.[](1..-1)
|
||||
json.login_logo_url default_setting.login_logo_url&.[](1..-1)
|
||||
json.tab_logo_url default_setting.tab_logo_url&.[](1..-1)
|
||||
json.site_page_deploy_domain @deploy_domain
|
||||
|
||||
json.subject_banner_url default_setting.subject_banner_url&.[](1..-1)
|
||||
json.course_banner_url default_setting.course_banner_url&.[](1..-1)
|
||||
|
||||
Reference in New Issue
Block a user