Skip to content
Snippets Groups Projects
Verified Commit 7643b321 authored by Lauri Timmanee's avatar Lauri Timmanee
Browse files

Issue #3399172 by saidatom, smustgrave: Fix linting issues in Twig files

parent f64cd3e0
No related branches found
No related tags found
38 merge requests!8528Issue #3456871 by Tim Bozeman: Support NULL services,!8323Fix source code editing and in place front page site studio editing.,!6278Issue #3187770 by godotislate, smustgrave, catch, quietone: Views Rendered...,!54479.5.x SF update,!3878Removed unused condition head title for views,!38582585169-10.1.x,!3818Issue #2140179: $entity->original gets stale between updates,!3742Issue #3328429: Create item list field formatter for displaying ordered and unordered lists,!3731Claro: role=button on status report items,!3668Resolve #3347842 "Deprecate the trusted",!3651Issue #3347736: Create new SDC component for Olivero (header-search),!3546refactored dialog.pcss file,!3531Issue #3336994: StringFormatter always displays links to entity even if the user in context does not have access,!3502Issue #3335308: Confusing behavior with FormState::setFormState and FormState::setMethod,!3452Issue #3332701: Refactor Claro's tablesort-indicator stylesheet,!3355Issue #3209129: Scrolling problems when adding a block via layout builder,!3226Issue #2987537: Custom menu link entity type should not declare "bundle" entity key,!3154Fixes #2987987 - CSRF token validation broken on routes with optional parameters.,!3147Issue #3328457: Replace most substr($a, $i) where $i is negative with str_ends_with(),!3146Issue #3328456: Replace substr($a, 0, $i) with str_starts_with(),!3133core/modules/system/css/components/hidden.module.css,!2964Issue #2865710 : Dependencies from only one instance of a widget are used in display modes,!2812Issue #3312049: [Followup] Fix Drupal.Commenting.FunctionComment.MissingReturnType returns for NULL,!2614Issue #2981326: Replace non-test usages of \Drupal::logger() with IoC injection,!2378Issue #2875033: Optimize joins and table selection in SQL entity query implementation,!2334Issue #3228209: Add hasRole() method to AccountInterface,!2062Issue #3246454: Add weekly granularity to views date sort,!1255Issue #3238922: Refactor (if feasible) uses of the jQuery serialize function to use vanillaJS,!1105Issue #3025039: New non translatable field on translatable content throws error,!1073issue #3191727: Focus states on mobile second level navigation items fixed,!10223132456: Fix issue where views instances are emptied before an ajax request is complete,!877Issue #2708101: Default value for link text is not saved,!844Resolve #3036010 "Updaters",!673Issue #3214208: FinishResponseSubscriber could create duplicate headers,!617Issue #3043725: Provide a Entity Handler for user cancelation,!579Issue #2230909: Simple decimals fail to pass validation,!560Move callback classRemove outside of the loop,!555Issue #3202493
Pipeline #46643 canceled
Showing
with 28 additions and 29 deletions
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
<li class="announcement announcement--standard"> <li class="announcement announcement--standard">
<div class="announcement__title"> <div class="announcement__title">
<a href="{{ announcement.url }}">{{ announcement.title }}</a> <a href="{{ announcement.url }}">{{ announcement.title }}</a>
<div class="announcement__date">{{ announcement.datePublishedTimestamp | format_date('short') }}</div> <div class="announcement__date">{{ announcement.datePublishedTimestamp|format_date('short') }}</div>
</div> </div>
</li> </li>
{% endfor %} {% endfor %}
......
...@@ -36,11 +36,11 @@ ...@@ -36,11 +36,11 @@
to be exported as printer-friendly HTML. to be exported as printer-friendly HTML.
#} #}
{% if depth > 1 %}{% for i in 1..depth-1 %} {% if depth > 1 %}{% for i in 1..depth - 1 %}
<div> <div>
{% endfor %}{% endif %} {% endfor %}{% endif %}
{{ contents }} {{ contents }}
{% if depth > 1 %}{% for i in 1..depth-1 %} {% if depth > 1 %}{% for i in 1..depth - 1 %}
</div> </div>
{% endfor %}{% endif %} {% endfor %}{% endif %}
</body> </body>
......
...@@ -6,7 +6,7 @@ related: ...@@ -6,7 +6,7 @@ related:
- language.add - language.add
--- ---
{% set config_translation_link_text %}{% trans %}Configuration translation{% endtrans %}{% endset %} {% set config_translation_link_text %}{% trans %}Configuration translation{% endtrans %}{% endset %}
{% set config_translation_link = render_var(help_route_link(config_translation_link_text, 'config_translation.mapper_list'))%} {% set config_translation_link = render_var(help_route_link(config_translation_link_text, 'config_translation.mapper_list')) %}
{% set config_overview_topic = render_var(help_topic_link('core.config_overview')) %} {% set config_overview_topic = render_var(help_topic_link('core.config_overview')) %}
{% set language_add_topic = render_var(help_topic_link('language.add')) %} {% set language_add_topic = render_var(help_topic_link('language.add')) %}
<h2>{% trans %}Goal{% endtrans %}</h2> <h2>{% trans %}Goal{% endtrans %}</h2>
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
required ? 'form-required', required ? 'form-required',
] ]
%} %}
{# Always wrap fieldset legends in a <span> for CSS positioning. #} {# Always wrap fieldset legends in a <span> for CSS positioning. #}
<legend{{ legend_attributes }}> <legend{{ legend_attributes }}>
<span{{ legend_span_attributes.addClass(legend_span_classes) }}>{{ original_label }}</span> <span{{ legend_span_attributes.addClass(legend_span_classes) }}>{{ original_label }}</span>
</legend> </legend>
......
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
{{ content|without('name') }} {{ content|without('name') }}
</div> </div>
{% if not status %} {% if not status %}
{{ "unpublished" | t }} {{ "unpublished"|t }}
{% endif %} {% endif %}
<div{{ metadata_attributes }}> <div{{ metadata_attributes }}>
{{ name }} {{ name }}
......
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
required ? 'form-required', required ? 'form-required',
] ]
%} %}
{# Always wrap fieldset legends in a <span> for CSS positioning. #} {# Always wrap fieldset legends in a <span> for CSS positioning. #}
<legend{{ legend.attributes }}> <legend{{ legend.attributes }}>
<span{{ legend_span.attributes.addClass(legend_span_classes) }}>{{ legend.title }}</span> <span{{ legend_span.attributes.addClass(legend_span_classes) }}>{{ legend.title }}</span>
</legend> </legend>
......
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
] ]
%} %}
<summary{{ create_attribute({'class': summary_classes}) }} role="button"> <summary{{ create_attribute({'class': summary_classes}) }} role="button">
{% if requirement.severity_title %} {% if requirement.severity_title %}
<span class="visually-hidden">{{ requirement.severity_title }}</span> <span class="visually-hidden">{{ requirement.severity_title }}</span>
{% endif %} {% endif %}
{{ requirement.title }} {{ requirement.title }}
......
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
{% for requirement in group.items %} {% for requirement in group.items %}
<details> <details>
<summary role="button"> <summary role="button">
{% if requirement.severity_title %} {% if requirement.severity_title %}
<span class="visually-hidden">{{ requirement.severity_title }}</span> <span class="visually-hidden">{{ requirement.severity_title }}</span>
{% endif %} {% endif %}
{{ requirement.title }} {{ requirement.title }}
......
...@@ -48,15 +48,15 @@ ...@@ -48,15 +48,15 @@
<div class="details-wrapper"> <div class="details-wrapper">
<div class="details-description"> <div class="details-description">
<div class="requirements"> <div class="requirements">
<div class="admin-requirements">{{ 'Machine name: <span dir="ltr" class="table-filter-text-source">@machine-name</span>'|t({'@machine-name': module.machine_name }) }}</div> <div class="admin-requirements">{{ 'Machine name: <span dir="ltr" class="table-filter-text-source">@machine-name</span>'|t({'@machine-name': module.machine_name}) }}</div>
{% if module.version %} {% if module.version %}
<div class="admin-requirements">{{ 'Version: @module-version'|t({'@module-version': module.version }) }}</div> <div class="admin-requirements">{{ 'Version: @module-version'|t({'@module-version': module.version}) }}</div>
{% endif %} {% endif %}
{% if module.requires %} {% if module.requires %}
<div class="admin-requirements">{{ 'Requires: @module-list'|t({'@module-list': module.requires }) }}</div> <div class="admin-requirements">{{ 'Requires: @module-list'|t({'@module-list': module.requires}) }}</div>
{% endif %} {% endif %}
{% if module.required_by %} {% if module.required_by %}
<div class="admin-requirements">{{ 'Required by: @module-list'|t({'@module-list': module.required_by }) }}</div> <div class="admin-requirements">{{ 'Required by: @module-list'|t({'@module-list': module.required_by}) }}</div>
{% endif %} {% endif %}
</div> </div>
{% if module.links %} {% if module.links %}
......
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
<li>{{ reason }}</li> <li>{{ reason }}</li>
{%- endfor -%} {%- endfor -%}
{%- if module.required_by -%} {%- if module.required_by -%}
<li>{{ 'Required by: @module-list'|t({'@module-list': module.required_by|safe_join(', ') }) }}</li> <li>{{ 'Required by: @module-list'|t({'@module-list': module.required_by|safe_join(', ')}) }}</li>
{%- endif -%} {%- endif -%}
</ul> </ul>
</div> </div>
......
...@@ -65,7 +65,7 @@ ...@@ -65,7 +65,7 @@
<div class="theme-info__description">{{ theme.description }}</div> <div class="theme-info__description">{{ theme.description }}</div>
{% if theme.module_dependencies %} {% if theme.module_dependencies %}
<div class="theme-info__requires"> <div class="theme-info__requires">
{{ 'Requires: @module_dependencies'|t({ '@module_dependencies': theme.module_dependencies|render }) }} {{ 'Requires: @module_dependencies'|t({'@module_dependencies': theme.module_dependencies|render}) }}
</div> </div>
{% endif %} {% endif %}
{# Display operation links if the theme is compatible. #} {# Display operation links if the theme is compatible. #}
......
...@@ -16,4 +16,3 @@ related: ...@@ -16,4 +16,3 @@ related:
<li>{% trans %}The <em>My recent content</em> tab on the <em>Recent content</em> page (for logged-in users) limits the list to content created or commented on by the user viewing the page.{% endtrans %}</li> <li>{% trans %}The <em>My recent content</em> tab on the <em>Recent content</em> page (for logged-in users) limits the list to content created or commented on by the user viewing the page.{% endtrans %}</li>
<li>{% trans %}The <em>Activity</em> tab on a user profile shows the same list for the user whose profile is being viewed.{% endtrans %}</li> <li>{% trans %}The <em>Activity</em> tab on a user profile shows the same list for the user whose profile is being viewed.{% endtrans %}</li>
</ul> </ul>
...@@ -35,9 +35,9 @@ ...@@ -35,9 +35,9 @@
%} %}
{% set responsive_grid_styles = [ {% set responsive_grid_styles = [
'--views-responsive-grid--column-count:' ~ options.columns ~ ';', '--views-responsive-grid--column-count:' ~ options.columns ~ ';',
'--views-responsive-grid--cell-min-width:' ~ options.cell_min_width ~ 'px;', '--views-responsive-grid--cell-min-width:' ~ options.cell_min_width ~ 'px;',
'--views-responsive-grid--layout-gap:' ~ options.grid_gutter ~ 'px;', '--views-responsive-grid--layout-gap:' ~ options.grid_gutter ~ 'px;',
] ]
%} %}
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
* @ingroup themeable * @ingroup themeable
*/ */
#} #}
{% for row in rows %} {% for row in rows %}
{{ options.inline ? '<span' : '<div' }} > {{ options.inline ? '<span' : '<div' }} >
{% if row.separator -%} {% if row.separator -%}
{{ row.separator }} {{ row.separator }}
......
<div{{attributes.addClass('umami-badge')}}> <div{{ attributes.addClass('umami-badge') }}>
<div class="umami-badge__container"> <div class="umami-badge__container">
{% if icon %} {% if icon %}
<div class="umami-badge__icon"> <div class="umami-badge__icon">
......
<{{html_tag|default('article')}}{{attributes.addClass('umami-card')}}> <{{ html_tag|default('article') }}{{ attributes.addClass('umami-card') }}>
<div class="umami-card__wrapper"> <div class="umami-card__wrapper">
{% block content %}{% endblock %} {% block content %}{% endblock %}
</div> </div>
</{{html_tag|default('article')}}> </{{ html_tag|default('article') }}>
<div{{attributes.addClass('footer-block')}}> <div{{ attributes.addClass('footer-block') }}>
<div class="footer-block__wrapper"> <div class="footer-block__wrapper">
{% block image %} {% block image %}
{% if image %} {% if image %}
...@@ -11,4 +11,4 @@ ...@@ -11,4 +11,4 @@
{% block content %}{% endblock %} {% block content %}{% endblock %}
</div> </div>
</div> </div>
</div> </div>
\ No newline at end of file
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
required ? 'form-required', required ? 'form-required',
] ]
%} %}
{# Always wrap fieldset legends in a <span> for CSS positioning. #} {# Always wrap fieldset legends in a <span> for CSS positioning. #}
<legend{{ legend.attributes }}> <legend{{ legend.attributes }}>
<span{{ legend_span.attributes.addClass(legend_span_classes) }}>{{ legend.title }}</span> <span{{ legend_span.attributes.addClass(legend_span_classes) }}>{{ legend.title }}</span>
</legend> </legend>
......
...@@ -34,11 +34,11 @@ ...@@ -34,11 +34,11 @@
to be exported as printer-friendly HTML. to be exported as printer-friendly HTML.
#} #}
{% if depth > 1 %}{% for i in 1..depth-1 %} {% if depth > 1 %}{% for i in 1..depth - 1 %}
<div class="section-{{ i }}"> <div class="section-{{ i }}">
{% endfor %}{% endif %} {% endfor %}{% endif %}
{{ contents }} {{ contents }}
{% if depth > 1 %}{% for i in 1..depth-1 %} {% if depth > 1 %}{% for i in 1..depth - 1 %}
</div> </div>
{% endfor %}{% endif %} {% endfor %}{% endif %}
</body> </body>
......
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
{{ content|without('name') }} {{ content|without('name') }}
</div> </div>
{% if not status %} {% if not status %}
<div class="media-library-item__status">{{ "unpublished" | t }}</div> <div class="media-library-item__status">{{ "unpublished"|t }}</div>
{% endif %} {% endif %}
<div{{ metadata_attributes.addClass('media-library-item__attributes') }}> <div{{ metadata_attributes.addClass('media-library-item__attributes') }}>
<div class="media-library-item__name"> <div class="media-library-item__name">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment