{% extends "base.html" %}
{% block content %}
  <div class="ui four inverted grey statistics">
    <div class="statistic">
      <div class="value">
        <i class="sitemap icon"></i> {{ total_networks }}
      </div>
      <div class="label">
        Networks
      </div>
    </div>
    <div class="statistic">
      <div class="value">
        <i class="server icon"></i> {{ total_hosts }}
      </div>
      <div class="label">
        Hosts
      </div>
    </div>
    <div class="statistic">
      <div class="value">
        <i class="hashtag icon"></i> {{ total_chanels }}
      </div>
      <div class="label">
        Channels
      </div>
    </div>
    <div class="statistic">
      <div class="value">
        <i class="users icon"></i> {{ total_users }}
      </div>
      <div class="label">
        Users
      </div>
    </div>
  </div>
  <div class="ui five tiny inverted grey statistics">
    <div class="statistic">
      <div class="value">
        <i class="comments  icon"></i> {{ total_messages }}
      </div>
      <div class="label">
        Messages
      </div>
    </div>
    <div class="statistic">
      <div class="value">
        <i class="theater masks icon"></i> {{ total_actions }}
      </div>
      <div class="label">
        Actions
      </div>
    </div>
    <div class="statistic">
      <div class="value">
        <i class="bullhorn icon"></i> {{ total_notices }}
      </div>
      <div class="label">
        Notices
      </div>
    </div>
    <div class="statistic">
      <div class="value">
        <i class="user plus icon"></i> {{ total_joins }}
      </div>
      <div class="label">
        Joins
      </div>
    </div>
    <div class="statistic">
      <div class="value">
        <i class="user slash icon"></i> {{ total_kicks }}
      </div>
      <div class="label">
        Kicks
      </div>
    </div>
  </div>
  <div class="ui six tiny inverted grey statistics">
    <div class="statistic">
      <div class="value">
        <i class="thermometer half alternate icon"></i>
        {{ total_level }}
      </div>
      <div class="label">
        Level
      </div>
    </div>
    <div class="statistic">
      <div class="value">
        <i class="icons">
          <i class="tachometer alternate icon"></i>
          <i class="inverted seedling corner icon"></i>
        </i>
        {{ total_xp_spent }}
      </div>
      <div class="label">
        XP spent
      </div>
    </div>
    <div class="statistic">
      <div class="value">
        <i class="icons">
          <i class="gas pump icon"></i>
          <i class="inverted seedling corner icon"></i>
        </i>
        {{ total_ap_spent }}
      </div>
      <div class="label">
        AP spent
      </div>
    </div>
    <div class="statistic">
      <div class="value">
        <i class="coins icon"></i>
        {{ total_coin }}
      </div>
      <div class="label">
        Coin
      </div>
    </div>
    <div class="statistic">
      <div class="value">
        <i class="icons">
          <i class="coins icon"></i>
          <i class="inverted corner shopping cart icon"></i>
        </i>
        {{ total_coin_spent }}
      </div>
      <div class="label">
        Coin spent
      </div>
    </div>
    <div class="statistic">
      <div class="value">
        <i class="icons">
          <i class="coins icon"></i>
          <i class="inverted corner gift icon"></i>
        </i>
        {{ total_coin_given }}
      </div>
      <div class="label">
        Coin given
      </div>
    </div>
  </div>

  {% if perms.rotbot.add_network %}
    <a href="{% url 'rotbot:add_network' %}" class="ui inverted right floated button">Add</a>
  {% endif %}
  {% if networks %}
    <div class="ui inverted relaxed divided selection list">
      {% for network in networks %}
        <div class="item" onclick="location.href='{% url 'rotbot:network' network.slug %}';">
          <a class ="header" href="{% url 'rotbot:network' network.slug %}">{{ network.name }}</a>
        </div>
      {% endfor %}
    </div>
  {% else %}
    <p>No networks available.</p>
  {% endif %}
{% endblock %}
