From 6ab827bf9415a09a8fef7244d528832837aaff8a Mon Sep 17 00:00:00 2001
From: Simon Vieille
{{ form_errors(form.content) }} - {{ form_widget(form.content) }} + + {% set class = 'form-control' %} + + {% if gist.cipher %} + {% set class = class ~ ' cipher-editor' %} + {% endif %} + + {{ form_widget(form.content, {attr: {class: class}}) }}
@@ -29,3 +36,13 @@ {% endblock %} + +{% block js %} + {% if gist.cipher %} + + {% endif %} + + {{ parent() }} +{% endblock %} diff --git a/src/Gist/Resources/views/View/embed.html.twig b/src/Gist/Resources/views/View/embed.html.twig index c7f65a2..27e3056 100644 --- a/src/Gist/Resources/views/View/embed.html.twig +++ b/src/Gist/Resources/views/View/embed.html.twig @@ -50,14 +50,14 @@
-
- {{ commit.commit|slice(0, 10) }}
+
+
+ {{ commit.commit|slice(0, 10) }}
+
+
+ {% if loop.first %}init{% endif %}
+
+ {% if not loop.first %}
+
+ diff
+ {% endif %}
+
+ {{ commit.date|date('date.format'|trans) }}
+
- {{ commit.date|date('date.format'|trans) }}
-
- {% endif %}
- {% endfor %}
-
+ {% endif %}
+ {% endfor %}
+