Skip to content

Commit

Permalink
added badges to chat list
Browse files Browse the repository at this point in the history
  • Loading branch information
KaranErry committed Apr 16, 2019
1 parent 0dec1e1 commit 561d59e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
Binary file modified .DS_Store
Binary file not shown.
18 changes: 12 additions & 6 deletions views/chat.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,13 @@ img{ max-width:100%;}
.srch_bar .input-group-addon { margin: 0 0 0 -27px;}
.chat_ib h5{ font-size:15px; color:#464646; margin:0 0 8px 0;}
/*.chat_ib h5{ font-size:15px; color:#464646; margin:0 0 8px 0;}*/
.chat_ib h5 span{ font-size:13px; float:right;}
/*.chat_ib h5 span{ font-size:13px; float:right;}*/
.chat_date {
padding-top: 5px;
}
.chat_ib p{ font-size:14px; color:#989898; margin:auto}
Expand All @@ -68,7 +72,7 @@ img{ max-width:100%;}
background: #e8eaef;
overflow:hidden;
clear:both;
padding: 0 0 15px;
padding: 7px 0 7px;
}
.chat_list {
Expand Down Expand Up @@ -175,7 +179,7 @@ img{ max-width:100%;}
</style>

<br>
<h3 class=" text-center">Messaging</h3>
<h3 class=" text-center">Chat</h3>

<div class="messaging">
<div class="inbox_msg">
Expand All @@ -187,12 +191,14 @@ img{ max-width:100%;}
<span class="chat_img"> <img src="{{this.selectedImageUrl}}" alt="sunil"> </span>
<span class="chat_ib">
<input id = "threadId" type="hidden" class="form-control disabled" value="{{this._id}}">
<strong><h5>{{this.selectedPostTitle}}</h5></strong>
{{#ifEquals this.selectedPersonSelling ../currentSession.passport.user._json.email}}
<h5>Interested buyer for "{{this.selectedPostTitle}}"<span class="chat_date">Dec 25</span></h5>
<span class="badge badge-success">Interested Buyer</span>
{{/ifEquals}}
{{#ifEquals this.dateChatStartedBy ../currentSession.passport.user._json.email}}
<h5>Seller of "{{this.selectedPostTitle}}"</h5><span class="chat_date">Dec 25</span>
<span class="badge badge-info">Product Seller</span>
{{/ifEquals}}
<p class="chat_date">Last chatted: </p>
</span>
</div>
{{/each}}
Expand Down

0 comments on commit 561d59e

Please sign in to comment.