Sha256: 9148d508e9708354c75fc8a71f1f7d37d6cab2e1b36457dbc4d11f02634f7514

Contents?: true

Size: 991 Bytes

Versions: 79

Compression:

Stored size: 991 Bytes

Contents

ActiveAdmin.register_page "Dashboard" do

  menu :priority => 1,
    :label => proc{ I18n.t("active_admin.dashboard") },
    :html_options => { class: 'icon-application_view_tile' }

  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

79 entries across 79 versions & 1 rubygems

Version Path
lalala-4.1.0.dev.425 lib/generators/lalala/install/templates/dashboard.rb
lalala-4.1.0.dev.420 lib/generators/lalala/install/templates/dashboard.rb
lalala-4.1.0.dev.419 lib/generators/lalala/install/templates/dashboard.rb
lalala-4.1.0.dev.418 lib/generators/lalala/install/templates/dashboard.rb
lalala-4.1.0.dev.417 lib/generators/lalala/install/templates/dashboard.rb
lalala-4.0.0.dev.416 lib/generators/lalala/install/templates/dashboard.rb
lalala-4.1.0.dev.415 lib/generators/lalala/install/templates/dashboard.rb
lalala-4.1.0.dev.414 lib/generators/lalala/install/templates/dashboard.rb
lalala-4.1.0.dev.413 lib/generators/lalala/install/templates/dashboard.rb
lalala-4.1.0.dev.412 lib/generators/lalala/install/templates/dashboard.rb
lalala-4.1.0.dev.411 lib/generators/lalala/install/templates/dashboard.rb
lalala-4.1.0.dev.410 lib/generators/lalala/install/templates/dashboard.rb
lalala-4.1.0.dev.409 lib/generators/lalala/install/templates/dashboard.rb
lalala-4.0.0.dev.407 lib/generators/lalala/install/templates/dashboard.rb
lalala-4.1.0.dev.408 lib/generators/lalala/install/templates/dashboard.rb
lalala-4.1.0.dev.398 lib/generators/lalala/install/templates/dashboard.rb
lalala-4.1.0.dev.397 lib/generators/lalala/install/templates/dashboard.rb
lalala-4.0.0.dev.396 lib/generators/lalala/install/templates/dashboard.rb
lalala-4.0.0.dev.395 lib/generators/lalala/install/templates/dashboard.rb
lalala-4.1.0.dev.394 lib/generators/lalala/install/templates/dashboard.rb