Skip to content

Commit ef631b3

Browse files
Update breadcrumb for search
1 parent 57d4927 commit ef631b3

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

templates/App/Board/show.html.twig

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,13 @@
66

77
{% block breadcrumb %}
88
<li><a href="{{ path('app_board_index') }}">{{ 'menu.boards'|trans }}</a></li>
9-
<li class="is-active"><a href="#" aria-current="page">{{ board.name }}</a></li>
9+
10+
{% if search is empty %}
11+
<li class="is-active"><a href="#">{{ board.name }}</a></li>
12+
{% else %}
13+
<li><a href="{{ path('app_board_show', {slug: board.slug}) }}">{{ board.name }}</a></li>
14+
<li class="is-active"><a href="#" aria-current="page">{{ search }}</a></li>
15+
{% endif %}
1016
{% endblock %}
1117

1218
{% block content %}

0 commit comments

Comments
 (0)