From e5032174823127832b50b2f770e53869f0d4beba Mon Sep 17 00:00:00 2001 From: flashwave Date: Sun, 11 Dec 2016 02:36:17 +0100 Subject: [PATCH] move indexPanel into index, it's no longer shared --- .../views/yuuno/elements/indexPanel.twig | 44 ------------------ resources/views/yuuno/meta/index.twig | 45 ++++++++++++++++++- 2 files changed, 43 insertions(+), 46 deletions(-) delete mode 100644 resources/views/yuuno/elements/indexPanel.twig diff --git a/resources/views/yuuno/elements/indexPanel.twig b/resources/views/yuuno/elements/indexPanel.twig deleted file mode 100644 index eb81df2..0000000 --- a/resources/views/yuuno/elements/indexPanel.twig +++ /dev/null @@ -1,44 +0,0 @@ -
- {% if user.isActive %} -
-
- -
-
- -

{{ user.username }}

-
- {% set friendRequests = user.friends(-1, true)|length %} - {% if friendRequests %} - {{ friendRequests }} new friend requests - {% endif %} -
-
- {% endif %} -
Stats
- We have {{ stats.userCount }} user{% if stats.userCount != 1 %}s{% endif %}, - {{ stats.newestUser.username }} is the newest user, - it has been {{ stats.lastRegDate }} day{{ stats.lastRegDate == 1 ? '' : 's' }} since the last user registered and the forum has {{ stats.topicCount }} topic{% if stats.topicCount != 1 %}s{% endif %} and {{ stats.postCount }} post{% if stats.postCount != 1 %}s{% endif %}. -
Online Users
- {% if stats.onlineUsers %} - All active users in the past 2 minutes - - {% for amount,onlineUser in stats.onlineUsers %} - - - - - {% endfor %} -
- - {{ onlineUser.username }} - - - -
- {% else %} - There were no online users in the past 2 minutes. - {% endif %} -
diff --git a/resources/views/yuuno/meta/index.twig b/resources/views/yuuno/meta/index.twig index 79c454b..a4dcbce 100644 --- a/resources/views/yuuno/meta/index.twig +++ b/resources/views/yuuno/meta/index.twig @@ -2,8 +2,49 @@ {% block content %}
-
- {% include 'elements/indexPanel.twig' %} +
+ {% if user.isActive %} +
+
+ +
+
+ +

{{ user.username }}

+
+ {% set friendRequests = user.friends(-1, true)|length %} + {% if friendRequests %} + {{ friendRequests }} new friend requests + {% endif %} +
+
+ {% endif %} +
Stats
+ We have {{ stats.userCount }} user{% if stats.userCount != 1 %}s{% endif %}, + {{ stats.newestUser.username }} is the newest user, + it has been {{ stats.lastRegDate }} day{{ stats.lastRegDate == 1 ? '' : 's' }} since the last user registered and the forum has {{ stats.topicCount }} topic{% if stats.topicCount != 1 %}s{% endif %} and {{ stats.postCount }} post{% if stats.postCount != 1 %}s{% endif %}. +
Online Users
+ {% if stats.onlineUsers %} + All active users in the past 2 minutes + + {% for amount, onlineUser in stats.onlineUsers %} + + + + + {% endfor %} +
+ + {{ onlineUser.username }} + + + +
+ {% else %} + There were no online users in the past 2 minutes. + {% endif %}
News