1313 <div class =" card" >
1414 <tal : image tal : define ="
1515 image element/image;
16- " tal : condition =" image" tal : on-error =" nothing" >
16+ "
17+ tal : condition =" image"
18+ tal : on-error =" nothing"
19+ >
1720 <img tal : define ="
1821 images element/@@images;
19- " tal : replace =" structure python:images.srcset(fieldname='image',
22+ "
23+ tal : replace =" structure python:images.srcset(fieldname='image',
2024 scale_in_src='huge',
2125 sizes='(min-width: 1400px) 400px, 100vw',
2226 alt=element.Title() ,
2327 title=element.Title(),
2428 fetchpriority=fetchpriority_image_value,
25- loading=loading_image_value)" />
29+ loading=loading_image_value)"
30+ />
2631 </tal : image >
2732 <div class =" card-body" >
28- <a class =" h5 card-title stretched-link" href =" ${element/absolute_url}" >${element/Title}</a >
29- <p class =" mb-3" tal : condition =" python:element.portal_type != 'Event'"
30- tal : content =" python:element.toLocalizedTime(element.EffectiveDate())" ></p >
31- <p class =" mb-3" tal : condition =" python:element.portal_type == 'Event'"
32- tal : content =" python:element.toLocalizedTime(element.start)" ></p >
33+ <a class =" h5 card-title stretched-link"
34+ href =" ${element/absolute_url}"
35+ >${element/Title}</a >
36+ <p class =" mb-3"
37+ tal : condition =" python:element.portal_type != 'Event'"
38+ tal : content =" python:element.toLocalizedTime(element.EffectiveDate())"
39+ ></p >
40+ <p class =" mb-3"
41+ tal : condition =" python:element.portal_type == 'Event'"
42+ tal : content =" python:element.toLocalizedTime(element.start)"
43+ ></p >
3344
3445 <p class =" card-text" >${element/Description}</p >
3546 </div >
3950 </tal : repeat >
4051 </div >
4152 <div class =" d-flex justify-content-end" >
42- <a href =" ${context/link_url}" tal : condition =" context/link_url" >${context/link_text}</a >
53+ <a href =" ${context/link_url}"
54+ tal : condition =" context/link_url"
55+ >${context/link_text}</a >
4356 </div >
44- </tal : define >
57+ </tal : define >
0 commit comments