Display url and description information in group header

This commit is contained in:
Pierre HUBERT 2018-07-16 08:27:31 +02:00
parent 80630dae58
commit 1fb1e62fb6
2 changed files with 24 additions and 4 deletions

View File

@ -17,7 +17,8 @@
color: #6f737b; color: #6f737b;
} }
.group-header .col-info .fa { .group-header .col-info .fa,
.group-header .col-metadata .fa {
margin-right: 10px; margin-right: 10px;
width: 10px; width: 10px;
} }

View File

@ -66,11 +66,30 @@ ComunicWeb.pages.groups.sections.header = {
var secondColumn = createElem2({ var secondColumn = createElem2({
appendTo: row, appendTo: row,
type: "div", type: "div",
class: "col-md-4" class: "col-md-4 col-info"
}); });
add_p(secondColumn, "Column 2 : Group info"); //Group URL (if any)
if(info.url != "null"){
var urlElem = createElem2({
appendTo: secondColumn,
type: "a",
class: "a",
href: info.url,
innerHTML: "<i class='fa fa-link'></i> " + info.url
});
urlElem.target = "_blank";
}
//Group description (if any)
if(info.url != "null")
createElem2({
appendTo: secondColumn,
type: "div",
innerHTML: "<i class='fa fa-file-text-o'></i> " + info.description
});
@ -78,7 +97,7 @@ ComunicWeb.pages.groups.sections.header = {
var thirdColumn = createElem2({ var thirdColumn = createElem2({
appendTo: row, appendTo: row,
type: "div", type: "div",
class: "col-md-4 col-info" class: "col-md-4 col-metadata"
}); });
//Add join date //Add join date