Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ Versioning](https://semver.org/spec/v2.0.0.html).

## [4.11.0] - 2025-07-01

* [PR-535](https://github.com/itk-dev/deltag.aarhus.dk/pull/535)
Use teaser image instead of full image. Supportticket: 373
* [PR-533](https://github.com/itk-dev/deltag.aarhus.dk/pull/533)
Show deadline date on hearing teaser instead of startdate - Closes issues #532
* [PR-531](https://github.com/itk-dev/deltag.aarhus.dk/pull/531)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,9 @@
{# Show a header with image if there is a image present for the node/teaser #}
{% if image %}
{# Get the url and alt text for the image #}
{% set image_url = file_url(image.field_itk_media_image_upload.entity.uri.value) %}
{% set image_alt = file_url(image.field_itk_media_image_upload.entity.entity.alt) %}
{% set image_url = file_url(image.field_itk_media_image_upload.entity.uri.value|image_style('responsive_small_teaser')) %}
{% set image_alt = image.field_itk_media_image_upload.alt %}

<div class="card-header position-relative p-0 w-100 activity-teaser-image overflow-hidden">
<img class="object-fit-cover" src="{{ image_url }}" alt="{{ image_alt|default('') }}">

Expand Down
Loading