Display phone number in conversation header

Fixes #436

// FREEBIE
This commit is contained in:
lilia 2015-12-03 18:21:19 -08:00
parent 0620f08a7c
commit 68f2505996
4 changed files with 22 additions and 2 deletions

View file

@ -51,7 +51,12 @@
</ul>
</div>
{{> avatar }}
<span class='conversation-title'>{{ title }}</span>
<span class='conversation-title'>
{{ title }}
{{ #number }}
<span class='conversation-number'>{{ number }}</span>
{{ /number }}
</span>
</div>
<div class='discussion-container'></div>

View file

@ -18,6 +18,7 @@
return {
group: this.model.get('type') === 'group',
title: this.model.getTitle(),
number: this.model.getNumber(),
avatar: this.model.getAvatar()
};
},

View file

@ -19,6 +19,13 @@
overflow: hidden;
text-overflow: ellipsis;
padding-left: 10px;
-webkit-user-select: text;
}
.conversation-number {
padding-left: 5px;
line-height: 1em;
font-size: small;
color: #999;
}
.conversation {

View file

@ -583,7 +583,14 @@ input.search {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
padding-left: 10px; }
padding-left: 10px;
-webkit-user-select: text; }
.conversation-number {
padding-left: 5px;
line-height: 1em;
font-size: small;
color: #999; }
.conversation {
height: calc(100% - 20px);