Skip to content

Commit

Permalink
Step 6.8: Add message page template
Browse files Browse the repository at this point in the history
  • Loading branch information
DAB0mB committed Feb 13, 2017
1 parent ab4e328 commit fb35333
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions client/imports/pages/messages/messages.html
@@ -0,0 +1,25 @@
<ion-header>
<ion-navbar color="whatsapp" class="messages-page-navbar">
<ion-buttons>
<img class="chat-picture" [src]="picture">
</ion-buttons>

<ion-title class="chat-title">{{title}}</ion-title>

<ion-buttons end>
<button ion-button icon-only class="attach-button"><ion-icon name="attach"></ion-icon></button>
<button ion-button icon-only class="options-button"><ion-icon name="more"></ion-icon></button>
</ion-buttons>
</ion-navbar>
</ion-header>

<ion-content padding class="messages-page-content">
<ion-scroll scrollY="true" class="messages">
<div *ngFor="let message of messages | async" class="day-wrapper">
<div [class]="'message message-' + message.ownership">
<div *ngIf="message.type == 'text'" class="message-content message-content-text">{{message.content}}</div>
<span class="message-timestamp">{{ message.createdAt }}</span>
</div>
</div>
</ion-scroll>
</ion-content>

0 comments on commit fb35333

Please sign in to comment.