<ion-view view-title="工作汇报" hide-back-button="true">
    <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="toman()" ng-if="roleid==1">管理&nbsp;&nbsp;</button>
        <button class="button button-clear" ng-click="towrite()">
            <i class="icon ion-android-add"></i>
        </button>
    </ion-nav-buttons>
    <ion-content>
        <ion-refresher pulling-text="下拉刷新" on-refresh="doRefresh()"></ion-refresher>
        <a class="item item-icon-right" href="#/daily-read">我可以查看的工作汇报
            <i class="icon ion-chevron-right icon-accessory"></i>
        </a>
        <div class="item item-divider"></div>
        <div ng-if="loading" class="center init-load action-sheet-backdrop">
            <ion-spinner icon="android"></ion-spinner>
        </div>
        <daily dailys="dailys.results" loading="loading"></daily>
        <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="dailys != undefined && dailys.next == null && dailys.results.length > 10">没有更多了</h4>
    </ion-content>
</ion-view>