Skip to content

Commit 5560ebf

Browse files
authored
Add missing "active" class on Sonata breadcrumbs last element (#131)
1 parent 024008a commit 5560ebf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/batch-symfony-framework/src/Resources/views/sonata/list.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
<i class="fa fa-home"></i>
2727
</a>
2828
</li>
29-
<li>
29+
<li class="active">
3030
<span>
3131
{{ 'job.name'|trans }}
3232
</span>

src/batch-symfony-framework/src/Resources/views/sonata/show.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
</li>
6161
{% set rootExecution = execution.rootExecution %}
6262
{% for parentPath, executionInPath in executionsPath %}
63-
<li>
63+
<li {% if loop.last %}class="active"{% endif %}>
6464
{% if loop.last %}
6565
<span>
6666
{%- include '@YokaiBatch/sonata/show/_job-name-and-id.html.twig' with {execution: executionInPath} only -%}

0 commit comments

Comments
 (0)