{% extends 'layout-page.twig' %} {% set page = 'files' %} {% block title %}P3X GitList{% endblock %} {% block content %} {% embed 'breadcrumb.twig' with {breadcrumbs: breadcrumbs } %} {% block left %}
{% embed 'modal/modal-commit.twig' with {type: 'new', title: 'New file', bodyTitle: 'Are you sure to add a new file or directory?' } %} {% block form %}
{% endblock %} {% block buttons %} {% endblock %} {% endembed %} {% embed 'modal/modal-commit.twig' with {enctype: 'multipart/form-data', type: 'new-binary', title: 'New binary', bodyTitle: 'Are you sure to add a new binary file?' } %} {% block form %}

{% endblock %} {% block buttons %} {% endblock %} {% endembed %}
{% endblock %} {% endembed %} {% if files is not empty %} {% if parent is not null %} {% endif %} {% for file in files %} {% endfor %}
Name Mode Size
{% if not parent %} .. {% else %} .. {% endif %}
{%- if file.type == "folder" or file.type == "symlink" -%}   {{ file.name }} {%- elseif file.type == "module" -%}   {{ file.name }} @ {{ file.shortHash }} {%- else -%}   {{ file.name }} {%- endif -%} {{ file.mode }} {% if file.size %}{{ (file.size / 1024) | number_format }} kb{% endif %}
{% else %}

This repository is empty.

{% endif %} {% if readme is defined and readme is not empty %} {% include 'markdown.twig' with {'filename': readme.filename, 'data': readme.content} %} {% endif %} {% endblock %}