mirror of
http://ghproxy.cn/https://github.com/multunus/onemdm-server
synced 2025-12-06 10:14:59 +00:00
Display status in admin console, Change the filters to include relevant fields, scopes for device status
This commit is contained in:
@@ -17,10 +17,22 @@ ActiveAdmin.register Device do
|
||||
index do
|
||||
selectable_column
|
||||
id_column
|
||||
column "Status" do | device |
|
||||
status = device.status
|
||||
status_tag status.titleize, STATUS_CLASSES[status.to_sym]
|
||||
end
|
||||
column "Model Name",:model
|
||||
column :created_at
|
||||
column :updated_at
|
||||
column :last_heartbeat_recd_time
|
||||
actions
|
||||
end
|
||||
filter :model
|
||||
filter :created_at
|
||||
filter :updated_at
|
||||
filter :last_heartbeat_recd_time
|
||||
|
||||
scope :active
|
||||
scope :missing
|
||||
scope :dead
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user