Sha256: bb71a7e7e4272c570fe1289cf4ab677407382675c997dc0a911e2604ed54a4d4

Contents?: true

Size: 938 Bytes

Versions: 17

Compression:

Stored size: 938 Bytes

Contents

# frozen_string_literal: true
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

17 entries across 17 versions & 1 rubygems

Version Path
activeadmin-3.2.5 lib/generators/active_admin/install/templates/dashboard.rb
activeadmin-3.2.4 lib/generators/active_admin/install/templates/dashboard.rb
activeadmin-3.2.3 lib/generators/active_admin/install/templates/dashboard.rb
activeadmin-3.2.2 lib/generators/active_admin/install/templates/dashboard.rb
activeadmin-3.2.1 lib/generators/active_admin/install/templates/dashboard.rb
activeadmin-3.2.0 lib/generators/active_admin/install/templates/dashboard.rb
activeadmin-3.1.0 lib/generators/active_admin/install/templates/dashboard.rb
activeadmin-3.0.0 lib/generators/active_admin/install/templates/dashboard.rb
activeadmin-2.14.0 lib/generators/active_admin/install/templates/dashboard.rb
activeadmin-2.13.1 lib/generators/active_admin/install/templates/dashboard.rb
activeadmin-2.13.0 lib/generators/active_admin/install/templates/dashboard.rb
activeadmin-2.12.0 lib/generators/active_admin/install/templates/dashboard.rb
activeadmin-2.11.2 lib/generators/active_admin/install/templates/dashboard.rb
activeadmin-2.11.1 lib/generators/active_admin/install/templates/dashboard.rb
activeadmin-2.11.0 lib/generators/active_admin/install/templates/dashboard.rb
activeadmin-2.10.1 lib/generators/active_admin/install/templates/dashboard.rb
activeadmin-2.10.0 lib/generators/active_admin/install/templates/dashboard.rb