28 lines
686 B
Ruby
28 lines
686 B
Ruby
ActiveAdmin.register_page 'Dashboard' do
|
|
menu priority: 1, label: proc{ I18n.t('active_admin.dashboard') }
|
|
|
|
content title: proc{ I18n.t('active_admin.dashboard') } do
|
|
columns do
|
|
column do
|
|
panel 'Moderateurs' do
|
|
ul do
|
|
User.all.map do |user|
|
|
li link_to("#{user.firstname} #{user.lastname} (#{user.login})", user)
|
|
end
|
|
end
|
|
end
|
|
end
|
|
|
|
column do
|
|
panel 'Commentaires' do
|
|
ul do
|
|
ActiveAdmin::Comment.all.map do |comment|
|
|
li link_to(comment.author.email, admin_comment_path(comment))
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|