Commit 80258b97 authored by Raph El's avatar Raph El

Amélioration dda

parent 442ac625
......@@ -2587,6 +2587,25 @@ var directory = {
str += '<a href="javascript:;" class="openCoopPanelHtml" style="text-decoration:none;" '+linkParams+'>'+
'<h4 class="panel-title letter-turq"><i class="fa '+ params.ico + '"></i> '+ name + '</h4></a>';
if( typeof params.producer != "undefined" &&
params.producer != null &&
Object.keys(params.producer).length > 0 ) {
var count = Object.keys(params.producer).length ;
str += trad.proposedBy + " ";
$.each(params.producer, function(kProd,valProd){
var heightImg = ( count > 1 ) ? 35 : 25;
var imgPath = assetPath+'/images/thumb/default_'+valProd.type+'.png';
if(typeof valProd.profilThumbImageUrl != "undefined" && valProd.profilThumbImageUrl != null){
imgPath = "/ph"+valProd.profilThumbImageUrl ;
}
str += '<img src="'+imgPath+'" class="img-circle" width="'+heightImg+'" height="'+heightImg+'" />';
str += " "+valProd.name + " " ;
});
}
// STATE OF THE PROPOSAL
console.log("hasVote ? ", params.hasVote );
......
......@@ -584,6 +584,7 @@ var trad = {
"generaltermsofuse": "<?php echo Yii::t("common","general terms of use") ?>",
"yourcommentisempty": "<?php echo Yii::t("comment","Your comment is empty") ?>",
"manageby": "<?php echo Yii::t("common","Manage by") ?>",
"proposedBy" : "<?php echo Yii::t("common","Proposed by") ?>",
};
var tradDynForm = {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment