Sha256: d27d4eb0ac064c9138e3b2b6bd583c3c6688817acc5f074098095a478b99e5da

Contents?: true

Size: 605 Bytes

Versions: 12

Compression:

Stored size: 605 Bytes

Contents

require 'active_admin/views/components/popover'

module ActiveAdmin
  module Views
    # Build an ActionListPopover
    class ActionListPopover < ActiveAdmin::Views::Popover
      builder_method :action_list_popover


      def build(*args, &block)
        @contents = ul :class => "popover_contents"

        options = args.extract_options!

        super(options)
      end

      def action(title, url, *args)
        options = args.extract_options!
        within @contents do
          li do
            text_node link_to( title, url, options )
          end
        end
      end

    end
  end
end

Version data entries

12 entries across 12 versions & 3 rubygems

Version Path
activeadmin-0.6.6 lib/active_admin/views/components/action_list_popover.rb
activeadmin-0.6.5 lib/active_admin/views/components/action_list_popover.rb
activeadmin-0.6.4 lib/active_admin/views/components/action_list_popover.rb
yousty-activeadmin-1.0.4.pre lib/active_admin/views/components/action_list_popover.rb
yousty-activeadmin-1.0.3.pre lib/active_admin/views/components/action_list_popover.rb
yousty-activeadmin-1.0.2.pre lib/active_admin/views/components/action_list_popover.rb
activeadmin-0.6.3 lib/active_admin/views/components/action_list_popover.rb
yousty-activeadmin-1.0.1.pre lib/active_admin/views/components/action_list_popover.rb
yousty-activeadmin-1.0.0.pre lib/active_admin/views/components/action_list_popover.rb
activeadmin-0.6.2 lib/active_admin/views/components/action_list_popover.rb
activeadmin-0.6.1 lib/active_admin/views/components/action_list_popover.rb
aa-rails4-0.6.0 lib/active_admin/views/components/action_list_popover.rb