diff --git a/files/assets/css/main.css b/files/assets/css/main.css index 75a2381b7..e390a4edb 100644 --- a/files/assets/css/main.css +++ b/files/assets/css/main.css @@ -6310,3 +6310,12 @@ div.markdown { .comment-actions *:hover { color: var(--black); } + +.actionbtns > *:not(.d-none) { + display: inline !important; + margin-bottom: 10px !important; + margin-right: 5px !important; +} +.actionbtns > form > * { + margin-bottom: 10px !important; +} diff --git a/files/templates/userpage.html b/files/templates/userpage.html index 2f5be12e5..d3f17e658 100644 --- a/files/templates/userpage.html +++ b/files/templates/userpage.html @@ -163,22 +163,24 @@
{% if v and v.id != u.id %}
- +
+ - - + + - {% if FEATURES['USERS_SUICIDE'] -%} - - {%- endif %} - - {% if FEATURES['PROCOINS'] -%} - - {%- endif %} + {% if FEATURES['USERS_SUICIDE'] -%} + + {%- endif %} + + {% if FEATURES['PROCOINS'] -%} + + {%- endif %} - + +
- {{userpage_admintools.userAdminToolsUpper('desktop')}} + {{userpage_admintools.userAdminTools('desktop')}}
@@ -203,19 +205,22 @@
{{u.username}} will receive 0 marseybux
- - {% elif v and v.id == u.id %} - Edit profile - Profile views {% endif %} - {% if FEATURES['USERS_PROFILE_SONG'] and u.song and v and (v.id == u.id or v.mute and not u.unmutable) %} - - {% endif %} +
+ {% if v and v.id == u.id %} + Edit profile + Profile views + {% endif %} + + {% if FEATURES['USERS_PROFILE_SONG'] and u.song and v and (v.id == u.id or v.mute and not u.unmutable) %} + + + + {% endif %} +
- {{userpage_admintools.userAdminToolsLower('desktop')}} - -
+

User ID: {{u.id}}

Coins spent: {{u.coins_spent}}

True score: {{u.truecoins}}

@@ -396,31 +401,39 @@ {% endif %} {% endfor %}
- {% if v and v.id == u.id %} - Edit profile - Profile views - {% endif %} - {% if FEATURES['USERS_PROFILE_SONG'] and u.song and v and (v.id == u.id or v.mute and not u.unmutable) %} - - {% endif %} +
+ {% if v and v.id == u.id %} + Edit profile + Profile views + {% endif %} + + {% if FEATURES['USERS_PROFILE_SONG'] and u.song and v and (v.id == u.id or v.mute and not u.unmutable) %} + + + + {% endif %} + + {% if v and v.id != u.id %} + + + + + + {% if FEATURES['USERS_SUICIDE'] -%} + + {%- endif %} + + {% if FEATURES['PROCOINS'] -%} + + {%- endif %} + + + {% endif %} +
{% if v and v.id != u.id %} - - - - - {% if FEATURES['USERS_SUICIDE'] -%} - - {%- endif %} - - {% if FEATURES['PROCOINS'] -%} - - {%- endif %} - - - - {{userpage_admintools.userAdminToolsUpper('mobile')}} + {{userpage_admintools.userAdminTools('mobile')}} @@ -444,11 +457,9 @@
{{u.username}} will receive 0 marseybux
- - {{userpage_admintools.userAdminToolsLower('mobile')}} {% endif %} -
+

User ID: {{u.id}}

Coins spent: {{u.coins_spent}}

True score: {{u.truecoins}}

diff --git a/files/templates/userpage_admintools.html b/files/templates/userpage_admintools.html index ac7946bce..2c0cdfcb9 100644 --- a/files/templates/userpage_admintools.html +++ b/files/templates/userpage_admintools.html @@ -20,24 +20,9 @@ {% endif %} {% endmacro %} -{% macro userAdminToolsUpper(deviceType) %} - {% if v and v.id != u.id and v.admin_level >= PERMS['USER_MODERATION_TOOLS_VISIBLE'] %} - {% if v.admin_level >= PERMS['ADMIN_ADD'] %} - - {% endif %} - {% if v.admin_level >= PERMS['ADMIN_REMOVE'] %} - - {% endif %} - {% if v.admin_level >= PERMS['ADMIN_ACTIONS_REVERT'] and u.admin_level %} - - {% endif %} - {% endif %} -{% endmacro %} - -{% macro userAdminToolsLower(deviceType) -%} +{% macro userAdminTools(deviceType) %} {% if v and v.id != u.id and v.admin_level >= PERMS['USER_MODERATION_TOOLS_VISIBLE'] %}
-

{% if v.admin_level >= PERMS['USER_TITLE_CHANGE'] %}
@@ -103,26 +88,39 @@ {% endif %} - {% if v.admin_level >= PERMS['USER_BAN'] %} - - - {% endif %} - {% if v and v.admin_level >= PERMS['POST_COMMENT_MODERATION'] %} -
- - - -
-
- - - -
- {% endif %} - {% if FEATURES['COUNTRY_CLUB'] and v and v.admin_level >= PERMS['USER_CLUB_ALLOW_BAN'] %} - - - {% endif %} + +
+ {% if v.admin_level >= PERMS['ADMIN_ADD'] %} + + {% endif %} + {% if v.admin_level >= PERMS['ADMIN_REMOVE'] %} + + {% endif %} + {% if v.admin_level >= PERMS['ADMIN_ACTIONS_REVERT'] and u.admin_level %} + + {% endif %} + + {% if v.admin_level >= PERMS['USER_BAN'] %} + + + {% endif %} + {% if v and v.admin_level >= PERMS['POST_COMMENT_MODERATION'] %} +
+ + + +
+
+ + + +
+ {% endif %} + {% if FEATURES['COUNTRY_CLUB'] and v and v.admin_level >= PERMS['USER_CLUB_ALLOW_BAN'] %} + + + {% endif %} +
{% endif %} {%- endmacro %}