{% extends ../base.html %} {% block meta %} {% end %} {% block title %}Crafty Controller - {{ translate('dashboard', 'dashboard') }}{% end %} {% block content %}
{{ translate('dashboard', 'host') }}

{{ translate('dashboard', 'cpuUsage') }}: {{ data.get('hosts_data').get('cpu_usage') }}

{{ translate('dashboard', 'memUsage') }}: {{ data.get('hosts_data').get('mem_percent') }}%

{{ translate('dashboard', 'servers') }}

{{ data['server_stats']['total'] }}

{{ data['server_stats']['running'] }} {{ translate('dashboard', 'online').lower() }}

{{ data['server_stats']['stopped'] }} {{ translate('dashboard', 'offline').lower() }}

{{ translate('dashboard', 'players') }}

{{ data['num_players'] }}

35 {{ translate('dashboard', 'max') }}

10 {{ translate('dashboard', 'avg') }}

 {{ translate('dashboard', 'allServers') }}

{% if len(data['servers']) > 0 %}
{% end %}
{% if len(data['servers']) == 0%}

{{ translate('dashboard', 'welcome') }}


{{ translate('dashboard', 'no-servers') }} {{ translate('dashboard', 'newServer') }}.
{% end %} {% if len(data['servers']) > 0 %} {% for server in data['servers'] %} {% end %}
{{ translate('dashboard', 'server') }} {{ translate('dashboard', 'actions') }} {{ translate('dashboard', 'cpuUsage') }} {{ translate('dashboard', 'memUsage') }} {{ translate('dashboard', 'world') }} {{ translate('dashboard', 'players') }} {{ translate('dashboard', 'status') }}
{{ server['server_data']['server_name'] }} {% if server['user_command_permission'] %} {% if server['stats']['running'] %}       {% elif server['stats']['updating']%} {{ translate('serverTerm', 'updating') }} {% elif server['stats']['waiting_start']%} {{ translate('dashboard', 'starting') }} {% else %}       {% end %} {% end %}
{{server['stats']['cpu']}}%
{{server['stats']['mem_percent']}}% - {% if server['stats']['mem'] == 0 %} 0 MB {% else %} {{server['stats']['mem']}} {% end %}
{{ server['stats']['world_name'] }} : {{ server['stats']['world_size'] }} {% if server['stats']['int_ping_results'] %} {{ server['stats']['online'] }} / {{ server['stats']['max'] }} {{ translate('dashboard', 'max') }}
{% if server['stats']['desc'] != 'False' %} {{ server['stats']['desc'] }}
{% end %} {% if server['stats']['version'] != 'False' %} {{ server['stats']['version'] }} {% end %} {% end %}
{% if server['stats']['running'] %} {{ translate('dashboard', 'online') }} {% else %} {{ translate('dashboard', 'offline') }} {% end %}
{% end %}
{% end %} {% block js %} {% end %}