{% extends "sysadmin/base.html" %}
{% load seahub_tags i18n %}

{% block cur_info %}tab-cur{% endblock %}

{% block right_panel %}
<h3 class="hd">{% trans "Info" %}</h3>

<dl>
    <dt>{% trans "System Info" %}</dt>
    <dd>{% if is_pro %}
        {% trans "Professional Edition" %} {% if license_dict %} {% trans "expires on" %} {{ license_dict.Expiration}}{% endif %}
        {% else %}
        {% trans "Community Edition" %}
        <a href="http://manual{% if LANGUAGE_CODE == 'zh-cn' %}-cn{% endif %}.seafile.com/deploy_pro/migrate_from_seafile_community_server.html" target="_blank">{% trans "Upgrade to Pro Edition" %}</a>
        {% endif %}
    </dd>

    <dt>{% trans "Libraries" %}</dt>
    <dd>{{repos_count}}</dd>

    {% if is_pro %}
    <dt>{% trans "Active Users" %} / {% trans "Total Users" %} / {% trans "Limits" %}</dt>
    <dd>
        {% if active_users_count %}{{ active_users_count }}{% else %}--{% endif %}
        /
        {% if users_count %}{{ users_count }}{% else %}--{% endif %}
        /
        {% if license_dict %}{{ license_dict.MaxUsers }}{% else %}--{% endif %}
    </dd>
    {% else %}
    <dt>{% trans "Active Users" %} / {% trans "Total Users" %}</dt>
    <dd>
        {% if active_users_count %}{{ active_users_count }}{% else %}--{% endif %}
        /
        {% if users_count %}{{ users_count }}{% else %}--{% endif %}
    </dd>
    {% endif %}

    <dt>{% trans "Groups" %}</dt>
    <dd>{{groups_count}}</dd>

    {% if multi_tenancy %}
    <dt>{% trans "Organizations" %}</dt>
    <dd>{{org_count}}</dd>
    {% endif %}

</dl>
{% endblock %}

