Display the number of friends

This commit is contained in:
Pierre 2017-12-23 18:19:06 +01:00
parent a49e068637
commit 1c20807108

View File

@ -60,6 +60,31 @@ ComunicWeb.pages.userPage.profileInfos = {
innerHTML: infos.firstName + " " + infos.lastName
});
//Add list of informations about user
var listInfos = createElem2({
appendTo: boxBody,
type: "url",
class: "list-group list-group-unbordered"
});
//Add number of friends
var friendsLi = createElem2({
appendTo: listInfos,
type: "li",
class: "list-group-item"
});
createElem2({
appendTo: friendsLi,
type: "b",
innerHTML: "Friends"
});
createElem2({
appendTo: friendsLi,
type: "a",
class: "pull-right",
innerHTML: infos.number_friends
})
//Add user status informations (if required)
if(signed_in()){
if(userID() != infos.userID){