<table>
	<thead>
		<tr>
			<td class="date">{$absLang['reportHistory']['header']['date']}</td>
			<td class="action">{$absLang['reportHistory']['header']['action']}</td>
			<td class="user">{$absLang['reportHistory']['header']['user']}</td>
		</tr>
	</thead>
	{foreach $reportHistory as $event}
		{if $event}
			<tbody>
				<tr>
					<td class="date">
						<div class="hour">
							{$event['timestamp']|date_format:'H:i'}
                        </div>
						<div class="date">
							{$event['timestamp']|dateTimeFormat}
						</div>
					</td>
					<td class="action">
						{if $event['operation']=="generateReport"}
							{$absLang['reportHistory']['operations']['generateReport']}
						{elseif $event['operation']=="toggleTag"}
							{if $event['payload']['newValue']}
								{$absLang['reportHistory']['operations']['toggleTag_set']|sprintf:$event['payload']['tag']}
							{else}
								{$absLang['reportHistory']['operations']['toggleTag_unset']|sprintf:$event['payload']['tag']}
							{/if}
						{elseif $event['operation']=="loadErrors"}
							{$absLang['reportHistory']['operations']['loadErrors']|sprintf:$event['payload']['fileId']}
						{elseif $event['operation']=="loadFileErrors"}
							{$absLang['reportHistory']['operations']['loadFileErrors']|sprintf:$event['payload']['fileId']}
						{elseif $event['operation']=="downloadFile"}
							{$absLang['reportHistory']['operations']['downloadFile']|sprintf:$event['payload']['fileId']}
						{elseif $event['operation']=="downloadErrors"}
							{$absLang['reportHistory']['operations']['downloadErrors']|sprintf:$event['payload']['fileId']}
						{elseif $event['operation']=="downloadReportArchive"}
							{$absLang['reportHistory']['operations']['downloadReportArchive']}
						{elseif $event['operation']=="uploadReportStart"}
							{$absLang['reportHistory']['operations']['uploadReportStart']|sprintf:$event['payload']['host']}
						{elseif $event['operation']=="uploadReportEnd"}
							{$absLang['reportHistory']['operations']['uploadReportEnd']|sprintf:''}
						{else}
							{$event['operation']}
							{$event['payload']|var_export}
						{/if}
					</td>
					<td class="user">
						{userLabel ref=$event['user']}
					</td>
				</tr>
			</tbody>
		{/if}
	{/foreach}
</table>