Added basic group information

This commit is contained in:
Pierre HUBERT 2018-07-03 13:06:55 +02:00
parent a3ddd525d0
commit 30696174f2
2 changed files with 26 additions and 0 deletions

View File

@ -15,3 +15,8 @@
.group-header .group-name {
font-size: 200%;
}
.group-header .col-info .fa {
margin-right: 10px;
width: 10px;
}

View File

@ -50,6 +50,27 @@ ComunicWeb.pages.groups.sections.header = {
class: "group-name",
innerHTML: info.name
});
//Second column : information about the company
var secondColumn = createElem2({
appendTo: row,
type: "div",
class: "col-lg-4 col-info"
});
//Add join date
var joinDate = createElem2({
appendTo: secondColumn,
type: "div",
innerHTML: '<i class="fa fa-clock-o"></i> Joined '+ComunicWeb.common.date.timeDiffToStr(info.time_create)+' ago'
});
//Add number of members
var joinDate = createElem2({
appendTo: secondColumn,
type: "div",
innerHTML: '<i class="fa fa-group"></i> '+ info.number_members+' members'
});
},
};