<ion-view view-title="我安排的日程">
    <ion-nav-buttons side="right">
        <button class="button button-clear" ng-click="toadd()">
            <i class="icon ion-android-add"></i>
        </button>
    </ion-nav-buttons>
    <ion-content ng-class="{true:'overflow-hidden',false:''}[!Ishidded]">
        <ion-refresher pulling-text="下拉刷新" on-refresh="doRefresh()"></ion-refresher>
        <div ng-if="loading" class="center init-load action-sheet-backdrop">
            <ion-spinner icon="android"></ion-spinner>
        </div>
        <div class="schedule-data" ng-if="!loading">
            <schedule source="schedule" ng-repeat="schedule in schedules.results" ng-click="todetails(schedule.id)"></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>
