{* +--------------------------------------------------------------------+ | Copyright CiviCRM LLC. All rights reserved. | | | | This work is published under the GNU AGPLv3 license with some | | permitted exceptions and without any warranty. For full license | | and copyright information, see https://civicrm.org/licensing | +--------------------------------------------------------------------+ *} {if $context EQ 'Search'} {include file="CRM/common/pager.tpl" location="top"} {/if} {strip} {if !$single and $context eq 'Search' } {/if} {foreach from=$columnHeaders item=header} {/foreach} {counter start=0 skip=1 print=false} {foreach from=$rows item=row} {if !$single } {if $context eq 'Search' } {assign var=cbName value=$row.checkbox} {/if} {/if} {/foreach}
{$form.toggleSelect.html} {if $header.sort} {assign var='key' value=$header.sort} {$sort->_response.$key.link} {else} {$header.name} {/if}
{$form.$cbName.html} {$row.activity_type} {if $row.repeat}
{$row.repeat} {/if}
{$row.activity_subject} {if !$row.source_contact_id} n/a {elseif $contactId NEQ $row.source_contact_id} {$row.source_contact_name} {else} {$row.source_contact_name} {/if} {if $row.mailingId} {$row.recipients} {elseif $row.recipients} {$row.recipients} {elseif !$row.target_contact_name} n/a {elseif $row.target_contact_name} {assign var="showTarget" value=0} {foreach from=$row.target_contact_name item=targetName key=targetID} {if $showTarget < 5} {if $showTarget}; {/if}{$targetName} {assign var="showTarget" value=$showTarget+1} {/if} {/foreach} {if count($row.target_contact_name) > 5}({ts}more{/ts}){/if} {/if} {if !$row.assignee_contact_name} n/a {elseif $row.assignee_contact_name} {assign var="showAssignee" value=0} {foreach from=$row.assignee_contact_name item=assigneeName key=assigneeID} {if $showAssignee < 5} {if $showAssignee}; {/if}{$assigneeName} {assign var="showAssignee" value=$showAssignee+1} {/if} {/foreach} {if count($row.assignee_contact_name) > 5}({ts}more{/ts}){/if} {/if} {$row.activity_date_time|crmDate} {$row.activity_status} {$row.action|replace:'xx':$row.id}
{/strip} {include file="CRM/Case/Form/ActivityToCase.tpl"} {if $context EQ 'Search'} {include file="CRM/common/pager.tpl" location="bottom"} {/if}