This repository has been archived on 2023-11-19. You can view files and clone it, but cannot push or open issues or pull requests.
goober-ionic/src/pages/stream/stream.html
2018-11-17 22:34:32 -08:00

48 lines
1.2 KiB
HTML

<!--
Generated template for the StreamPage page.
See http://ionicframework.com/docs/components/#navigation for more info on
Ionic pages and navigation.
-->
<ion-header>
<ion-navbar>
<button ion-button menuToggle>
<ion-icon name="menu"></ion-icon>
</button>
<ion-title>{{ title }}</ion-title>
</ion-navbar>
</ion-header>
<ion-content overflow-scroll=”true”>
<ion-refresher (ionRefresh)="fetchNewerPosts($event)">
<ion-refresher-content></ion-refresher-content>
</ion-refresher>
<ion-list>
<ion-card *ngFor="let post of posts" color="{{ post.you_are_mentioned ? 'mention' : '' }}">
<post [post]="post" [hideImg]="hideImg" [ccOnReply]="ccOnReply" [myUsername]="myUsername"></post>
</ion-card>
</ion-list>
<ion-infinite-scroll (ionInfinite)="fetchOlderPosts($event)">
<ion-infinite-scroll-content></ion-infinite-scroll-content>
</ion-infinite-scroll>
<ion-fab right bottom>
<button ion-fab (click)="showNewPost()">
<ion-icon name="add"></ion-icon>
</button>
</ion-fab>
<ion-fab *ngIf="showScrollBtn" left bottom>
<button ion-fab color="light" (click)="scrollToTop()">
<ion-icon name="arrow-dropup"></ion-icon>
</button>
</ion-fab>
</ion-content>