{** @var array $data **} {** @var tasksTask $task **} {foreach $data.tasks as $task} {* PRIORITY *} {$_priority_class_array = [ "-1" => "is-low", "0" => "is-normal", "1" => "is-high", "2" => "is-urgent", "3" => "is-onfire" ]} {$_priority_icon = ""} {if !empty($task.priority)} {if $task.priority == '1'} {$_priority_icon = ""} {/if} {if $task.priority == '2'} {$_priority_icon = ""} {/if} {/if}
{if !empty($task.milestone.name)} {$task.milestone.name|escape|truncate:24} {else} {$task.project.name|escape|truncate:24} {/if} {* DUE *} {if !empty($task.due_date)} {* manually set due date overrides milestone general due date *} {wa_date('humandate', $task.due_date, waDateTime::getDefaultTimezone())|escape} {else if !empty($task.milestone.due_date)} {wa_date('humandate', $task.milestone.due_date, waDateTime::getDefaultTimezone())|escape} {/if}