diff --git a/templates/security/login.html.twig b/templates/security/login.html.twig index c0139d7dfb..77e7277662 100644 --- a/templates/security/login.html.twig +++ b/templates/security/login.html.twig @@ -63,69 +63,7 @@ {% endblock %} {% block body %} -
- {% if post_form is defined %} - {{ form_start(post_form) }} -
-
-
- {{ form_label(post_form.to) }} -
-
- {{ form_widget(post_form.to) }} -
-
-
-
- {{ form_row(post_form.visibility) }} -
-
-
- {{ form_row(post_form.content) }} -
-
-
-
- {{ form_widget(post_form.attachments) }} - -
-
- {{ form_row(post_form.post) }} -
-
-
-
- {{ form_end(post_form) }} - {% endif %} -
-
- -
-
- {% if notes is defined and notes is not empty %} - {% for note in notes %} - {% set id = note.getId() - 1 %} - {% include '/note/view.html.twig' with {'note': note, 'have_user': have_user} only %} - {% endfor %} - {% else %} -

{% trans %}No notes here.{% endtrans %}

- {% endif %} -
-
-
-
-
-{% endblock body %} + {% include '/security/public_stream.html.twig' with {'page': 'login'} %} +{% endblock %} {% block javascripts %}{% endblock %} diff --git a/templates/security/public_stream.html.twig b/templates/security/public_stream.html.twig new file mode 100644 index 0000000000..3531058fde --- /dev/null +++ b/templates/security/public_stream.html.twig @@ -0,0 +1,63 @@ +
+ {% if post_form is defined %} + {{ form_start(post_form) }} +
+
+
+ {{ form_label(post_form.to) }} +
+
+ {{ form_widget(post_form.to) }} +
+
+
+
+ {{ form_row(post_form.visibility) }} +
+
+
+ {{ form_row(post_form.content) }} +
+
+
+
+ {{ form_widget(post_form.attachments) }} + +
+
+ {{ form_row(post_form.post) }} +
+
+
+
+ {{ form_end(post_form) }} + {% endif %} +
+
+ +
+
+ {% if notes is defined and notes is not empty %} + {% for note in notes %} + {% set id = note.getId() - 1 %} + {% include '/note/view.html.twig' with {'note': note, 'have_user': have_user} only %} + {% endfor %} + {% else %} +

{% trans %}No notes here.{% endtrans %}

+ {% endif %} +
+
+
+
+
diff --git a/templates/security/register.html.twig b/templates/security/register.html.twig index 302915de8a..26efe231cf 100644 --- a/templates/security/register.html.twig +++ b/templates/security/register.html.twig @@ -39,69 +39,7 @@ {% endblock %} {% block body %} -
- {% if post_form is defined %} - {{ form_start(post_form) }} -
-
-
- {{ form_label(post_form.to) }} -
-
- {{ form_widget(post_form.to) }} -
-
-
-
- {{ form_row(post_form.visibility) }} -
-
-
- {{ form_row(post_form.content) }} -
-
-
-
- {{ form_widget(post_form.attachments) }} - -
-
- {{ form_row(post_form.post) }} -
-
-
-
- {{ form_end(post_form) }} - {% endif %} -
-
- -
-
- {% if notes is defined and notes is not empty %} - {% for note in notes %} - {% set id = note.getId() - 1 %} - {% include '/note/view.html.twig' with {'note': note, 'have_user': have_user} only %} - {% endfor %} - {% else %} -

{% trans %}No notes here.{% endtrans %}

- {% endif %} -
-
-
-
-
-{% endblock body %} + {% include '/security/public_stream.html.twig' with {'page': 'register'} %} +{% endblock %} {% block javascripts %}{% endblock %}