Fixed formatting

This commit is contained in:
Igor Scheller 2023-12-24 14:08:41 +01:00
parent 4244acfb4d
commit a3a36de985
2 changed files with 3 additions and 5 deletions

View File

@ -32,9 +32,9 @@ return [
// Available link placeholders: %lang% // Available link placeholders: %lang%
// To disable a header_item in the config.php, you can set its value to null // To disable a header_item in the config.php, you can set its value to null
'header_items' => [ 'header_items' => [
// Name can be a translation string, permission is a engelsystem privilege
// 'Name' => 'URL', // 'Name' => 'URL',
// 'Name' => ['URL', 'permission'], // 'Name' => ['URL', 'permission'],
// Name can be a translation string, permission is a engelsystem privilege
//'Foo' => ['https://foo.bar/batz-%lang%.html', 'logout'], // Permission: for logged-in users //'Foo' => ['https://foo.bar/batz-%lang%.html', 'logout'], // Permission: for logged-in users
], ],
@ -42,9 +42,9 @@ return [
// Footer links // Footer links
// To disable a footer item in the config.php, you can set its value to null // To disable a footer item in the config.php, you can set its value to null
'footer_items' => [ 'footer_items' => [
// Name can be a translation string, permission is a engelsystem privilege
// 'Name' => 'URL', // 'Name' => 'URL',
// 'Name' => ['URL', 'permission'], // 'Name' => ['URL', 'permission'],
// Name can be a translation string, permission is a engelsystem privilege
// URL to the angel faq and job description // URL to the angel faq and job description
'faq.faq' => [env('FAQ_URL', '/faq'), 'faq.view'], 'faq.faq' => [env('FAQ_URL', '/faq'), 'faq.view'],

View File

@ -50,9 +50,7 @@
{% set permission = opt is iterable ? opt[1] : null %} {% set permission = opt is iterable ? opt[1] : null %}
{% if not permission or has_permission_to(permission) %} {% if not permission or has_permission_to(permission) %}
<li class="nav-item"> <li class="nav-item">
<a class="nav-link" <a class="nav-link" href="{{ url|replace({'%lang%': session_get('locale')|split('_')[0]})|escape('html_attr') }}">
href="{{ url|replace({'%lang%': session_get('locale')|split('_')[0]})|escape('html_attr') }}"
>
{{ __(name) }} {{ __(name) }}
</a> </a>
</li> </li>