Training 'picture_header' isnt working with sorl-thumbnail #89837

Open
opened 2021-07-13 17:13:28 +02:00 by Mike Newbon · 2 comments

In 'training.html' I'm trying to replace the header sorl-thumbnail resize as currently it just renders the full resolution.

{% include "common/components/helpers/image_resize.html" with alt=training.name classes="img-fluid img-width-100 rounded mb-3" img_source=training.picture_header width="820" %}

While the DOM has a url, it doesnt render an image.

Spoke with Anna and she mentioned it might be the typed templates objects vs raw django objects issue.

In 'training.html' I'm trying to replace the header <img> sorl-thumbnail resize as currently it just renders the full resolution. ```{% include "common/components/helpers/image_resize.html" with alt=training.name classes="img-fluid img-width-100 rounded mb-3" img_source=training.picture_header width="820" %}``` While the DOM has a url, it doesnt render an image. Spoke with Anna and she mentioned it might be the typed templates objects vs raw django objects issue.
Anna Sirota was assigned by Mike Newbon 2021-07-13 17:13:28 +02:00
Author

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'
Author

Added subscriber: @MikeyN

Added subscriber: @MikeyN
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: studio/blender-studio#89837
No description provided.