Skip to content

Commit

Permalink
UHF-8839: Add views id for search results. Unify dom structure.
Browse files Browse the repository at this point in the history
  • Loading branch information
xkhaven committed Sep 21, 2023
1 parent d27b9fd commit 589a35c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 6 additions & 4 deletions templates/views/views-view--service-list--block-search.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,12 @@

{% if is_ajax_request or total_rows > pager_items_per_page %}
{{ exposed }}
<span class="service-list__count-container">
<span class="service-list__count">{{ total_rows ?? 0 }}</span>
{% trans with {'context': 'Service list count'}%}service{% plural total_rows %}services{% endtrans %}
</span>
<div class="services-search__results" data-id-number="{{ dom_id }}">
<span class="service-list__count-container">
<span class="service-list__count">{{ total_rows ?? 0 }}</span>
{% trans with {'context': 'Service list count'}%}service{% plural total_rows %}services{% endtrans %}
</span>
</div>
{% endif %}

{{ attachment_before }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,8 @@
*/
#}

<div class="services-search__results">
{% for row in rows %}
<div class="views-row">
{{- row.content -}}
</div>
{% endfor %}
</div>

0 comments on commit 589a35c

Please sign in to comment.