<ion-view view-title="日程提醒">
    <ion-nav-buttons side="left">
        <button class="button ion-chevron-left button-clear button-dark" ng-click="goBack()">&nbsp;返回</button>
    </ion-nav-buttons>
    <ion-nav-buttons side="right">
        <button class="button button-clear" ng-click="toadd()">
            <i class="icon ion-android-add">&nbsp;&nbsp;</i>
        </button>
    </ion-nav-buttons>
    <ion-content>
        <ion-refresher pulling-text="下拉刷新" on-refresh="doRefresh()"></ion-refresher>
        <!--<a class="item item-icon-right" href="#/schedule/schedule-posted">我安排的日程
            <i class="icon ion-chevron-right icon-accessory"></i>
        </a>-->
        <div ng-if="loading" class="center init-load action-sheet-backdrop">
            <ion-spinner icon="android"></ion-spinner>
        </div>
        <div class="item item-divider schedule-data-receive">我的日程</div>
        <div ng-if="!loading">
            <schedule source="schedule" ng-repeat="schedule in schedules.results" ng-click="todetails(schedule)"></schedule>
        </div>
        <ion-infinite-scroll spinner="android" ng-if="moreCanBeLoaded()" on-infinite="loadMore()" distance="1%" immediate-check="false"></ion-infinite-scroll>
        <h4 class="stable center" ng-show="schedules != undefined && schedules.next == null && schedules.results.length > 10">没有更多了</h4>
    </ion-content>
</ion-view>