Sha256: e93ac37e66ca0caa07e7c54d84d4e61053a3b713e040d2a0f0acc8824a9f33fd

Contents?: true

Size: 629 Bytes

Versions: 22

Compression:

Stored size: 629 Bytes

Contents

# frozen_string_literal: true

module Plutonium
  module UI
    module Page
      class Index < Base
        private

        def page_title
          super || current_definition.index_page_title || resource_name_plural(resource_class)
        end

        def page_description
          super || current_definition.index_page_description
        end

        def page_actions
          super || current_definition.defined_actions.values.select { |a| a.resource_action? && a.permitted_by?(current_policy) }
        end

        def render_default_content
          render "resource_table"
        end
      end
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
plutonium-0.15.18 lib/plutonium/ui/page/index.rb
plutonium-0.15.17 lib/plutonium/ui/page/index.rb
plutonium-0.15.16 lib/plutonium/ui/page/index.rb
plutonium-0.15.15 lib/plutonium/ui/page/index.rb
plutonium-0.15.14 lib/plutonium/ui/page/index.rb
plutonium-0.15.13 lib/plutonium/ui/page/index.rb
plutonium-0.15.12 lib/plutonium/ui/page/index.rb
plutonium-0.15.11 lib/plutonium/ui/page/index.rb
plutonium-0.15.10 lib/plutonium/ui/page/index.rb
plutonium-0.15.9 lib/plutonium/ui/page/index.rb
plutonium-0.15.8 lib/plutonium/ui/page/index.rb
plutonium-0.15.7 lib/plutonium/ui/page/index.rb
plutonium-0.15.6 lib/plutonium/ui/page/index.rb
plutonium-0.15.5 lib/plutonium/ui/page/index.rb
plutonium-0.15.4 lib/plutonium/ui/page/index.rb
plutonium-0.15.3 lib/plutonium/ui/page/index.rb
plutonium-0.15.2 lib/plutonium/ui/page/index.rb
plutonium-0.15.1 lib/plutonium/ui/page/index.rb
plutonium-0.15.0 lib/plutonium/ui/page/index.rb
plutonium-0.15.0.pre.rc3 lib/plutonium/ui/page/index.rb