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:
@@ -56,4 +56,13 @@ json.setting do
|
||||
end
|
||||
|
||||
json.common @common
|
||||
|
||||
if @top_system_notification.present?
|
||||
json.system_notification do
|
||||
json.(@top_system_notification, :subject, :sub_subject, :content)
|
||||
json.is_read @top_system_notification.read_member?(current_user.id)
|
||||
end
|
||||
else
|
||||
json.system_notification nil
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user