|
@@ -20,24 +20,19 @@
|
|
|
</ion-header>
|
|
|
|
|
|
<ion-content>
|
|
|
- <ion-grid>
|
|
|
- <ion-row>
|
|
|
- <ion-col size="12">
|
|
|
- <ion-card *ngFor="let message of messages">
|
|
|
- <ion-card-header>
|
|
|
- <ion-avatar>
|
|
|
- <img src="{{message.avatar}}">
|
|
|
- </ion-avatar>
|
|
|
- <ion-card-title>{{message.title}}</ion-card-title>
|
|
|
- <ion-card-subtitle>{{message.time}}</ion-card-subtitle>
|
|
|
- </ion-card-header>
|
|
|
- <ion-card-content>
|
|
|
- {{message.content}}
|
|
|
- </ion-card-content>
|
|
|
- </ion-card>
|
|
|
- </ion-col>
|
|
|
- </ion-row>
|
|
|
- </ion-grid>
|
|
|
+ <ion-list>
|
|
|
+ <ion-item *ngFor="let message of messages">
|
|
|
+ <ion-avatar slot="start">
|
|
|
+ <img *ngIf="message.avatar" [src]="message.avatar" />
|
|
|
+ <ion-icon *ngIf="!message.avatar" name="person-circle"></ion-icon>
|
|
|
+ </ion-avatar>
|
|
|
+ <ion-label>
|
|
|
+ <h2>{{message.title}}</h2>
|
|
|
+ <p>{{message.content}}</p>
|
|
|
+ </ion-label>
|
|
|
+ <ion-label slot="end">{{message.time}}</ion-label>
|
|
|
+ </ion-item>
|
|
|
+ </ion-list>
|
|
|
</ion-content>
|
|
|
|
|
|
<ion-footer>
|