Sha256: 4e8efdf653492a43bfd490c2b99503f60b3d66439cf37480f462b8ec6850758f

Contents?: true

Size: 604 Bytes

Versions: 13

Compression:

Stored size: 604 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", "https://activeadmin.info"),
          version: ActiveAdmin::VERSION).html_safe
      end

    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
activeadmin-2.8.0 lib/active_admin/views/footer.rb
activeadmin-2.7.0 lib/active_admin/views/footer.rb
activeadmin-2.6.1 lib/active_admin/views/footer.rb
activeadmin-2.6.0 lib/active_admin/views/footer.rb
activeadmin-2.5.0 lib/active_admin/views/footer.rb
activeadmin-2.4.0 lib/active_admin/views/footer.rb
activeadmin-2.3.1 lib/active_admin/views/footer.rb
activeadmin-2.3.0 lib/active_admin/views/footer.rb
activeadmin-2.2.0 lib/active_admin/views/footer.rb
activeadmin-2.1.0 lib/active_admin/views/footer.rb
activeadmin-2.0.0 lib/active_admin/views/footer.rb
activeadmin-2.0.0.rc2 lib/active_admin/views/footer.rb
activeadmin-2.0.0.rc1 lib/active_admin/views/footer.rb