mirror of
https://github.com/pierre42100/ComunicWeb
synced 2024-11-22 20:19:21 +00:00
Show conversations members numbers in conversations list
This commit is contained in:
parent
3d1dd2cbed
commit
cc296c2bac
@ -9,3 +9,11 @@
|
||||
color: #777;
|
||||
font-size: 10px;
|
||||
}
|
||||
|
||||
.conversations-list-box .conversations-members-numbers .fa.fa-users {
|
||||
margin-right: 2px;
|
||||
}
|
||||
|
||||
.conversations-list-box .conversations-members-numbers {
|
||||
margin-bottom: 0px;
|
||||
}
|
@ -301,6 +301,20 @@ ComunicWeb.components.conversations.list = {
|
||||
});
|
||||
}
|
||||
|
||||
//Add members number
|
||||
//Create paragraph
|
||||
var membersNumberParagraphElem = createElem("p", linkElem);
|
||||
membersNumberParagraphElem.className = "conversations-members-numbers";
|
||||
var membersNumberSmallElem = createElem("small", membersNumberParagraphElem);
|
||||
|
||||
//Add icon
|
||||
var membersNumberIconElem = createElem("i", membersNumberSmallElem);
|
||||
membersNumberIconElem.className = "fa fa-users";
|
||||
|
||||
//Specify value
|
||||
var membersNumberValueElem = createElem("span", membersNumberSmallElem);
|
||||
membersNumberValueElem.innerHTML = (conversationInfos.members.length === 1 ? "1 member" : conversationInfos.members.length + " members");
|
||||
|
||||
//Success
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user