add: setting of system notification

This commit is contained in:
2021-10-12 16:34:00 +08:00
parent d176508010
commit 490ce7a234
4 changed files with 29 additions and 7 deletions

View File

@@ -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