Skip to content

Commit

Permalink
DIGITAL-379: Remove pager from external communities view and update m…
Browse files Browse the repository at this point in the history
…arkup to match live site.
  • Loading branch information
omerida committed Mar 5, 2025
1 parent e84be6d commit 25bb7b0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 18 deletions.
18 changes: 1 addition & 17 deletions config/sync/views.view.external_communities.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,24 +72,9 @@ display:
separator: ', '
field_api_classes: false
pager:
type: mini
type: none
options:
offset: 0
pagination_heading_level: h4
items_per_page: 10
total_pages: null
id: 0
tags:
next: ››
previous: ‹‹
expose:
items_per_page: false
items_per_page_label: 'Items per page'
items_per_page_options: '5, 10, 25, 50'
items_per_page_options_all: false
items_per_page_options_all_label: '- All -'
offset: false
offset_label: Offset
exposed_form:
type: basic
options:
Expand Down Expand Up @@ -218,7 +203,6 @@ display:
contexts:
- 'languages:language_content'
- 'languages:language_interface'
- url.query_args
- 'user.node_grants:view'
- user.permissions
tags: { }
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,5 @@
summary: content.field_summary|field_value,
url: content.field_external_url|field_value,
header_level: 2,
header_class: 'usa-collection__heading'
}, with_context: false) }}
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{% set with_icon = with_icon ?: false %}
{% set header_level = header_level ?: 3 %}
{% set header_class = header_class ?: 'usa-collection__header' %}
{% if with_icon %}
<div class="usa-collection__img-wrapper">
<img
Expand All @@ -11,7 +12,7 @@
</div>
{% endif %}
<div class="usa-collection__body">
<h{{ header_level }} class="usa-collection__header">
<h{{ header_level }} class="{{ header_class }}">
<a
class="usa-link"
href="{{ url }}"
Expand Down

0 comments on commit 25bb7b0

Please sign in to comment.