mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 03:40:49 +08:00
add: setting of system notification
This commit is contained in:
@@ -4,7 +4,7 @@ class SettingsController < ApplicationController
|
||||
get_add_menu
|
||||
get_common_menu
|
||||
get_personal_menu
|
||||
|
||||
get_top_system_notification
|
||||
end
|
||||
|
||||
private
|
||||
@@ -40,6 +40,10 @@ class SettingsController < ApplicationController
|
||||
end
|
||||
end
|
||||
|
||||
def get_top_system_notification
|
||||
@top_system_notification = SystemNotification.is_top.first
|
||||
end
|
||||
|
||||
def get_site_url(key, value)
|
||||
key.to_s === "url" ? append_http(reset_site_url(value)) : reset_site_url(value)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user