Sha256: 936ebcdef43a84ea00f9ba98870934739a600a1fd5fdad997e91d3dd56a540a9

Contents?: true

Size: 645 Bytes

Versions: 17

Compression:

Stored size: 645 Bytes

Contents

# frozen_string_literal: true
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

17 entries across 17 versions & 1 rubygems

Version Path
activeadmin-3.2.5 lib/active_admin/views/footer.rb
activeadmin-3.2.4 lib/active_admin/views/footer.rb
activeadmin-3.2.3 lib/active_admin/views/footer.rb
activeadmin-3.2.2 lib/active_admin/views/footer.rb
activeadmin-3.2.1 lib/active_admin/views/footer.rb
activeadmin-3.2.0 lib/active_admin/views/footer.rb
activeadmin-3.1.0 lib/active_admin/views/footer.rb
activeadmin-3.0.0 lib/active_admin/views/footer.rb
activeadmin-2.14.0 lib/active_admin/views/footer.rb
activeadmin-2.13.1 lib/active_admin/views/footer.rb
activeadmin-2.13.0 lib/active_admin/views/footer.rb
activeadmin-2.12.0 lib/active_admin/views/footer.rb
activeadmin-2.11.2 lib/active_admin/views/footer.rb
activeadmin-2.11.1 lib/active_admin/views/footer.rb
activeadmin-2.11.0 lib/active_admin/views/footer.rb
activeadmin-2.10.1 lib/active_admin/views/footer.rb
activeadmin-2.10.0 lib/active_admin/views/footer.rb