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

41 lines
1,009 B
HTML
Raw Normal View History

2017-06-10 13:55:32 +00:00
<!--
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>
2017-06-10 15:24:38 +00:00
<button ion-button menuToggle>
<ion-icon name="menu"></ion-icon>
</button>
2017-06-10 17:26:18 +00:00
<ion-title>{{ title }}</ion-title>
2017-06-10 13:55:32 +00:00
</ion-navbar>
</ion-header>
<ion-content>
<ion-list>
2017-06-10 17:26:18 +00:00
<ion-item *ngFor="let post of posts" (click)="showPostDetails(post)" text-wrap>
2017-06-10 13:55:32 +00:00
<ion-avatar item-start>
2017-06-10 17:26:18 +00:00
<img src="{{ post.user.content.avatar_image.link }}">
2017-06-10 13:55:32 +00:00
</ion-avatar>
2017-06-10 17:26:18 +00:00
<h1>{{ post.user.username }}</h1>
2017-06-10 15:24:38 +00:00
<p>{{ post.is_deleted ? '{post deleted}' : post.content.text }}</p>
2017-06-10 17:26:18 +00:00
<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>
</div>
</div>
2017-06-10 13:55:32 +00:00
</ion-item>
</ion-list>
</ion-content>