Sha256: 3cdb7f5943bed095f5b5b18383a63a07e5d42e6a9239d77dcfb251ed726e5958

Contents?: true

Size: 617 Bytes

Versions: 24

Compression:

Stored size: 617 Bytes

Contents

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 "Recent Signups" do  
          table_for User.order("created_at desc").limit(50) do  
            column :username do |user|  
              link_to user.username, admin_user_path(user)  
            end
            column :email  
            column :created_at
          end  
          strong { link_to "View All Users", admin_users_path }  
        end   
      end

    end

  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
horse_power-0.1.2 lib/generators/horse_power/make_admin/templates/dashboard.rb.erb
horse_power-0.1.1 lib/generators/horse_power/make_admin/templates/dashboard.rb.erb
horse_power-0.1.0 lib/generators/horse_power/make_admin/templates/dashboard.rb.erb
horse_power-0.0.1 lib/generators/horse_power/make_admin/templates/dashboard.rb.erb