{% extends 'layout-page.twig' %} {% set page = 'files' %} {% block title %}P3X GitList{% endblock %} {% block content %} {% embed 'breadcrumb.twig' with {breadcrumbs: breadcrumbs} %} {% block right %}
{% if extension == 'svg' %} {% endif %} {% embed 'modal/modal-commit.twig' with {type: 'delete', title: 'Delete', bodyTitle: 'Are you sure to delete this file?' } %} {% block buttons %} {% endblock %} {% endembed %} {% if (fileType != 'image' and fileType != 'markdown') or (enforceCodemirror) %} {% embed 'modal/modal-commit.twig' with { type: 'commit', title: 'Commit', bodyTitle: 'Are you sure to commit this change?' } %} {% block buttons %} {% endblock %} {% endembed %} {% elseif fileType == 'markdown' %} Edit {% endif %}
{% endblock %} {% block left %}
Raw Blame History
{% if (fileType != 'image' and fileType != 'markdown') or enforceCodemirror %} {% endif %} {% if fileType == 'markdown' %} {% if enforceCodemirror %} Markdown rendered {% else %} Markdown code {% endif %} {% endif %}
{% endblock %} {% endembed %}
{% if fileType == 'image' %}
{{ file }}
{% elseif fileType == 'markdown' and enforceCodemirror != true %} {% include 'markdown.twig' with {'filename': file, 'data': blob} %} {% else %}
{{ blob|htmlentities|raw }}
{% endif %} {% if extension == 'svg' %} {% endif %}
{% endblock %}