songtianlun
ce5d09b621
- Add menu labels and parents for AdminUser, City, Country, Region, WeatherArt, Ahoy::Event, and Ahoy::Visit. - Introduce a new page for managing Sidekiq jobs, providing functionality to execute or delete scheduled jobs. - Adjust batch job for generating weather art by using Sidekiq for improved performance. - Implement clean-up worker for old Ahoy data and functionalities for refreshing the sitemap. These changes enhance the administration interface by providing better organization and management tools for backend entities. The addition of Sidekiq jobs management further improves system maintenance capabilities.
33 lines
834 B
Ruby
33 lines
834 B
Ruby
ActiveAdmin.register Ahoy::Event do
|
|
menu label: "事件统计", parent: "数据统计"
|
|
# See permitted parameters documentation:
|
|
# https://github.com/activeadmin/activeadmin/blob/master/docs/2-resource-customization.md#setting-up-strong-parameters
|
|
#
|
|
# Uncomment all parameters which should be permitted for assignment
|
|
#
|
|
# permit_params :visit_id, :user_id, :name, :properties, :time
|
|
#
|
|
# or
|
|
#
|
|
# permit_params do
|
|
# permitted = [:visit_id, :user_id, :name, :properties, :time]
|
|
# permitted << :other if params[:action] == 'create' && current_user.admin?
|
|
# permitted
|
|
# end
|
|
# menu priority: 101, label: "事件统计"
|
|
|
|
actions :index
|
|
|
|
index do
|
|
column :id
|
|
column :name
|
|
column :time
|
|
column :properties
|
|
column :user_id
|
|
end
|
|
|
|
filter :name
|
|
filter :time
|
|
filter :properties
|
|
end
|