{extends file=$smarty.const.SMARTY_LAYOUT_DASHBOARD_WIDGET_DEFAULT}
{block name="localCSS"}
	<style>
		div.lastMinLoad_0 {
			font-size: 1.5em;
		}
		span.criticalDiskSpace {
			color: #fd4444;
		}
	</style>
{/block}
{block name="content"}
	{if $widget['data']['currentLoad']}
	
		<table class="simpleList w100p">
			<thead>
				<tr>
			
			</thead>
			<tbody>
				<tr>
					<td class="text center">
						<div class="lastMinLoad_0">
							{$widgetLang['diskFreeSpace']}
							{if $widget['data']['diskFreeSpace'] < 10}
								<span class="criticalDiskSpace">{$widget['data']['diskFreeSpace']|round:2}</span>
							{else}
								{$widget['data']['diskFreeSpace']|round:2}
							{/if} GB
						</div>
						{foreach $widget['data']['currentLoad'] as $col=> $load}
							<div class="lastMinLoad_{$col}">{$widgetLang['lastMinutesLoad'][$col]}: {round($load, 2)}</div>	
						{/foreach}
					</td>
				</tr>
			</tbody>
		</table>
	{/if}
{/block}
