Sha256: 421d581b170a9bff20c06fd1fed58a0d060df94dd6dbb286cbfe0b05c50a56d9

Contents?: true

Size: 551 Bytes

Versions: 14

Compression:

Stored size: 551 Bytes

Contents

# frozen_string_literal: true

# Root crumb
crumb :root do
  link t('arclight.routes.home'), root_path
end

crumb :repositories do
  link t('arclight.routes.repositories'), arclight_engine.repositories_path
end

crumb :repository do |repository|
  link repository.name, arclight_engine.repository_path(repository.slug)

  parent :repositories
end

crumb :search_results do |search_state|
  if search_state.filter('level').values == ['Collection']
    link t('arclight.routes.collections')
  else
    link t('arclight.routes.search_results')
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
arclight-1.4.0 config/breadcrumbs.rb
arclight-1.3.0 config/breadcrumbs.rb
arclight-1.2.0 config/breadcrumbs.rb
arclight-1.1.3 config/breadcrumbs.rb
arclight-1.1.2 config/breadcrumbs.rb
arclight-1.1.1 config/breadcrumbs.rb
arclight-1.1.0 config/breadcrumbs.rb
arclight-1.0.1 config/breadcrumbs.rb
arclight-1.0.0 config/breadcrumbs.rb
arclight-1.0.0.beta6 config/breadcrumbs.rb
arclight-1.0.0.beta4 config/breadcrumbs.rb
arclight-1.0.0.beta3 config/breadcrumbs.rb
arclight-1.0.0.beta2 config/breadcrumbs.rb
arclight-1.0.0.beta1 config/breadcrumbs.rb