{literal} {/literal} {if $core.current_role > $core.roles.viewer} {assign var="email_col_count" value="8"} {else} {assign var="email_col_count" value="7"} {/if}
{t}Associated Emails{/t} ({if $emails|@is_array}{$emails|@count}{else}0{/if}) [ {t}Back to Top{/t} ] {if $core.current_role > $core.roles.standard_user} [ {t}Mail Queue Log{/t} ] {/if} [ {get_display_label element_name="support_emails" total=$emails|@count} ]
{if $emails|@count > 0 and $core.current_role > $core.roles.viewer and $core.current_role != $core.roles.customer} {/if} {section name="i" loop=$emails} {cycle values='odd,even' assign="row_class"} {if $core.current_role > $core.roles.viewer and $core.current_role != $core.roles.customer} {/if} {include file="expandable_cell/body.tpl.html" ec_id="email" list_id=$emails[i].composite_id colspan=$email_col_count class=$row_class} {sectionelse} {/section}
{include file="expandable_cell/buttons.tpl.html" ec_id="email"} # {t}Reply{/t} {t}From{/t} {t}Recipients{/t} {t}Received{/t} {t}Subject{/t}
{include file="expandable_cell/buttons.tpl.html" ec_id="email" list_id=$emails[i].composite_id} {$smarty.section.i.iteration} {$emails[i].sup_from|escape:"html"} {if $emails[i].sup_to == ""} {t}sent to notification list{/t} {else} {$emails[i].sup_to|escape:"html"} {/if} {if $emails[i].sup_cc != ""}
{$emails[i].sup_cc|escape:"html"} {/if}
{$emails[i].sup_date} {$emails[i].sup_subject|default:""|escape:"html"} {if $emails[i].sup_has_attachment} {/if}
{t}No associated emails could be found.{/t}
{if $core.current_role > $core.roles.viewer}
{if $ema_id != ""} {/if} {if $emails|@count > 0 and $core.current_role != $core.roles.customer}
{/if}
{/if}