Sha256: d500b9e98ba0480d12d69b890fc4851150b6acee93fbc5301a038a0225cc0d14

Contents?: true

Size: 607 Bytes

Versions: 16

Compression:

Stored size: 607 Bytes

Contents

module ActiveAdmin
  module Views
    class Footer < Component

      def build(namespace)
        super id: "footer"
        @namespace = namespace

        if footer_text.present?
          para footer_text
        else
          para powered_by_message
        end
      end

      private

      def footer_text
        @footer_text ||= @namespace.footer(self)
      end

      def powered_by_message
        I18n.t('active_admin.powered_by',
          active_admin: link_to("Active Admin", "http://www.activeadmin.info"),
          version: ActiveAdmin::VERSION).html_safe
      end

    end
  end
end

Version data entries

16 entries across 16 versions & 3 rubygems

Version Path
activeadmin-rb-1.6.0 lib/active_admin/views/footer.rb
activeadmin-rb-1.5.2 lib/active_admin/views/footer.rb
activeadmin-rb-1.5.1 lib/active_admin/views/footer.rb
activeadmin-rb-1.5.0 lib/active_admin/views/footer.rb
activeadmin_addons-1.7.1 vendor/bundle/ruby/2.3.0/bundler/gems/activeadmin-f71b375325eb/lib/active_admin/views/footer.rb
activeadmin-rb-1.4.0 lib/active_admin/views/footer.rb
activeadmin_addons-1.7.0 vendor/bundle/ruby/2.3.0/bundler/gems/activeadmin-f71b375325eb/lib/active_admin/views/footer.rb
activeadmin-1.4.3 lib/active_admin/views/footer.rb
activeadmin-1.4.2 lib/active_admin/views/footer.rb
activeadmin-1.4.1 lib/active_admin/views/footer.rb
activeadmin-1.4.0 lib/active_admin/views/footer.rb
activeadmin_addons-1.6.0 vendor/bundle/ruby/2.3.0/bundler/gems/activeadmin-f71b375325eb/lib/active_admin/views/footer.rb
activeadmin_addons-1.5.0 vendor/bundle/ruby/2.2.0/bundler/gems/activeadmin-f71b375325eb/lib/active_admin/views/footer.rb
activeadmin_addons-1.4.0 vendor/bundle/ruby/2.2.0/bundler/gems/activeadmin-f71b375325eb/lib/active_admin/views/footer.rb
activeadmin_addons-1.3.0 vendor/bundle/ruby/2.3.0/bundler/gems/activeadmin-f71b375325eb/lib/active_admin/views/footer.rb
activeadmin_addons-1.2.0 vendor/bundle/ruby/2.3.0/bundler/gems/activeadmin-f71b375325eb/lib/active_admin/views/footer.rb