Sha256: 2aabb4a4b92d774b7935acca84537edd0149efa3a92dd288089c1225bfa43fa1

Contents?: true

Size: 908 Bytes

Versions: 24

Compression:

Stored size: 908 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
    div class: "blank_slate_container", id: "dashboard_default_message" do
      span class: "blank_slate" do
        span I18n.t("active_admin.dashboard_welcome.welcome")
        small I18n.t("active_admin.dashboard_welcome.call_to_action")
      end
    end

    # Here is an example of a simple dashboard with columns and panels.
    #
    # columns do
    #   column do
    #     panel "Recent Posts" do
    #       ul do
    #         Post.recent(5).map do |post|
    #           li link_to(post.title, admin_post_path(post))
    #         end
    #       end
    #     end
    #   end

    #   column do
    #     panel "Info" do
    #       para "Welcome to ActiveAdmin."
    #     end
    #   end
    # end
  end # content
end

Version data entries

24 entries across 24 versions & 5 rubygems

Version Path
introspective_admin-0.9.0 spec/dummy/app/admin/dashboard.rb
date_n_time_picker_activeadmin-0.1.2 vendor/bundle/ruby/2.6.0/gems/activeadmin-2.9.0/lib/generators/active_admin/install/templates/dashboard.rb
date_n_time_picker_activeadmin-0.1.1 vendor/bundle/ruby/2.6.0/gems/activeadmin-2.9.0/lib/generators/active_admin/install/templates/dashboard.rb
admin_invitable-1.0.0 spec/dummy/app/admin/dashboard.rb
activeadmin_blaze_theme-0.7.4 spec/dummy/app/admin/dashboard.rb
activeadmin_blaze_theme-0.7.0 spec/dummy/app/admin/dashboard.rb
activeadmin_blaze_theme-0.6.2 spec/dummy/app/admin/dashboard.rb
activeadmin-2.9.0 lib/generators/active_admin/install/templates/dashboard.rb
activeadmin_blaze_theme-0.6.0 spec/dummy/app/admin/dashboard.rb
activeadmin_blaze_theme-0.5.16 spec/dummy/app/admin/dashboard.rb
activeadmin-2.8.1 lib/generators/active_admin/install/templates/dashboard.rb
activeadmin-2.8.0 lib/generators/active_admin/install/templates/dashboard.rb
activeadmin-2.7.0 lib/generators/active_admin/install/templates/dashboard.rb
activeadmin-2.6.1 lib/generators/active_admin/install/templates/dashboard.rb
activeadmin-2.6.0 lib/generators/active_admin/install/templates/dashboard.rb
activeadmin-2.5.0 lib/generators/active_admin/install/templates/dashboard.rb
activeadmin-2.4.0 lib/generators/active_admin/install/templates/dashboard.rb
activeadmin-2.3.1 lib/generators/active_admin/install/templates/dashboard.rb
activeadmin-2.3.0 lib/generators/active_admin/install/templates/dashboard.rb
activeadmin-2.2.0 lib/generators/active_admin/install/templates/dashboard.rb