{$lastonline_limit = ConfigHelper::getConfig('phpui.lastonline_limit')}
<TABLE class="lmsbox-inner lms-ui-background-cycle" id="table">
    <THEAD>
	<TR>
		<td class="bold nobr">
			{if $layout.module == 'ewxnodelist'}
				{t a=$customernodes|size}Channel Nodes ($a):{/t}
			{else}
				{t a=$customernodes|size}Customer Nodes ($a):{/t}
			{/if}
		</td>
	</TR>
    </THEAD>
    <TBODY>
	{foreach $customernodes as $node}
	<tr class="highlight{if ! $node.access} blend{/if}" data-target-url="?m=nodeinfo&id={$node.id}">
		<td>
			{if $node.lastonline}
				{if ($smarty.now-$node.lastonline) > $lastonline_limit}
					<i class="lms-ui-icon-nodeoff" {tip a=$node.lastonlinedate text="Last online: \$a"}></i>
				{else}
					<i class="lms-ui-icon-nodeon" {tip a="on-line" text="Last online: \$a"}></i>
		        {/if}
			{else}
				<i class="lms-ui-icon-nodeunk"></i>
			{/if}
			<B>{$node.name}</B><BR>
			{$node.ip} {if $node.ip_pub!="0.0.0.0"} ({$node.ip_pub}) {/if} / {$node.mac}<BR>
			{$node.info|truncate:40:"&hellip;":true}
		</TD>
	</TR>
	{foreachelse}
	<tr>
		<td class="empty-table">
			{trans("No nodes found in database.")}
		</td>
	</tr>
	{/foreach}
    </TBODY>
</TABLE>
