Skip to content

Commit

Permalink
Compatibility fixes and README cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
thormeier committed Apr 17, 2019
1 parent 05b3d8c commit e875b74
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ configuration happens. This means that configuring breadcrumbs for instance via
* ...
* @Route(
* "/contact",
* name="course",
* name="acme_demo_contact",
* options={
* "breadcrumb" = {
* "label" = "Contact",
Expand Down Expand Up @@ -224,7 +224,7 @@ Your custom template might look something like this:
<div>
{% for breadcrumb in breadcrumbs %}
<a href="{{ path(breadcrumb.route, breadcrumb.routeParameters) }}">
{{ (breadcrumb.label)|replace('%%', '%')|trans(breadcrumb.labelParameters) }}
{{ breadcrumb.label|replace({"%%": "%"})|trans(breadcrumb.labelParameters) }}
</a>
{% endfor %}
</div>
Expand Down Expand Up @@ -258,4 +258,4 @@ a `BreadcrumbCollection` on demand.
## Slides

A slideshow presenting the bundle and explaining some concepts a little further is available on slideshare:
http://www.slideshare.net/Thormeier/thormeierbreadcrumbbundle
[http://www.slideshare.net/Thormeier/thormeierbreadcrumbbundle](http://www.slideshare.net/Thormeier/thormeierbreadcrumbbundle)
2 changes: 1 addition & 1 deletion Resources/views/breadcrumbs_bootstrap.html.twig
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{%- if breadcrumbs|length -%}
<ol class="breadcrumb">
{%- for crumb in breadcrumbs -%}
{%- set crumbText = crumb.label|replace('%%', '%')|trans(crumb.labelParameters) -%}
{%- set crumbText = crumb.label|replace({"%%": "%"})|trans(crumb.labelParameters) -%}
{%- if crumb.route == app.request.get('_route') -%}
<li class="breadcrumb-item active">
{{- crumbText -}}
Expand Down

0 comments on commit e875b74

Please sign in to comment.