{$_logGroupIteration = 0}
{foreach $groupedLogs as $groupDate => $logGroup}
{if count($logGroup.items)}
{if !$isLazy || ($isLazy && $_logGroupIteration > 0)}
{if ($l.action == 'return' || $l.action == 'forward' || $l.action == 'add') && $l.assigned_contact_id}
{/if}
{* ACTION AUTHOR *}
{$l.contact.name|escape}
{if $l.action == 'edit' || $l.action == 'comment' || $l.action == 'forward' || $l.action == 'return' || $l.action == 'add' || ($l.action == '' && $l.after_status_id == -1)}
{$l.action_name}
{/if}
{if $l.action == 'return' || $l.action == 'forward' || $l.action == 'add'}
{if $l.assigned_contact_id}
{$l.assigned_contact.name|escape}
{else}
[`Unassigned`]
{/if}
{/if}
{$l.create_datetime|wa_datetime:"humandatetime"}
{* TASK TITLE & STATUS *}
{if 1 || $l.status_changed}
{if isset($l.before_status_id) && $l.before_status_id != $l.after_status_id}
{tasksHelper::statusNameHTML($l.before_status_id)}
→
{/if}
{tasksHelper::statusNameHTML($l.after_status_id)}
{/if}
{$_task = $l.task|default:null}
{if $_task}
{$_project = $_task.project|default:null}
{if $_project}
{$_task_str_id = $_task.project_id|cat:'.':$_task.number}
{else}
{$_task_str_id = $_task.number}
{/if}
{$_task_str_id}{if !empty($_task.name)}: {$_task.name|escape}{/if}
{else}
{/if}
{* LOG ITEM CORE *}
{if !empty($l.text)}
{/if}
{if !empty($l.task.project.icon_html)}
{$_task_number = '#/task/'|cat:$l.task.project_id|cat:'.'|cat:$l.task.number}
{$l.task.project.icon_html}
{/if}
{/strip}{/foreach}
{/if}
{/foreach}
{$logGroup.group|escape}
{/if} {$_logGroupIteration=$_logGroupIteration+1} {** @var tasksApiLogDto $l **} {foreach $logGroup.items as $l}{strip}{tasksTask::formatText($l.text)}
{/if}
{* ATTACHMENTS *}
{$log_attachments = ['files' => [], 'images' => []]} {* !!! *}
{if $log_attachments.files || $log_attachments.images}
{if $log_attachments.images}
{foreach $log_attachments.images as $image}
{/foreach}
{/if}
{if $log_attachments.files}
{$image.name|escape}
{foreach $log_attachments.files as $file}
{/if}
{$file.name|escape}
{$file.size|wa_format_file_size}
{/foreach}
{if $click_to_load_more && $next_page_url}
{sprintf("[`%s of %d`]", _w('%d record','%d records', $offset + $count), $total_count)}
{/if}