{% macro m_breadcrumbs2(breadcrumbs) %} {% for obj in breadcrumbs[0:-1] %} {{ obj.label }} / {% endfor %} {{ breadcrumbs[-1].label }} {% endmacro %} {% macro m_docs_table(objects, edit=True) %} {%- if objects %}
{{ csrf_token }} {%- if edit %}
{%- for action in actions.for_category('documents:folder-listing') %}
{{ action.render() }}
{%- endfor %}
{% endif %}
{%- for obj in objects %} {%- endfor %}
type title for sorting {{ _("Title") }} {{ _("Size") }} {{ _("Owner") }} date {{ _("Age") }}
{{ obj.object_type }} {{ obj.title }} {%- if obj.object_type == 'folder' %} {{ obj.filtered_children|length }}{%- endif %} {{ obj.title }} {%- if obj.is_document %} {{ obj.content_length|filesize }} {%- endif %} {{ obj.owner.name }} {{ obj.created_at.isoformat() }} {{ obj.created_at|age }}
type title for sorting {{ _("Title") }} {{ _("Size") }} {{ _("Owner") }} date {{ _("Age") }}
{%- deferJS %} {%- enddeferJS %} {%- else %}

{{ _("This folder is currently empty. Why don't you upload some content?") }}

{%- endif %}
{% endmacro %}