...
Code Block |
---|
#macro(renderCustomerSatisfaction) #set ($blockedRecipients = "userX@test.com, userZ@test.com") ##Email addresses to not show for. #set ($currentRecipient = $jemhUtils.getUserEmailAddress($jemhUtils.getUser())) ##Gets the Address of the current recipient #if ($$blockedRecipients!$blockedRecipients.contains($currentRecipient)) ##Checks if the Recipient address can be found within the blockedRecipients variable, if not the following will run #if ($jemhCustomerSatisfactionManager.shouldShowCustomerSatisfactionQuestion($context)) $jemhUtils.setFieldRendered() <tr> <td class="email-content-main mobile-expand "> <table id="actions-pattern"> <tr> <td id="actions-pattern-container"> <div class="jira-customer-satisfaction"> <div class="jira-customer-satisfaction-question"> $messageUtils.getMessage("jira.email.customer.satisfaction.question") </div> <div class="jira-srf-line-break"> </div> <table class="jira-srf-star-table-with-text" width="400"> <tbody> <tr> #foreach($i in [$jemhCustomerSatisfactionManager.minRating .. $jemhCustomerSatisfactionManager.maxRating]) <td class="jira-srf-star-with-text" width="75"> <a href="$jemhCustomerSatisfactionManager.createLink($i)" class="jira-srf-star" target="_blank">☆</a> <p class="jira-srf-star-text">$messageUtils.getMessage("jira.email.customer.satisfaction.$i")</p> </td> #end </tr> </tbody> </table> </div> </td> </tr> </table> </td> </tr> #end #end #end |