|
|
@ -1,7 +1,7 @@
|
|
|
|
# 显示和清理系统日志
|
|
|
|
# 显示和清理系统日志
|
|
|
|
class SystemLogController < ApplicationController
|
|
|
|
class SystemLogController < ApplicationController
|
|
|
|
|
|
|
|
|
|
|
|
before_filter :require_admin
|
|
|
|
before_filter :require_login
|
|
|
|
# 默认每页显示20条记录
|
|
|
|
# 默认每页显示20条记录
|
|
|
|
PER_PAGE = 20
|
|
|
|
PER_PAGE = 20
|
|
|
|
layout "base"
|
|
|
|
layout "base"
|
|
|
@ -14,8 +14,8 @@
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
#清除日志
|
|
|
|
#清除日志
|
|
|
|
def clear day
|
|
|
|
def clear
|
|
|
|
SystemLog.clear day
|
|
|
|
SystemLog.clear params[:day]
|
|
|
|
redirect_to :action => :index
|
|
|
|
redirect_to :action => :index
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|