diff --git a/public/assets/css/login/login.css b/public/assets/css/security/security.css similarity index 89% rename from public/assets/css/login/login.css rename to public/assets/css/security/security.css index e2acfd42a5..6a4de341b2 100644 --- a/public/assets/css/login/login.css +++ b/public/assets/css/security/security.css @@ -1,14 +1,12 @@ .content { display: flex; flex-wrap: wrap; + margin-top: calc(4 * var(--main-size)); justify-content: center; align-items: center; - margin-right: var(--small-size); - margin-left: var(--small-size); - margin-bottom: var(--unit-size); -} -.navbar .left-nav > a { - font-size: var(--unit-size); + margin-left: 1%; + margin-right: 1%; + margin-bottom: 1%; } form { font-size: var(--medium-size); diff --git a/templates/security/login.html.twig b/templates/security/login.html.twig index be622acf70..306c846b57 100644 --- a/templates/security/login.html.twig +++ b/templates/security/login.html.twig @@ -2,130 +2,45 @@ {% block stylesheets %} {{ parent() }} - + {% endblock %} {% block title %}Log in!{% endblock %} -{% block left %} -
- -
- -
- -
-{% 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 %} + {% if app.user %} +
+ You are logged in as {{ app.user.username }}, Logout +
+ {% endif %} +
+ + + +
-
+ + + +
+ +
+ + +
-
-
{% endblock body %} {% block javascripts %}{% endblock %} diff --git a/templates/security/public_stream.html.twig b/templates/security/public_stream.html.twig deleted file mode 100644 index 3531058fde..0000000000 --- a/templates/security/public_stream.html.twig +++ /dev/null @@ -1,63 +0,0 @@ -
- {% 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 b1b96b2009..4ad69735d6 100644 --- a/templates/security/register.html.twig +++ b/templates/security/register.html.twig @@ -2,104 +2,19 @@ {% block stylesheets %} {{ parent() }} - + {% endblock %} {% block title %}Register{% endblock %} -{% block left %} -
- -
- -
- -
-{% 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 %} -
-
-
+
+ {{ form(registration_form) }}
{% endblock body %}