diff --git a/files/templates/userpage.html b/files/templates/userpage.html index f1f76ac2a..7a01fd6d1 100644 --- a/files/templates/userpage.html +++ b/files/templates/userpage.html @@ -29,6 +29,8 @@ {% endblock %} +{% import 'userpage_admintools_lower.html' as userpage_admintools_lower %} + {% block desktopUserBanner %}
@@ -269,110 +271,9 @@ {% if FEATURES['USERS_PROFILE_SONG'] and u.song and v and (v.id == u.id or v.mute and not u.unmutable) %} Toggle anthem {% endif %} + + {{ userpage_admintools_lower.userAdminToolsLower('desktop') }} - {% if v and v.id != u.id and v.admin_level >= PERMS['USER_MODERATION_TOOLS_VISIBLE'] %} -

-
- {% if v.admin_level >= PERMS['USER_TITLE_CHANGE'] %} -
- -
- - -
- -     -
- - -
-     - -
-
-
- {% endif %} -
-

-						

-						{% if v.admin_level >= PERMS['USER_BAN'] %}
-							{% if u.is_suspended %}
-								
- - - -
- {% else %} -
- - - - -
- - -
- -
- {% endif %} - {% endif %} -

-						

-						{% if v.admin_level >= PERMS['USER_SHADOWBAN'] %}
-							{% if u.shadowbanned %}
-								
- - -
- {% else %} -
- - -
- - -
- -
- {% endif %} - {% endif %} - -

-						

-						{% if v and v.admin_level >= PERMS['USER_AGENDAPOSTER'] %}
-							
- - - -
-

-							Disable Chud Theme
-						{% endif %}
-						

-						{% if v and v.admin_level >= PERMS['USER_BAN'] %}
-							Mute
-							Unmute
-						{% 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 %}
 					

 					

User ID: {{u.id}}

@@ -632,108 +533,8 @@
- {% if v and v.admin_level >= PERMS['USER_MODERATION_TOOLS_VISIBLE'] %} - - {% if FEATURES['COUNTRY_CLUB'] and v.admin_level >= PERMS['USER_CLUB_ALLOW_BAN'] -%} - - - {%- endif %} - -

-
- {% if v.admin_level >= PERMS['USER_TITLE_CHANGE'] %} -
-
- - -
- -     -
- - -
-     - -
-
-
- {% endif %} -
-

-						

-						{% if v.admin_level >= PERMS['USER_BAN'] %}
-							{% if u.is_suspended %}
-								
- - - -
- {% else %} -
- - - - -
- - -
- -
- {% endif %} - {% endif %} -

-						

-						{% if v.admin_level >= PERMS['USER_SHADOWBAN'] %}
-							{% if u.shadowbanned %}
-								
- - -
- {% else %} -
- - -
- - -
- -
- {% endif %} - {% endif %} -

-						

-						{% if v.admin_level >= PERMS['USER_AGENDAPOSTER'] %}
-							
- - - -
-

-							Disable Chud Theme
-							

-						{% endif %}
-						{% if v.admin_level >= PERMS['USER_BAN'] %}
-							Mute
-							Unmute
-						{% endif %}
-						

-						{% if v.admin_level >= PERMS['POST_COMMENT_MODERATION'] %}
-							
- - - -
-

-							
- - - -
- {% endif %} - {% endif %} + {{ userpage_admintools_lower.userAdminToolsLower('mobile') }} + {% endif %}

 				
diff --git a/files/templates/userpage_admintools_lower.html b/files/templates/userpage_admintools_lower.html new file mode 100644 index 000000000..2972d3906 --- /dev/null +++ b/files/templates/userpage_admintools_lower.html @@ -0,0 +1,104 @@ +{% macro userAdminToolsLower(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'] %} +
+
+
+ + +
+ +     +
+ + +
+     + +
+
+
+
+

+                

+            {% endif %}
+            {% if v.admin_level >= PERMS['USER_BAN'] %}
+				{% if u.is_suspended %}
+					
+ + + +
+ {% else %} +
+ + + + +
+ + +
+ +
+ {% endif %} +

+                

+			{% endif %}
+            {% if v.admin_level >= PERMS['USER_SHADOWBAN'] %}
+				{% if u.shadowbanned %}
+					
+ + +
+ {% else %} +
+ + +
+ + +
+ +
+ {% endif %} +

+                

+			{% endif %}
+            {% if v.admin_level >= PERMS['USER_AGENDAPOSTER'] %}
+				
+ + + +
+

+				Disable Chud Theme
+			{% endif %}
+            {% if v.admin_level >= PERMS['USER_BAN'] %}
+                Mute
+                Unmute
+                

+            {% 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 %} \ No newline at end of file