{% load seahub_tags group_avatar_tags i18n %}
{% if owned_repos %} {# 'repo-list': for repo which has 'repo-delete-btn' #} {% for repo in owned_repos %} {% if not ENABLE_SUB_LIBRARY or not repo.is_virtual %} {% if repo.encrypted %} {% else %} {% endif %} {% if repo.latest_modify %} {% else %} {% endif %} {% endif %} {% endfor %}
{% trans "Name" %} {% trans "Description" %} {% trans "Last Update" %} {% trans "Operations" %}
{% trans {% trans {{ repo.props.name }} {{ repo.props.desc }}{{ repo.latest_modify|translate_seahub_time }}--
{% if show_repo_download_button %} {% endif %}
{% else %}

{% trans "You have not created any libraries" %}

{% trans "You can create a library to organize your files. For example, you can create one for each of your projects. Each library can be synchronized and shared separately." %}

{% endif %}
{% if ENABLE_SUB_LIBRARY and sub_lib_enabled %}
{% if sub_repos %} {% for repo in sub_repos %} {% if repo.encrypted %} {% else %} {% endif %} {% if repo.latest_modify %} {% else %} {% endif %} {% endfor %}
{% trans "Name" %} {% trans "Origin" %} {% trans "Last Update" %} {% trans "Operations" %}
{% trans {% trans {{ repo.name }} {{ repo.abbrev_origin_path }}{{ repo.latest_modify|translate_seahub_time }}--
{% if show_repo_download_button %} {% endif %} {% if repo.is_original_owner %} {% endif %}
{% else %}

{% trans "You have not created any sub-libraries" %}

{% trans "You can create a sub-library from a directory inside a library. A sub-library can be independently synced and shared. Files in the sub-library will be automatically kept in sync with those in the directory of the origin library." %}

{% endif %}
{% endif %}
{% if personal_shared_repos %} {% for repo in personal_shared_repos %} {% if repo.last_modified %} {% else %} {% endif %} {% endfor %}
{% trans "Name" %} {% trans "Description" %} {% trans "Last Update" %} {% trans "Shared By" %} {% trans "Operations" %}
{% if repo.encrypted %} {% trans {% else %} {% if repo.user_perm == 'rw' %} {% trans {% else %} {% trans {% endif %} {% endif %} {{ repo.repo_name }} {{ repo.repo_desc }}{{ repo.last_modified|translate_seahub_time }}--{{ repo.user|email2nickname }} {% if show_repo_download_button %} {% endif %} {% if repo.share_type == 'personal' %} {% endif %}
{% else %}

{% trans "No library is shared to you" %}

{% endif %}
{% if group_repos %} {% for repo in group_repos %} {% if repo.show_group_name %} {% else %} {% endif %} {% if repo.last_modified %} {% else %} {% endif %} {% endfor %}
{% trans "Group" %} {% trans "Name" %} {% trans "Description" %} {% trans "Last Update" %} {% trans "Shared By" %}
{% grp_avatar repo.group.id 20 %} {{ repo.group.group_name }} {% if repo.encrypted %} {% trans {% else %} {% if repo.user_perm == 'rw' %} {% trans {% else %} {% trans {% endif %} {% endif %} {{ repo.repo_name }} {{ repo.repo_desc }}{{ repo.last_modified|translate_seahub_time }}--{{ repo.user|email2nickname }}
{% else %}

{% trans "No library is shared to your groups" %}

{% endif %}
{% trans "Name" %} {% trans "Description" %} {% trans "Last Update" %} {% trans "Operations" %}
{% trans {{ repo.props.name }} {{ repo.props.desc }} {% trans "Just now" %} {% if show_repo_download_button %} {% endif %}
{% include 'snippets/repo_del_popup.html' %}