{% extends 'smartshare/base.html' %} {% block title %}{{ address }}{% endblock %} {% block body %}

{{ address }} {{ user }}
{% if user.is_authenticated %} {% if user.is_superuser %} {% if location.can_up_a or location.can_down_a %}
{% endif %} {% if location.can_up_a %} upload {% endif %} {% if location.can_down_a %} zip tar tar.gz tar.bz2 {% endif %} {% if location.can_up_a or location.can_down_a %}
{% endif %} {% else %} {% if location.can_up_u or location.can_down_u %}
{% endif %} {% if location.can_up_u %} upload {% endif %} {% if location.can_down_u %} zip tar tar.gz tar.bz2 {% endif %} {% if location.can_up_u or location.can_down_u %}
{% endif %} {% endif %} {% else %} {% if location.can_up_p or location.can_down_p %}
{% endif %} {% if location.can_up_p %} upload {% endif %} {% if location.can_down_p %} zip tar tar.gz tar.bz2 {% endif %} {% if location.can_up_p or location.can_down_p %}
{% endif %} {% endif %}

Directories {{ dirs|length }} {% if user.is_authenticated %} {% if user.is_superuser %} {% if location.can_crt_a %} Add {% endif %} {% else %} {% if location.can_crt_u %} Add {% endif %} {% endif %} {% else %} {% if location.can_crt_p %} Add {% endif %} {% endif %}
{% if user.is_authenticated %} {% if user.is_superuser %} {% for dir in dirs %}
{{ dir }}
{% if location.can_del_a %} Delete {% endif %}
{% endfor %} {% else %} {% for dir in dirs %}
{{ dir }}
{% if location.can_del_a %} Delete {% endif %}
{% endfor %} {% endif %} {% else %} {% for dir in dirs %}
{{ dir }}
{% if location.can_del_a %} Delete {% endif %}
{% endfor %} {% endif %}

Files {{ files|length }} {% if user.is_authenticated %} {% if user.is_superuser %} {% if location.can_crt_a %} Add {% endif %} {% else %} {% if location.can_crt_u %} Add {% endif %} {% endif %} {% else %} {% if location.can_crt_p %} Add {% endif %} {% endif %}
{% if user.is_authenticated %} {% if user.is_superuser %} {% for file in files %}
{{ file.name }} {{ file.size|filesizeformat }}
{% if location.can_del_a %} Delete {% endif %}
{% endfor %} {% else %} {% for file in files %}
{{ file.name }} {{ file.size|filesizeformat }}
{% if location.can_del_a %} Delete {% endif %}
{% endfor %} {% endif %} {% else %} {% for file in files %}
{{ file.name }} {{ file.size|filesizeformat }}
{% if location.can_del_a %} Delete {% endif %}
{% endfor %} {% endif %}

{% endblock %}