{namespace JIRA.Templates.LicenseBanner} /** * Renders a banner for license expiry. * * @param days to license expiry * @param mac the my.atlassian.com URL. * @param sales the sales e-mail address. */ {template .expiryBanner} {let $renewTag}{/let} {let $end}{/let} {let $mailTag}{/let} {call aui.message.warning} {param content}
{if $days < 0} {getText('admin.license.banner.expired', $renewTag, $end, $mailTag, $end)|noescape} {elseif $days == 0} {getText('admin.license.banner.expire.today', $renewTag, $end, $mailTag, $end)|noescape} {else} {getText('admin.license.banner.expire.soon', $days, $renewTag, $end, $mailTag, $end)|noescape} {/if}
{/param} {param isCloseable: $days > 7/} {param id: 'license-banner'/} {/call} {/template} /** * Renders a banner for license maintenance expiry. * * @param mac the url of my.atlassian.com * @param days to maintenance expiry. */ {template .maintenanceBanner} {let $renewTag}
{/let} {let $end}{/let} {let $later}{/let} {let $never}{/let} {call aui.message.warning} {param content}
{if $days < 0} {getText('admin.license.banner.maintenance.expired', $renewTag, $end, $later, $end, $never, $end)|noescape} {elseif $days == 0} {getText('admin.license.banner.maintenance.expires.today', $renewTag, $end, $later, $end, $never, $end)|noescape} {else} {getText('admin.license.banner.maintenance.expires.soon', $days, $renewTag, $end, $later, $end, $never, $end)|noescape} {/if}
{/param} {param id: 'license-banner'/} {/call} {/template}