Sha256: 1d8338e0e908cf1d43e2b020d56bc2343d29395fb94f34cf009563cbd647f06a

Contents?: true

Size: 445 Bytes

Versions: 18

Compression:

Stored size: 445 Bytes

Contents

# frozen_string_literal: true

module Blacklight
  class TopNavbarComponent < Blacklight::Component
    def initialize(blacklight_config:)
      @blacklight_config = blacklight_config
    end

    attr_reader :blacklight_config

    delegate :application_name, :container_classes, to: :helpers

    def logo_link(title: application_name)
      link_to title, blacklight_config.logo_link, class: 'mb-0 navbar-brand navbar-logo'
    end
  end
end

Version data entries

18 entries across 17 versions & 2 rubygems

Version Path
blacklight-7.40.0 app/components/blacklight/top_navbar_component.rb
blacklight-7.39.0 app/components/blacklight/top_navbar_component.rb
blacklight-7.38.0 app/components/blacklight/top_navbar_component.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/blacklight-8.3.0/app/components/blacklight/top_navbar_component.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/blacklight-7.37.0/app/components/blacklight/top_navbar_component.rb
blacklight-8.3.0 app/components/blacklight/top_navbar_component.rb
blacklight-8.2.2 app/components/blacklight/top_navbar_component.rb
blacklight-8.2.1 app/components/blacklight/top_navbar_component.rb
blacklight-8.2.0 app/components/blacklight/top_navbar_component.rb
blacklight-7.37.0 app/components/blacklight/top_navbar_component.rb
blacklight-7.36.2 app/components/blacklight/top_navbar_component.rb
blacklight-7.36.1 app/components/blacklight/top_navbar_component.rb
blacklight-7.36.0 app/components/blacklight/top_navbar_component.rb
blacklight-7.35.0 app/components/blacklight/top_navbar_component.rb
blacklight-8.1.0 app/components/blacklight/top_navbar_component.rb
blacklight-7.34.0 app/components/blacklight/top_navbar_component.rb
blacklight-8.0.1 app/components/blacklight/top_navbar_component.rb
blacklight-8.0.0 app/components/blacklight/top_navbar_component.rb