Sha256: c523c1c8fa0d055a6ef476b1f0ad3d5b6ffdca8ad1bd174fbac05a5e9f6a0d62

Contents?: true

Size: 1.36 KB

Versions: 14

Compression:

Stored size: 1.36 KB

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 "Users" do
          render partial: "admin/chart", locals: { scope: 'users' }
        end
      end
    end

    columns do
      column do
        panel "Twitter" do
          render partial: "admin/chart", locals: { scope: 'instagram_users' }
        end
      end
      column do
        panel "Instagram" do
          render partial: "admin/chart", locals: { scope: 'twitter_users' }
        end
      end
    end
  end
    # 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

14 entries across 14 versions & 1 rubygems

Version Path
happy_seed-0.0.21 lib/generators/happy_seed/admin/templates/app/admin/dashboard.rb
happy_seed-0.0.19 lib/generators/happy_seed/admin/templates/app/admin/dashboard.rb
happy_seed-0.0.18 lib/generators/happy_seed/admin/templates/app/admin/dashboard.rb
happy_seed-0.0.17 lib/generators/happy_seed/admin/templates/app/admin/dashboard.rb
happy_seed-0.0.16 lib/generators/happy_seed/admin/templates/app/admin/dashboard.rb
happy_seed-0.0.15 lib/generators/happy_seed/admin/templates/app/admin/dashboard.rb
happy_seed-0.0.14 lib/generators/happy_seed/admin/templates/app/admin/dashboard.rb
happy_seed-0.0.13 lib/generators/happy_seed/admin/templates/app/admin/dashboard.rb
happy_seed-0.0.12 lib/generators/happy_seed/admin/templates/app/admin/dashboard.rb
happy_seed-0.0.11 lib/generators/happy_seed/admin/templates/app/admin/dashboard.rb
happy_seed-0.0.10 lib/generators/happy_seed/admin/templates/app/admin/dashboard.rb
happy_seed-0.0.9 lib/generators/happy_seed/admin/templates/app/admin/dashboard.rb
happy_seed-0.0.8 lib/generators/happy_seed/admin/templates/app/admin/dashboard.rb
happy_seed-0.0.7 lib/generators/happy_seed/admin/templates/app/admin/dashboard.rb