remove admin dashboard
This commit is contained in:
@@ -1,27 +1,7 @@
|
||||
ActiveAdmin.register_page "Dashboard" do
|
||||
menu priority: 1, label: proc { I18n.t("active_admin.dashboard") }
|
||||
menu false
|
||||
|
||||
content title: proc { I18n.t("active_admin.dashboard") } do
|
||||
columns do
|
||||
column do
|
||||
panel "Softwares" do
|
||||
ul do
|
||||
li "Total: #{Software.count}"
|
||||
li "Released: #{Software.where(status: 'released').count}"
|
||||
li "In development: #{Software.where(status: 'development').count}"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
column do
|
||||
panel "Recent Releases" do
|
||||
table_for Release.order(created_at: :desc).limit(10) do
|
||||
column(:software) { |r| link_to r.software.title, admin_software_path(r.software) rescue r.software_id }
|
||||
column :version
|
||||
column :created_at
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
content do
|
||||
redirect_to admin_software_index_path
|
||||
end
|
||||
end
|
||||
|
||||
@@ -6,6 +6,7 @@ ActiveAdmin.setup do |config|
|
||||
config.logout_link_path = :destroy_admin_user_session_path
|
||||
config.logout_link_method = :delete
|
||||
|
||||
config.root_to = "software#index"
|
||||
config.comments = false
|
||||
config.batch_actions = true
|
||||
config.filter_attributes = [:password, :password_confirmation, :current_password, :encrypted_password]
|
||||
|
||||
Reference in New Issue
Block a user