mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-19 19:01:58 +00:00
Update breadcrumbs for PHP 7.2 #1079
This commit is contained in:
@@ -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 %}
|
||||||
|
|
||||||
|
|
||||||
|
|
Reference in New Issue
Block a user