-
+
{% if profile.mainRankId > 1 and profile.checkBan|length < 1 %}
{{ profile.title }}
@@ -46,8 +46,8 @@
{#
-
-
shh #}
+
shh #}
+
{#
#}
{% if not noUserpage %}
@@ -149,5 +149,152 @@
+ {% else %}
+
+
+
+
+
+
+ {#
+
#}
+
+ {#
#}
+ {% if not noUserpage %}
+
+ {% endif %}
+
+ {% if session.checkLogin %}
+
+ {% if user.id == profile.id %}
+
+ {% else %}
+ {% if user.isFriends(profile.id) != 0 %}
{% endif %}
+
+ {#
#}
+ {% endif %}
+ {% if user.permission(constant('Sakura\\Perms\\Manage::CAN_RESTRICT_USERS'), constant('Sakura\\Perms::MANAGE')) %}
+
+ {% endif %}
+
+ {% endif %}
+
+
+
+
+ {% include 'profile/' ~ profileView ~ '.twig' %}
+
+
+
+
+
+ Threads |
+ {{ profile.forumStats.topics }} |
+
+
+ Posts |
+ {{ profile.forumStats.posts }} |
+
+
+ Friends |
+ {{ profile.friends(2)|length }} |
+
+
+
+ {% if profile.profileFields or user.permission(constant('Sakura\\Perms\\Manage::USE_MANAGE'), constant('Sakura\\Perms::MANAGE')) %}
+ {% if session.checkLogin %}
+
+ {% else %}
+
Log in to view the full profile!
+ {% endif %}
+ {% endif %}
+
+
Account Standing
+ {% if profile.permission(constant('Sakura\\Perms\\Site::DEACTIVATED')) %}
+
Deactivated
+ {% elseif profile.checkBan %}
+
Banned
+ {% elseif profile.permission(constant('Sakura\\Perms\\Site::RESTRICTED')) %}
+
Restricted
+ {% elseif profile.getWarnings %}
+
Bad
+ {% else %}
+
Good
+ {% endif %}
+ {% if profile.getWarnings %}
+
+
+ Action |
+ Duration |
+ Reason |
+
+ {% for warning in profile.getWarnings %}
+
+ {{ warning.warning_action_text }} |
+ {{ warning.warning_length }} minute{% if warning.warning_length != 1 %}s{% endif %} |
+ {{ warning.warning_reason }} |
+
+ {% endfor %}
+
+ {% endif %}
+
+
+
+
{% endif %}
{% endblock %}
diff --git a/templates/yuuno/profile/comments.twig b/templates/yuuno/profile/comments.twig
index 19fb703..d125229 100644
--- a/templates/yuuno/profile/comments.twig
+++ b/templates/yuuno/profile/comments.twig
@@ -1,3 +1,6 @@
{% set comments = profile.profileComments.comments %}
{% set commentsCategory = 'profile-' ~ profile.id %}
+
+
Comments
+
{% include 'elements/comments.twig' %}
diff --git a/templates/yuuno/profile/friends.twig b/templates/yuuno/profile/friends.twig
index e69de29..132f1b1 100644
--- a/templates/yuuno/profile/friends.twig
+++ b/templates/yuuno/profile/friends.twig
@@ -0,0 +1,24 @@
+{% set friends = profile.friends(2)|batch(12) %}
+
+{% set paginationPages = friends %}
+{% set paginationUrl %}{{ urls.format('SETTING_MODE', ['friends', 'listing']) }}{% endset %}
+
+
+
Friends
+
+
+ {% for friend in friends[get.page|default(1) - 1] %}
+
+ {% endfor %}
+
+ {% if friends|length > 1 %}
+
+ {% include 'elements/pagination.twig' %}
+
+ {% endif %}
+
\ No newline at end of file
diff --git a/templates/yuuno/settings/friends.listing.twig b/templates/yuuno/settings/friends.listing.twig
index 5077046..0974be6 100644
--- a/templates/yuuno/settings/friends.listing.twig
+++ b/templates/yuuno/settings/friends.listing.twig
@@ -27,7 +27,7 @@ window.addEventListener("load", function() {
{% for friend in friends[get.page|default(1) - 1] %}
-
+
{{ friend.username }}
diff --git a/templates/yuuno/settings/friends.requests.twig b/templates/yuuno/settings/friends.requests.twig
index ebfb25a..ff146fc 100644
--- a/templates/yuuno/settings/friends.requests.twig
+++ b/templates/yuuno/settings/friends.requests.twig
@@ -27,7 +27,7 @@ window.addEventListener("load", function() {
{% for friend in friends[get.page|default(1) - 1] %}