Skip to content

Commit

Permalink
💄 Add continent in breadcrumb on list of countries
Browse files Browse the repository at this point in the history
  • Loading branch information
jbelien committed Sep 11, 2023
1 parent 4920613 commit e6e68d5
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion templates/app/breadcrumb.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,20 @@
</div>
</li>

{% if region is defined %}
{% if continent is defined %}
<li>
<div class="flex items-center">
<!-- Heroicon name: solid/chevron-right -->
<svg class="shrink-0 h-5 w-5 text-gray-400" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"
fill="currentColor" aria-hidden="true">
<path fill-rule="evenodd"
d="M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z"
clip-rule="evenodd" />
</svg>
<a href="{{ path('app_continent', {continent: continent}) }}" class="ml-4 text-sm font-medium text-gray-500">{{ continent|trans }}</a>
</div>
</li>
{% elseif region is defined %}
<li>
<div class="flex items-center">
<!-- Heroicon name: solid/chevron-right -->
Expand All @@ -28,7 +41,9 @@
<a href="{{ path('app_continent', {continent: region.continent}) }}" class="ml-4 text-sm font-medium text-gray-500">{{ region.continent|trans }}</a>
</div>
</li>
{% endif %}

{% if region is defined %}
<li>
<div class="flex items-center">
<!-- Heroicon name: solid/chevron-right -->
Expand Down

0 comments on commit e6e68d5

Please sign in to comment.