{% extends 'base.html.twig' %} {% block css %} {{ parent() }} {% if theme_settings.name == 'dark' %} {% else %} {% endif %} {% endblock %} {% block title %}{{ gist.title ? gist.title : 'gist.untitled'|trans }} - {{ 'gist.action.history'|trans }}{% endblock %} {% block body %}
{{ gist.title ? gist.title : 'gist.untitled'|trans }}
{% for commit in history %}

{{ commit.commit|slice(0, 10) }} {% if loop.first %}init{% endif %} {% if not loop.first %} diff {% endif %}

{{ commit.date|date('date.format'|trans) }}

{% if not loop.first %}
{% if not gist.cipher %}{{ commit.diff }}{% endif %}
{% endif %}
{% if not loop.last %}
{% endif %} {% endfor %}
{% endblock %} {% block js %} {{ parent() }} {% if gist.cipher %} {% endif %} {% endblock %}