{ $method->exe("ticket","user_view") } { if ($method->result == FALSE) } { $block->display("core:method_error") } {/if} {if $ticket != false} { if $ticket.status == '3' && $smarty.const.SESS_LOGGED == false }
{translate module=ticket} user_pending_verify {/translate}

{translate} account_login {/translate}
{translate} username {/translate}
{translate} password {/translate}
{elseif $ticket.status == '3' && $smarty.const.SESS_LOGGED == true} { $method->exe("ticket","pending_verify") } {$pending_status} {else}
{translate module=ticket} title_view {/translate}
{if $show_static_var != false} {foreach from=$static_var item=record} {/foreach} {/if} { if $ticket.status != "2" } {/if}
{translate module=ticket} field_date_last {/translate} {$list->date_time($ticket.date_last)}
{translate module=ticket} field_status {/translate} { if $ticket.status == '0' } {translate module=ticket} status_open {/translate} { elseif $ticket.status == '1' } {translate module=ticket} status_hold {/translate} { elseif $ticket.status == '2' } {translate module=ticket} status_close {/translate} { elseif $ticket.status == '3' } {translate module=ticket} status_pending {/translate} { /if }
{translate module=ticket} field_priority {/translate} { if $ticket.priority == '0' } {translate module=ticket} priority_standard {/translate} { elseif $ticket.priority == '1' } {translate module=ticket} priority_medium {/translate} { elseif $ticket.priority == '2' } {translate module=ticket} priority_high {/translate} { elseif $ticket.priority == '3' } {translate module=ticket} priority_emergency {/translate} { /if }
{$record.name} {$record.html}
{if $show_static_var != false} {foreach from=$static_var item=record} {/foreach} {/if}
  {$list->date_time($ticket.date_orig)}
{translate module=ticket} field_subject {/translate} {$ticket.subject}
{translate module=ticket} field_body {/translate} {$ticket.body|linkalize|replace:" ":"
"}

{if $ticket_reply != false} {foreach from=$ticket_reply item=reply}
{if $show_static_var != false} {foreach from=$static_var item=record} {/foreach} {/if}
  {if $reply.staff_id > 1 } {$list->date_time($reply.date_orig)} {else} {$list->date_time($reply.date_orig)} {/if}
{if $reply.staff_id < 1 } {translate module=ticket} user_wrote {/translate} {else} {translate module=ticket} staff_wrote {/translate} {/if} {if $reply.staff_id > 1 } {$reply.message|linkalize|replace:"\r\n":"
"}
{else} {$reply.message|linkalize|replace:"\r\n":"
"} {/if}

{/foreach} {/if}
{if $show_static_var != false} {foreach from=$static_var item=record} {/foreach} {/if}
{ if $ticket.status != "2" } {translate module=ticket} user_add_response {/translate} {else} {translate module=ticket} user_reopen_response {/translate} {/if}
{html_button}

{/if} {else} {$block->display("ticket:auth")} {/if}