<ion-view view-title="我可以查看的工作汇报">
    <ion-content>
        <ion-refresher pulling-text="下拉刷新" on-refresh="doRefresh()"></ion-refresher>
        <!--<div class="button-bar report-button">
            <button class="button" ng-class="{true:'daily-color',false:'daily-hover'}[index==0?true:false]" ng-click="select(0)">日报</button>
            <button class="button" ng-class="{true:'daily-color',false:'daily-hover'}[index==1?true:false]" ng-click="select(1)">周报</button>
            <button class="button" ng-class="{true:'daily-color',false:'daily-hover'}[index==2?true:false]" ng-click="select(2)">月报</button>
        </div>
        <ion-slide-box show-pager="false" ng-init="init()" class="text-margin">
            <ion-slide>-->
        <div ng-if="loading" class="center init-load action-sheet-backdrop">
            <ion-spinner icon="android"></ion-spinner>
        </div>
        <ion-list ng-if="!loading">
            <div ng-repeat="(key,item) in summary.results track by $index">
                <div class="item item-stable center"><!--ng-if="isMonth(item[0])"-->
                    <a class="link" ng-click="toMonthCount(item[0])">{{key}}&nbsp;统计</a>
                </div>
                <a class="item item-icon-right" 
                    ng-repeat="it in item track by $index"
                    ng-click="toDayCount(it.daily_date)">
                    {{it.daily_date | date:'MM-dd'}}
                    <span class="item-note">{{it.count}}篇</span>
                    <i class="icon ion-chevron-right icon-accessory"></i>
                </a>    
            </div>
        </ion-list>
        <ion-infinite-scroll spinner="android" ng-if="moreCanBeLoaded()" on-infinite="loadMore()" distance="1%" immediate-check="false"></ion-infinite-scroll>
        <!--</ion-slide>
        <ion-slide>
            <ion-list>
                <a class="item item-icon-right" href="#/daily-read/1">{xx月xx周}
                    <span class="item-note">{number}</span>
                    <i class="icon ion-chevron-right icon-accessory"></i>
                </a>
            </ion-list>
        </ion-slide>
        <ion-slide>
            <ion-list>
                <a class="item item-icon-right">{xx月}
                    <span class="item-note">{number}</span>
                    <i class="icon ion-chevron-right icon-accessory"></i>
                </a>
            </ion-list>
        </ion-slide>
    </ion-slide-box>-->
    </ion-content>
</ion-view>