Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove spaces around breadcrumb items #27

Merged
merged 1 commit into from
Mar 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 17 additions & 15 deletions src/Resources/views/Block/breadcrumb.html.twig
Original file line number Diff line number Diff line change
@@ -1,20 +1,22 @@
{% extends 'knp_menu_ordered.html.twig' %}

{% block label %}
{% set translation_domain = item.getExtra('translation_domain', 'NucleosSeoBundle') %}
{% if options.allow_safe_labels and item.extra('safe_label', false) %}
{{- item.label|raw -}}
{% elseif translation_domain is same as(false) %}
{{- item.label -}}
{% else %}
{{- item.label|trans(item.getExtra('translation_params', {}), translation_domain) -}}
{% endif %}
{% endblock %}
{%- block label -%}
{% apply spaceless %}
{% set translation_domain = item.getExtra('translation_domain', 'NucleosSeoBundle') %}
{% if options.allow_safe_labels and item.extra('safe_label', false) %}
{{- item.label|raw -}}
{% elseif translation_domain is same as(false) %}
{{- item.label -}}
{% else %}
{{- item.label|trans(item.getExtra('translation_params', {}), translation_domain) -}}
{% endif %}
{% endapply %}
{%- endblock -%}

{% block list %}
{% apply spaceless %}
<div class="nucleos_breadcrumb">
{{ parent() }}
</div>
{% endapply %}
{% apply spaceless %}
<div class="nucleos_breadcrumb">
{{ parent() }}
</div>
{% endapply %}
{% endblock %}
Loading