Skip to content

Commit 14d9665

Browse files
committed
Updated templates and taskfile
1 parent b407e2f commit 14d9665

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

task/Taskfile.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ tasks:
7373
cmds:
7474
- task dev:compose -- exec phpfpm vendor/bin/phpcs --standard=phpcs.xml.dist
7575
- task dev:compose -- exec phpfpm vendor/bin/phpstan analyse --configuration=phpstan.neon
76-
- task dev:compose -- exec phpfpm vendor/bin/twig-cs-fixer lint web/profiles/custom/os2loop/themes/*/templates
76+
- task dev:compose -- exec phpfpm vendor/bin/twig-cs-fixer lint
7777
- task dev:compose -- run --rm prettier '**/*.{yml,yaml}' --check
7878
- task dev:compose -- run --rm prettier 'web/profiles/custom/os2loop/**/*.{css,scss}' --check
7979
- task dev:compose -- run --rm prettier 'web/profiles/custom/os2loop/**/*.js' --check
@@ -83,7 +83,7 @@ tasks:
8383
desc: Apply coding standards to php, twig and markdown files
8484
cmds:
8585
- task dev:compose -- exec phpfpm vendor/bin/phpcbf --standard=phpcs.xml.dist
86-
- task dev:compose -- exec phpfpm vendor/bin/twig-cs-fixer lint web/profiles/custom/os2loop/themes/*/templates --fix
86+
- task dev:compose -- exec phpfpm vendor/bin/twig-cs-fixer lint --fix
8787
- task dev:compose -- run --rm prettier '**/*.{yml,yaml}' --write
8888
- task dev:compose -- run --rm prettier 'web/profiles/custom/os2loop/themes/**/*.{css,scss}' --write
8989
- task dev:compose -- run --rm prettier 'web/profiles/custom/os2loop/**/*.js' --write

web/profiles/custom/os2loop/modules/os2loop_lists/templates/os2loop-lists-expert.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
<div class="col">
2525
<div class="small">{{ node.type.entity.label }}</div>
2626
<div class="d-flex">
27-
<h3 class="h6"><a href="{{ url('entity.node.canonical', { 'node': node.id() }) }}">{{ node.title() }}</a></h3>
27+
<h3 class="h6"><a href="{{ url('entity.node.canonical', {node: node.id()}) }}">{{ node.title() }}</a></h3>
2828
</div>
2929
<div class="d-flex">
3030
{% if node.bundle is same as 'os2loop_post' %}

web/profiles/custom/os2loop/modules/os2loop_lists/templates/os2loop-lists-profession.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
<div class="col">
2525
<div class="small">{{ node.type.entity.label }}</div>
2626
<div class="d-flex">
27-
<h3 class="h6"><a href="{{ url('entity.node.canonical', { 'node': node.id() }) }}">{{ node.title() }}</a></h3>
27+
<h3 class="h6"><a href="{{ url('entity.node.canonical', {node: node.id()}) }}">{{ node.title() }}</a></h3>
2828
</div>
2929
<div class="d-flex">
3030
{% if node.bundle is same as 'os2loop_post' %}

web/profiles/custom/os2loop/themes/os2loop_theme/templates/content/node--os2loop-section-page.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@
9292
<footer>
9393
{{ author_picture }}
9494
<div{{ author_attributes }}>
95-
{% trans %}Submitted by {{ author_name }} on {{ date }}{% endtrans %}
95+
{{ 'Submitted by @authorname on @date'|t({'@authorname': author_name, '@date': date}) }}
9696
{{ metadata }}
9797
</div>
9898
</footer>

web/profiles/custom/os2loop/themes/os2loop_theme/templates/views/views-mini-pager.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
{% if items.current %}
2828
<li class="page-item">
2929
<span class="page-link">
30-
{% trans %}Page {{ items.current }}{% endtrans %}
30+
{{ 'Page @items'|t({'@items': items.current}) }}
3131
</span>
3232
</li>
3333
{% endif %}

0 commit comments

Comments
 (0)