${_("Hardware status")}
% if not c.status['cpu'] is None:
${_('CPU')}
% else:
${_('Error reading CPU status')}
% endif
% if c.status['mem']['total']:
${_('Total: %s') % h.format_byte_size(c.status['mem']['total'])}
${_('Used: %s') % h.format_byte_size(c.status['mem']['used'])}
${_('Free: %s') % h.format_byte_size(c.status['mem']['free'])}
% else:
${_('Error reading memory status.')}
% endif
${_('Hard disks')}
% for disk in c.status['partitions']:
${disk['device']}
${disk['mountpoint']}
${_('Total: %s') % h.format_byte_size(disk['total'])}
${_('Used: %s') % h.format_byte_size(disk['used'])}
${_('Free: %s') % h.format_byte_size(disk['free'])}
% endfor
% if not c.status['partitions']:
${_('Error reading disk information')}
% endif
${_('Network')}
% if c.status['net']:
${_('Nic')}
${_('Sent')}
${_('Received')}
% endif
% for card in c.status['net']:
% if c.status['net'][card]['bytes_sent'] and c.status['net'][card]['bytes_recv']:
${card}
${h.format_byte_size(c.status['net'][card]['bytes_sent'])}
${h.format_byte_size(c.status['net'][card]['bytes_recv'])}
% endif
% endfor
% if not c.status['net']:
${_('Error reading network interface information')}
% endif