Sha256: e01aa244cfc296d806e1a2068e36b67790a191c895fae3498327d4a0374b55c1

Contents?: true

Size: 925 Bytes

Versions: 283

Compression:

Stored size: 925 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

283 entries across 144 versions & 13 rubygems

Version Path
lalala-4.0.0.dev.229 test/dummy/app/admin/dashboard.rb
lalala-4.0.0.dev.227 lib/generators/lalala/install/templates/dashboard.rb
lalala-4.0.0.dev.227 test/dummy/app/admin/dashboard.rb
lalala-4.0.0.dev.224 test/dummy/app/admin/dashboard.rb
lalala-4.0.0.dev.224 lib/generators/lalala/install/templates/dashboard.rb
lalala-4.0.0.dev.219 lib/generators/lalala/install/templates/dashboard.rb
lalala-4.0.0.dev.219 test/dummy/app/admin/dashboard.rb
lalala-4.0.0.dev.218 test/dummy/app/admin/dashboard.rb
lalala-4.0.0.dev.218 lib/generators/lalala/install/templates/dashboard.rb
yousty-activeadmin-1.0.0.pre lib/generators/active_admin/install/templates/dashboard.rb
lalala-4.0.0.dev.217 test/dummy/app/admin/dashboard.rb
lalala-4.0.0.dev.217 lib/generators/lalala/install/templates/dashboard.rb
active_admin-state_machine-0.1.0 spec/dummy/app/admin/dashboard.rb
lalala-4.0.0.dev.216 test/dummy/app/admin/dashboard.rb
lalala-4.0.0.dev.216 lib/generators/lalala/install/templates/dashboard.rb
activeadmin-0.6.2 lib/generators/active_admin/install/templates/dashboard.rb
lalala-4.0.0.dev.215 lib/generators/lalala/install/templates/dashboard.rb
lalala-4.0.0.dev.215 test/dummy/app/admin/dashboard.rb
lalala-4.0.0.dev.212 lib/generators/lalala/install/templates/dashboard.rb
lalala-4.0.0.dev.212 test/dummy/app/admin/dashboard.rb