@@ -53,61 +53,23 @@ <h2>{{ periodName }}</h2>
5353 < core-loading [hideUntil] ="day.loaded " placeholderType ="column " placeholderHeight ="70px " [placeholderLimit] ="8 ">
5454 <!-- There is data to be synchronized -->
5555 @if (day.hasOffline) {
56- < ion-card class ="core-warning-card list-item-limited-width ">
57- < ion-item >
58- < ion-icon name ="fas-triangle-exclamation " slot ="start " aria-hidden ="true " />
59- < ion-label > {{ 'core.hasdatatosync' | translate:{$a: 'core.day' | translate} }}</ ion-label >
60- </ ion-item >
61- </ ion-card >
56+ < div class ="list-item-limited-width ">
57+ < ion-card class ="core-warning-card ">
58+ < ion-item >
59+ < ion-icon name ="fas-triangle-exclamation " slot ="start " aria-hidden ="true " />
60+ < ion-label > {{ 'core.hasdatatosync' | translate:{$a: 'core.day' | translate} }}</ ion-label >
61+ </ ion-item >
62+ </ ion-card >
63+ </ div >
6264 }
6365
6466 @if (!day.filteredEvents || !day.filteredEvents.length) {
6567 < core-empty-box icon ="fas-calendar " [message] ="'addon.calendar.noevents' | translate " />
6668 } @else {
6769 < ion-list class ="list-item-limited-width ">
68- < ng-container *ngFor ="let event of day.filteredEvents ">
69- < ion-card >
70- < ion-item [class] ="['addon-calendar-event', 'ion-text-wrap', 'addon-calendar-eventtype-'+event.eventtype] "
71- [class.item-dimmed] ="event.ispast " [attr.aria-label] ="event.name "
72- (click) ="gotoEvent(event.id, day) " button [detail] ="false ">
73- @if (event.moduleIcon) {
74- < core-mod-icon [modicon] ="event.moduleIcon " slot ="start " [showAlt] ="false "
75- [modname] ="event.modulename " [componentId] ="event.instance " [purpose] ="event.purpose "
76- [isBranded] ="event.branded " />
77- } @else if (event.eventIcon) {
78- < ion-icon [name] ="event.eventIcon " slot ="start " aria-hidden ="true " />
79- }
80- < ion-label >
81- <!-- Add the icon title so accessibility tools read it. -->
82- < span class ="sr-only ">
83- {{ 'addon.calendar.type' + event.formattedType | translate }}
84- @if (event.moduleIcon && event.iconTitle) {
85- < span class ="sr-only "> {{ event.iconTitle
86- }}</ span >
87- }
88- </ span >
89- < p class ="item-heading ">
90- < core-format-text [text] ="event.name " [contextLevel] ="event.contextLevel "
91- [contextInstanceId] ="event.contextInstanceId " [sanitize] ="event.offline " />
92- </ p >
93- < p >
94- < core-format-text [text] ="event.formattedtime " [filter] ="false " />
95- </ p >
96- </ ion-label >
97- @if (event.deleted) {
98- < ion-note slot ="end ">
99- < ion-icon name ="fas-trash " aria-hidden ="true " />
100- < span class ="ion-text-wrap "> {{ 'core.deletedoffline' | translate }}</ span >
101- </ ion-note >
102- } @else if (event.offline) {
103- < ion-note slot ="end ">
104- < ion-icon name ="fas-clock " aria-hidden ="true " />
105- < span class ="ion-text-wrap "> {{ 'core.notsent' | translate }}</ span >
106- </ ion-note >
107- }
108- </ ion-item >
109- </ ion-card >
110- </ ng-container >
70+ @for (event of day.filteredEvents; track event.id) {
71+ < addon-calendar-event-card [event] ="event " (onEventClicked) ="gotoEvent(event.id, day) " />
72+ }
11173 </ ion-list >
11274 }
11375 </ core-loading >
0 commit comments