Skip to content

Commit 74e6edb

Browse files
committed
Apply twig coding standards
1 parent 5a480b9 commit 74e6edb

8 files changed

Lines changed: 12 additions & 13 deletions

web/themes/custom/hoeringsportal/templates/components/header-default.html.twig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,3 @@
3030
</div>
3131
{% endblock %}
3232
</div>
33-

web/themes/custom/hoeringsportal/templates/content/flag--support-proposal.html.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* - flaggable: The flaggable entity.
1515
*/
1616
#}
17-
{# Attach the flag CSS library.#}
17+
{# Attach the flag CSS library. #}
1818
{{ attach_library('flag/flag.link') }}
1919

2020
{# Depending on the flag action, set the appropriate action class. #}
@@ -36,6 +36,6 @@
3636

3737
{# Set nofollow to prevent search bots from crawling anonymous flag links #}
3838
{% set attributes = attributes.setAttribute('rel', 'nofollow') %}
39-
<div class="{{classes|join(' ')}}">
39+
<div class="{{ classes|join(' ') }}">
4040
<a{{ attributes }}>{{ include('themes/custom/hoeringsportal/templates/animated-svg/icon-deltag-thumbs-up.svg.html.twig') }}{{ flagcount(flag, flaggable) }} {{ 'like this'|t }}</a>
4141
</div>

web/themes/custom/hoeringsportal/templates/content/node--dialogue--full.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{% extends "@hoeringsportal/node/_node--1-col-large-image-top.html.twig" %}
1+
{% extends '@hoeringsportal/node/_node--1-col-large-image-top.html.twig' %}
22

33
{% block content_top %}
44
{# Header #}

web/themes/custom/hoeringsportal/templates/content/node--dialogue-proposal--full.html.twig

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{% extends "@hoeringsportal/node/_node--1-col-large-image-top.html.twig" %}
1+
{% extends '@hoeringsportal/node/_node--1-col-large-image-top.html.twig' %}
22

33
{% block content_top %}
44

@@ -10,9 +10,9 @@
1010
<div class="row justify-content-center pt-5">
1111
<div class="proposal-layout">
1212
<div class="breadcrumb mb-3">
13-
<span class="me-2">{{ 'Early inclusion'|t}}</span>/
13+
<span class="me-2">{{ 'Early inclusion'|t }}</span>/
1414
<span class="mx-2">
15-
<a href="{{ path('entity.node.canonical', {'node': node.field_dialogue.entity.id}) }}">{{ node.field_dialogue.entity.label }}</a>
15+
<a href="{{ path('entity.node.canonical', {node: node.field_dialogue.entity.id}) }}">{{ node.field_dialogue.entity.label }}</a>
1616
</span>/
1717
<span class="mx-2">{{ label }}</span>
1818
</div>

web/themes/custom/hoeringsportal/templates/content/node--landing-page.html.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
{% extends "@hoeringsportal/node/_node--1-col-large-image-top.html.twig" %}
1+
{% extends '@hoeringsportal/node/_node--1-col-large-image-top.html.twig' %}
22

33
{% block content_top %}
44
{# Header #}
55

6-
{{ include(directory ~ '/templates/components/header-default.html.twig', {
6+
{{ include(directory ~ '/templates/components/header-default.html.twig', {
77
images: {0: node.field_media_image_single.entity.field_itk_media_image_upload.entity},
88
category: content.field_header_label,
99
title: node.label,

web/themes/custom/hoeringsportal/templates/content/node--project-main-page--full.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{% extends "@hoeringsportal/node/_node--1-col-large-image-top.html.twig" %}
1+
{% extends '@hoeringsportal/node/_node--1-col-large-image-top.html.twig' %}
22

33
{% block content_top %}
44
{# Header #}

web/themes/custom/hoeringsportal/templates/field/field--field-dialogue-proposal-category.html.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
{% if (items[1]) %}
4545
<span class="badge rounded-pill">{{ items[1].content }}</span>
4646
{% endif %}
47-
{% if (items|length > 2) %}
48-
<span class="badge rounded-pill">+{{ items|length -2 }}</span>
47+
{% if (items|length > 2) %}
48+
<span class="badge rounded-pill">+{{ items|length - 2 }}</span>
4949
{% endif %}
5050
</div>

web/themes/custom/hoeringsportal/templates/views/views-view--dialogue-proposals.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050

5151
<div class="d-flex justify-content-between">
5252
{{ exposed }}
53-
<div><a href="{{ path('node.add', {'node_type': 'dialogue_proposal', 'dialogue': view.args[0]}) }}" class="btn btn-primary btn-sm rounded-2">{{ 'Participate with your proposal'|t }}</a></div>
53+
<div><a href="{{ path('node.add', {node_type: 'dialogue_proposal', dialogue: view.args[0]}) }}" class="btn btn-primary btn-sm rounded-2">{{ 'Participate with your proposal'|t }}</a></div>
5454
</div>
5555
{{ attachment_before }}
5656

0 commit comments

Comments
 (0)