Sha256: a7f06dc15dc8aaa0e3d3dc30835dbc5423cc3913bb0038af3b7f8ca6568896e1

Contents?: true

Size: 1.4 KB

Versions: 10

Compression:

Stored size: 1.4 KB

Contents

crumb :basic do
  link "About", about_path
end

crumb :with_root do
  link "About", about_path
  parent :root
end

crumb :with_parent do
  link "Contact", contact_path
  parent :basic
end

crumb :object do |project|
  link project.name, project
end

crumb :with_autopath do |project|
  link project.name, project
end

crumb :with_parent_object do |issue|
  link issue.title, project_issue_path(issue.project, issue)
  parent :object, issue.project
end

crumb :multiple_links do
  link "Contact", contact_path
  link "Contact form", contact_form_path
end

crumb :multiple_links_with_parent do
  link "Contact", contact_path
  link "Contact form", contact_form_path
  parent :basic
end

crumb :with_proc do
  link Proc.new { "Name from proc" }, Proc.new { "URL from proc" }
end

crumb :with_multiple_arguments do |a, b, c|
  link "#{a} and #{b} and #{c}", contact_path
  parent :parent_with_multiple_arguments, a * 2, b * 2, c * 2
end

crumb :parent_with_multiple_arguments do |d, e, f|
  link "First #{d} then #{e} then #{f}", about_path
end

crumb :with_unsafe_html do
  link "Test <strong>bold text</strong>", about_path
end

crumb :with_safe_html do
  link "Test <strong>bold text</strong>".html_safe, about_path
end

crumb :without_link do
  link "Without link"
  parent :parent_without_link
end

crumb :parent_without_link do
  link "Also without link"
end

crumb :using_view_helper do
  link times_two("Test"), about_path
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
gretel-3.0.0 test/dummy/config/breadcrumbs/test_crumbs.rb
gretel-3.0.0.beta6 test/dummy/config/breadcrumbs/test_crumbs.rb
gretel-3.0.0.beta5 test/dummy/config/breadcrumbs/test_crumbs.rb
gretel-3.0.0.beta4 test/dummy/config/breadcrumbs/test_crumbs.rb
gretel-3.0.0.beta3 test/dummy/config/breadcrumbs/test_crumbs.rb
gretel-3.0.0.beta2 test/dummy/config/breadcrumbs/test_crumbs.rb
gretel-3.0.0.beta1 test/dummy/config/breadcrumbs/test_crumbs.rb
gretel-2.2.0.rc2 test/dummy/config/breadcrumbs/test_crumbs.rb
gretel-2.2.0.rc1 test/dummy/config/breadcrumbs/test_crumbs.rb
gretel-2.1.0 test/dummy/config/breadcrumbs/test_crumbs.rb