{% 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?
If you add a slash to the end of the "filename", you create a directory, otherwise you create a file.
Please, make sure you use a relative path.


Note: The filename is not created on the current tree browser you are, but that actual root of the repo.', wrapForm: true } %} {% 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?', wrapForm: true } %} {% 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 %}