Commit ad014005 authored by Tibor Katelbach's avatar Tibor Katelbach

tweaks

parent 92daf525
......@@ -2637,11 +2637,18 @@ var directory = {
str += '<a href="javascript:" '+ linkParams + ' class="btn-openVoteDetail bg-green btn col-sm-'+btnSize+' "><i class="fa fa-gavel"></i> '+trad.Vote+'</a>';
else if( (params.status == "tovote" || params.status == "amendementAndVote") && params.hasVote !==false )
str += '<a href="javascript:;" '+ linkParams + ' data-coop-section="vote" class="openCoopPanelHtml btn btn-default col-sm-'+btnSize+' "><i class="fa fa-eye"></i> '+trad["See votes"]+'</a>';
if( params.status == "amendementAndVote" || params.status =="amendable" ){
} else {
var btnSize = (params.status == "amendementAndVote") ? "6" : "12";
if( (params.status == "tovote" || params.status == "amendementAndVote") && params.hasVote ===false )
str += '<a href="javascript:" data-toggle="modal" data-target="#modalLogin" class="btn-menu-connect bg-green btn col-sm-'+btnSize+' "><i class="fa fa-gavel"></i> '+trad.Vote+'</a>';
}
if( params.status == "amendementAndVote" || params.status =="amendable" ){
amendCount = (params.amendements) ? " ("+Object.keys(params.amendements).length+")": "";
str += '<a href="javascript:;" '+ linkParams + ' data-coop-section="amendments" class="openCoopPanelHtml btn btn-default text-purple col-sm-6 "><i class="fa fa-list"></i> '+trad.Amendements+amendCount+'</a>';
}
}
str += '</div>';
......@@ -2652,7 +2659,8 @@ var directory = {
//BTN toggle description
str += '<a href="javascript:" data-coop-id="'+ thisId + '" class="btn-openVoteDetail"><i class="text-dark fa fa-arrow-circle-left"></i></a>';
if((params.auth || typeof params.idParentRoom == "undefined") && (params.status == "tovote" || params.status == "amendementAndVote") )
if((params.auth || typeof params.idParentRoom == "undefined")
&& (params.status == "tovote" || params.status == "amendementAndVote") )
{
//str += '<span class="col-xs-12 no-padding"><hr></span>';
......@@ -2709,7 +2717,8 @@ var directory = {
str += '</div>';
});
}
}
str += '</div>';
str += "</div>";
......
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