<#assign scoreValue=0 /> <#assign ratingCount=0 /> <#assign like=0 /> <#assign dislike=0 /> <#if rating??> <#assign scoreValue=rating.scoreValue /> <#assign ratingCount=rating.ratingCount /> <#assign like=rating.scoreLike /> <#assign dislike=rating.scoreDislike /> <#assign ratingValue=rating.ratingValue /> <#if show == "all" || show == "vote"> <@cText> <#if scoreValue lt 0> <@cImg src='images/local/skin/plugins/extend/modules/rating/vote_against.png' alt='#i18n{module.extend.rating.rating.labelVoteAgainst}' id='extend-rating-score-${idExtendableResource!}' class='' params='title="#i18n{module.extend.rating.rating.labelVoteAgainst}"' /> ${scoreValue} <#else> <@cImg src='images/local/skin/plugins/extend/modules/rating/vote_for.png' alt='#i18n{module.extend.rating.rating.labelScore}' id='extend-rating-score-${idExtendableResource!}' class='' params='title="#i18n{module.extend.rating.rating.labelScore}"' /> ${scoreValue} (${ratingCount}) <@cText>#i18n{module.extend.rating.rating.labelLike} : ${like} <@cText>#i18n{module.extend.rating.rating.labelDislike} : ${dislike} <#if ratingValue?? && ratingValue != 0> <@cText> #i18n{module.extend.rating.rating.labelLastVote} : <#if ratingValue == 1> <@cImg src='images/local/skin/plugins/extend/modules/rating/vote_for.png' alt='#i18n{module.extend.rating.rating.labelVoteFor}' id='extend-rating-last-vote-${idExtendableResource!}' class='' params='title="#i18n{module.extend.rating.rating.labelVoteFor}"' /> <#elseif ratingValue == -1> <@cImg src='images/local/skin/plugins/extend/modules/rating/vote_against.png' alt='#i18n{module.extend.rating.rating.labelVoteAgainst}' id='extend-rating-last-vote-${idExtendableResource!}' class='' params='title="#i18n{module.extend.rating.rating.labelVoteAgainst}"' /> <#if canDeleteVote!false> <#list ratingList![] as rat> <@cForm action='jsp/site/Portal.jsp?page=extend-rating&action=doCancelRating' class='extend-rating-cancel mb-m'> <@cInput type='hidden' name='idExtendableResource' value='${idExtendableResource!}' class='' /> <@cInput type='hidden' name='extendableResourceType' value='${extendableResourceType!}' class='' /> <@cInput type='hidden' name='ratingValue' value='${rat.ratingValue?c}' class='' /> <@cInput type='hidden' name='_csrftoken' value='${cancelVoteToken!}' class='' /> <@cBtn label='#i18n{module.extend.rating.rating.labelCancelVote}' class='secondary' /> <#if ( show == "all" || show == "actionVote" ) && (canVote!false)> <@cForm action='jsp/site/Portal.jsp?page=extend-rating&action=doRating' class='extend-rating-vote mb-m'> <@cInput type='hidden' name='idExtendableResource' value='${idExtendableResource!}' class='' /> <@cInput type='hidden' name='extendableResourceType' value='${extendableResourceType!}' class='' /> <@cInput type='hidden' name='_csrftoken' value='${voteToken!}' class='' /> <@cText>#i18n{module.extend.rating.rating.labelVote} : <@cBtn label='' class='link' params='name="ratingValue" value="-1" title="#i18n{module.extend.rating.rating.labelVoteAgainst}"'> <@cImg src='images/local/skin/plugins/extend/modules/rating/vote_against.png' alt='#i18n{module.extend.rating.rating.labelVoteAgainst}' id='extend-rating-vote-against-${idExtendableResource!}' class='' /> <@cBtn label='' class='link' params='name="ratingValue" value="1" title="#i18n{module.extend.rating.rating.labelVoteFor}"'> <@cImg src='images/local/skin/plugins/extend/modules/rating/vote_for.png' alt='#i18n{module.extend.rating.rating.labelVoteFor}' id='extend-rating-vote-for-${idExtendableResource!}' class='' />