{extends file=$smarty.const.SMARTY_LAYOUT_CONTENT_LIST_TABLE_CURRENT_DATA}

{block name="listing-td-logLevel"}
	<td class="logLevel level-{$rowFields['logLevel']}">{$_LANG['Admin']['Server']['Logs']['logLevels'][{$rowFields['logLevel']}]}</td>
{/block}


{block name="listing-td-message"}
	<td class="message" data-message="{$rowFields['message']|escape:html}">
		<div class='source source-{$rowFields['source']|replace:'/':' source-'}'>
			{if $rowFields['source']=='TINALogger'}
				TINA
			{elseif $rowFields['source']=='FluxInstance'}
				FluX
			{elseif $rowFields['source']=='Disk/'}
				Disk
			{elseif $rowFields['source']=='Disk/TINALogger'}
				Disk/TINA
			{elseif $rowFields['source']=='Disk/FluxInstance'}
				Disk/FluX
			{else}
				{$rowFields['source']}?
			{/if}
		</div>
		
		<div class='message'>
			{$mvcView->listingRenderMessage($rowFields['message'])}
		</div>
	</td>
{/block}


{block name="listing-td-partialStacktrace"}
	<td class="partialStacktrace">
		<div class='stacktrace'>
			{$trace=$mvcView->listingBuildStacktraceParser()->parse($rowFields['stacktrace'])->pickOriginatingSource()}
			<span class="class">{$trace['class']}</span>
		</div>
	</td>
{/block}




{block name="listing-td-addTime"}
	{$dataRepeats=true}
	{if $prevLogSession!=$rowFields['logSession'] || $prevAddTime!=$rowFields['addTime'] || $prevIdUser!=$rowFields['idUser']}
		{$dataRepeats=false}
	{/if}
	
	<td class="{if $dataRepeats}dataRepeats{/if}" data-addTime="{$rowFields['addTime']|escape:html}">
		<div class="addTime">{$rowFields['addTime']|dateTimeFormat:'dateWithHMS'}</div>
		<div class="user">{userLabel ref=$rowFields['idUser']}</div>
	</td>
	
	{$prevAddTime=$rowFields['addTime']}
	{$prevIdUser=$rowFields['idUser']}
{/block}

{block name="listing-td-logSession"}
	{$dataRepeats=true}
	{if $prevLogSession!=$rowFields['logSession']}
		{$dataRepeats=false}
	{/if}
	<td class="logSession {if $dataRepeats}dataRepeats{/if}" style="background-color:{pickUniqueColor key=$rowFields['logSession'] cycles=9};">
		<div class="logSession">
			{$rowFields['logSession']}
		</div>
	</td>
	{$prevLogSession=$rowFields['logSession']}
{/block}
