mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-16 17:55:56 +08:00
更改:后台管理模块文案
This commit is contained in:
@@ -25,7 +25,7 @@ class Admins::SystemNotificationsController < Admins::BaseController
|
||||
@notification = SystemNotification.new(notification_params)
|
||||
if @notification.save
|
||||
redirect_to admins_system_notifications_path
|
||||
flash[:success] = '系统消息创建成功'
|
||||
flash[:success] = '系统公告创建成功'
|
||||
else
|
||||
redirect_to admins_system_notifications_path
|
||||
flash[:danger] = @notification.errors.full_messages.join(",")
|
||||
@@ -37,7 +37,7 @@ class Admins::SystemNotificationsController < Admins::BaseController
|
||||
if @notification.update_attributes(notification_params)
|
||||
format.html do
|
||||
redirect_to admins_system_notifications_path
|
||||
flash[:success] = '系统消息更新成功'
|
||||
flash[:success] = '系统公告更新成功'
|
||||
end
|
||||
format.js {render_ok}
|
||||
else
|
||||
@@ -53,10 +53,10 @@ class Admins::SystemNotificationsController < Admins::BaseController
|
||||
def destroy
|
||||
if @notification.destroy
|
||||
redirect_to admins_system_notifications_path
|
||||
flash[:success] = "系统消息删除成功"
|
||||
flash[:success] = "系统公告删除成功"
|
||||
else
|
||||
redirect_to admins_system_notifications_path
|
||||
flash[:danger] = "系统消息删除失败"
|
||||
flash[:danger] = "系统公告删除失败"
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user