{if 'y' == $row.certificate_allowed}
{if in_array($row.send_status, array('new'))}
in queue
{elseif in_array($row.send_status, array('processing'))}
sending
{elseif in_array($row.send_status, array('sent', 'failed'))}
{if 'failed' == $row.send_status}
send failed
{/if}
Re-send
{else}
Send
{/if}
{/if}