mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-11-23 09:26:29 -06:00
Update breadcrumbs for PHP 7.2 #1079
This commit is contained in:
parent
b73884160a
commit
e2bd1f6544
@ -18,7 +18,7 @@ return [
|
||||
|
|
||||
*/
|
||||
|
||||
'view' => 'breadcrumbs::bootstrap3',
|
||||
'view' => 'partials/breadcrumbs',
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
|
16
resources/views/partials/breadcrumbs.twig
Normal file
16
resources/views/partials/breadcrumbs.twig
Normal file
@ -0,0 +1,16 @@
|
||||
|
||||
{% if breadcrumbs|length > 0 %}
|
||||
|
||||
<ol class="breadcrumb">
|
||||
{% for breadcrumb in breadcrumbs %}
|
||||
{% if breadcrumb.url and not loop.last %}
|
||||
<li><a href="{{ breadcrumb.url }}">{{ breadcrumb.title }}</a></li>
|
||||
{% else %}
|
||||
<li class="active">{{ breadcrumb.title }}</li>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</ol>
|
||||
{% endif %}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user