Skip to content
Browse files

Step 2.12: Add the layout of the chats page

  • Loading branch information...
dotansimha authored and darkbasic committed Jan 24, 2017
1 parent 9b37a43 commit 760bd77e0e9f4e38f9c6cf3a033ba38f46bf115e
Showing with 28 additions and 3 deletions.
  1. +28 −3 src/pages/chats/chats.html
@@ -1,11 +1,36 @@
<ion-navbar color="whatsapp">
<ion-buttons end>
<button ion-button icon-only class="add-chat-button">
<ion-icon name="person-add"></ion-icon>
<button ion-button icon-only class="options-button">
<ion-icon name="more"></ion-icon>

<ion-content padding>
<ion-content class="chats-page-content">
<ion-list class="chats">
<ion-item-sliding *ngFor="let chat of chats | async">
<button ion-item class="chat">
<img class="chat-picture" [src]="chat.picture">
<div class="chat-info">
<h2 class="chat-title">{{chat.title}}</h2>

<span *ngIf="chat.lastMessage" class="last-message">
<p *ngIf="chat.lastMessage.type == 'text'" class="last-message-content last-message-content-text">{{chat.lastMessage.content}}</p>
<span class="last-message-timestamp">{{chat.lastMessage.createdAt }}</span>
<ion-item-options class="chat-options">
<button ion-button color="danger" class="option option-remove">Remove</button>

0 comments on commit 760bd77

Please sign in to comment.
You can’t perform that action at this time.