<!--
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>
<ion-list>
<ion-item *ngFor="let post of posts" (click)="showPostDetails(post)" text-wrap>
<ion-avatar item-start>
<img src="{{ post.user.content.avatar_image.link }}">
</ion-avatar>
<h1>{{ post.user.username }}</h1>
<p>{{ post.is_deleted ? '{post deleted}' : post.content.text }}</p>
<div *ngIf="post.raw">
<div *ngFor="let r of post.raw">
<div *ngIf="r.type == 'io.pnut.core.oembed'">
<ion-thumbnail>
<img src="{{ r.value.url }}">
</ion-thumbnail>
</div>
</ion-item>
</ion-list>
</ion-content>