From fbeb793f6db383620a9ba6ddb26a53d917bee96b Mon Sep 17 00:00:00 2001 From: ghost Date: Wed, 4 Oct 2023 19:02:25 +0300 Subject: [PATCH] move containers inside the main_content block --- templates/default/user/info.html.twig | 152 ++++++++--------- templates/default/user/profile.html.twig | 202 ++++++++++++----------- 2 files changed, 179 insertions(+), 175 deletions(-) diff --git a/templates/default/user/info.html.twig b/templates/default/user/info.html.twig index d837cd5..9d3df05 100644 --- a/templates/default/user/info.html.twig +++ b/templates/default/user/info.html.twig @@ -1,88 +1,90 @@ {% extends 'default/layout.html.twig' %} {% block title %}{{ 'User'|trans }} #{{ user.id }} - {{ name }}{% endblock %} {% block main_content %} -
- {{ 'identicon'|trans }} -
-

{{ 'Profile'|trans }}

- - - - - - {% if user.address %} +
+
+ {{ 'identicon'|trans }} +
+

{{ 'Profile'|trans }}

+
{{ 'Common'|trans }}
+ - - + + {% if user.address %} + + + + + + + + + {% else %} + + + + + {% endif %} + + + + + + - - + + - {% else %} - - + + - {% endif %} - - - - - - - - - - - - - - - - - - - - - - - - - - - -
{{ 'Address'|trans }} - {{ user.address }} - - - - + {{ 'Common'|trans }}
{{ 'Address'|trans }} + {{ user.address }} - + - + + + + + +
{{ 'Joined'|trans }}{{ user.added }}
{{ 'Joined'|trans }}{{ user.added }}
{{ 'Access'|trans }}
{{ 'Status'|trans }} + {% if user.status %} + {{ 'active'|trans }} + {% else %} + {{ 'disabled'|trans }} + {% endif %}
{{ 'Joined'|trans }}{{ user.added }}{{ 'Approved'|trans }} + {% if user.approved %} + {{ 'yes'|trans }} + {% else %} + {{ 'no'|trans }} + {% endif %} +
{{ 'Joined'|trans }}{{ user.added }}{{ 'Moderator'|trans }} + {% if user.moderator %} + {{ 'yes'|trans }} + {% else %} + {{ 'no'|trans }} + {% endif %} +
{{ 'Access'|trans }}
{{ 'Status'|trans }} - {% if user.status %} - {{ 'active'|trans }} - {% else %} - {{ 'disabled'|trans }} - {% endif %} -
{{ 'Approved'|trans }} - {% if user.approved %} - {{ 'yes'|trans }} - {% else %} - {{ 'no'|trans }} - {% endif %} -
{{ 'Moderator'|trans }} - {% if user.moderator %} - {{ 'yes'|trans }} - {% else %} - {{ 'no'|trans }} - {% endif %} -
{{ 'Settings'|trans }}
{{ 'Interface'|trans }} - {{ user.locale|locale_name(user.locale)|u.title }} -
{{ 'Content filter'|trans }} - {% for i, locale in user.locales %}{% if i > 0 %},{% endif %} {{ locale|locale_name(locale)|u.title }}{% endfor %} -
+ + {{ 'Settings'|trans }} + + + {{ 'Interface'|trans }} + + {{ user.locale|locale_name(user.locale)|u.title }} + + + + {{ 'Content filter'|trans }} + + {% for i, locale in user.locales %}{% if i > 0 %},{% endif %} {{ locale|locale_name(locale)|u.title }}{% endfor %} + + + + + {% endblock %} \ No newline at end of file diff --git a/templates/default/user/profile.html.twig b/templates/default/user/profile.html.twig index 3f9909f..997b3fa 100644 --- a/templates/default/user/profile.html.twig +++ b/templates/default/user/profile.html.twig @@ -1,109 +1,111 @@ {% extends 'default/layout.html.twig' %} {% block title %}{{ 'Profile'|trans }} - {{ name }}{% endblock %} {% block main_content %} -
-
- {{ 'identicon'|trans }} -
-

{{ 'Profile'|trans }}

- - - - - - - - + + +
{{ 'Common'|trans }}
{{ 'Address'|trans }} - {{ user.address }} - - - - +
+ +
+ {{ 'identicon'|trans }} +
+

{{ 'Profile'|trans }}

+ + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - -
{{ 'Common'|trans }}
{{ 'Address'|trans }} + {{ user.address }} - + - -
{{ 'Joined'|trans }}{{ user.added }}
{{ 'Access'|trans }}
{{ 'Status'|trans }} - {% if user.status %} - {{ 'active'|trans }} - {% else %} - {{ 'disabled'|trans }} - {% endif %} -
{{ 'Approved'|trans }} - {% if user.approved %} - {{ 'yes'|trans }} - {% else %} - {{ 'no'|trans }} - {% endif %} -
{{ 'Moderator'|trans }} - {% if user.moderator %} - {{ 'yes'|trans }} - {% else %} - {{ 'no'|trans }} - {% endif %} -
{{ 'Settings'|trans }}
{{ 'Interface'|trans }} -
{{ 'Joined'|trans }}{{ user.added }}
{{ 'Access'|trans }}
{{ 'Status'|trans }} + {% if user.status %} + {{ 'active'|trans }} + {% else %} + {{ 'disabled'|trans }} + {% endif %} +
{{ 'Approved'|trans }} + {% if user.approved %} + {{ 'yes'|trans }} + {% else %} + {{ 'no'|trans }} + {% endif %} +
{{ 'Moderator'|trans }} + {% if user.moderator %} + {{ 'yes'|trans }} + {% else %} + {{ 'no'|trans }} + {% endif %} +
{{ 'Settings'|trans }}
{{ 'Interface'|trans }} + +
{{ 'Content filter'|trans }} {% for locale in locales %} - {% if locale == user.locale %} -
{{ 'Content filter'|trans }} - {% for locale in locales %} -
- {% if locale in user.locales %} - - {% else %} - - {% endif %} - -
- {% endfor %} -
-
- -
- +
+
+ +
+ + {% endblock %} \ No newline at end of file