Sha256: 409d16f4e98bf58334ad9f8ee45f1e84ee1e56f961dc36525be9bd6a3e1838dc

Contents?: true

Size: 769 Bytes

Versions: 6

Compression:

Stored size: 769 Bytes

Contents

<% showcase.sample "Basic" do %>
  <ul>
    <%= render "shared/breadcrumb", url: root_url, label: "Breadcrumb Link" %>
    <%= render "shared/breadcrumb", label: "Unlinked label" %>
  </ul>
<% end %>

<%# TODO: Find a suitable url_for GET route here that every BulletTrain app would have. %>
<%# showcase.sample "With model url_for" do %>
<%#= render "shared/breadcrumb", url: [:account, Scaffolding::CompletelyConcrete::TangibleThing.new(id: 1)], label: "Concept" %>
<%# end %>

<% showcase.options do |o| %>
  <% o.required :label, "The breadcrumb text, either shown in the link or the plain label" %>
  <% o.optional :url, "A URL string, e.g. root_url, or something that's passed to url_for.", type: [String, "Valid url_for argument", "nil"].join("\n") %>
<% end %>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
bullet_train-themes-light-1.2.27 app/views/showcase/previews/partials/_breadcrumb.html.erb
bullet_train-themes-light-1.2.26 app/views/showcase/previews/partials/_breadcrumb.html.erb
bullet_train-themes-light-1.2.25 app/views/showcase/previews/partials/_breadcrumb.html.erb
bullet_train-themes-light-1.2.24 app/views/showcase/previews/partials/_breadcrumb.html.erb
bullet_train-themes-light-1.2.23 app/views/showcase/previews/partials/_breadcrumb.html.erb
bullet_train-themes-light-1.2.22 app/views/showcase/previews/partials/_breadcrumb.html.erb