2017-12-20 12:23:12 +01:00
< ion-header >
2018-07-13 13:10:55 +02:00
< ion-navbar core-back-button >
2017-12-20 12:23:12 +01:00
< ion-title > {{ 'addon.calendar.calendarevents' | translate }}< / ion-title >
2017-12-22 09:09:47 +01:00
< ion-buttons end >
< button * ngIf = "courses && courses.length" ion-button icon-only ( click ) = " openCourseFilter ( $ event ) " [ attr . aria-label ] = " ' core . courses . filter ' | translate " >
< ion-icon name = "funnel" > < / ion-icon >
< / button >
< core-context-menu >
< core-context-menu-item [ hidden ] = " ! notificationsEnabled " [ priority ] = " 600 " [ content ] = " ' core . settings . settings ' | translate " ( action ) = " openSettings ( ) " [ iconAction ] = " ' cog ' " > < / core-context-menu-item >
< / core-context-menu >
< / ion-buttons >
2017-12-20 12:23:12 +01:00
< / ion-navbar >
< / ion-header >
2018-01-10 16:35:25 +01:00
< core-split-view >
< ion-content >
< ion-refresher [ enabled ] = " eventsLoaded " ( ionRefresh ) = " refreshEvents ( $ event ) " >
< ion-refresher-content pullingText = "{{ 'core.pulltorefresh' | translate }}" > < / ion-refresher-content >
< / ion-refresher >
2018-01-24 11:35:49 +01:00
< core-loading [ hideUntil ] = " eventsLoaded " >
2018-01-10 16:35:25 +01:00
< core-empty-box * ngIf = "!filteredEvents || !filteredEvents.length" icon = "calendar" [ message ] = " ' addon . calendar . noevents ' | translate " >
< / core-empty-box >
2017-12-22 09:09:47 +01:00
2018-02-02 15:22:54 +01:00
< ion-list * ngIf = "filteredEvents && filteredEvents.length" no-margin >
2018-01-10 16:35:25 +01:00
< a ion-item text-wrap * ngFor = "let event of filteredEvents" [ title ] = " event . name " ( click ) = " gotoEvent ( event . id ) " [ class . core-split-item-selected ] = " event . id = = eventId " >
2018-01-23 13:00:00 +01:00
< img * ngIf = "event.moduleIcon" src = "{{event.moduleIcon}}" item-start class = "core-module-icon" >
2018-06-20 15:26:47 +02:00
< core-icon * ngIf = "event.icon && !event.moduleIcon" [ name ] = " event . icon " item-start > < / core-icon >
2018-01-10 16:35:25 +01:00
< h2 > < core-format-text [ text ] = " event . name " > < / core-format-text > < / h2 >
< p > {{ event.timestart | coreToLocaleString }}< / p >
< / a >
< / ion-list >
2017-12-22 09:09:47 +01:00
2018-09-18 16:18:16 +02:00
< div * ngIf = "canLoadMore" padding >
< button ion-button block ( click ) = " fetchEvents ( ) " color = "light" > {{'core.loadmore' | translate }}< / button >
< ion-infinite-scroll [ enabled ] = " canLoadMore " ( ionInfinite ) = " $ event . waitFor ( fetchEvents ( ) ) " >
< ion-infinite-scroll-content > < / ion-infinite-scroll-content >
< / ion-infinite-scroll >
< / div >
2018-01-10 16:35:25 +01:00
< / core-loading >
< / ion-content >
< / core-split-view >