2015-08-19 19:44:01 +00:00
{ % if session . checkLogin % }
2015-05-06 13:42:02 +00:00
<div class="head">Hi, { { user . data . username } } !</div>
2015-08-09 20:27:03 +00:00
<a href="/settings/avatar"><img src="/a/ { { user . data . id } } " class="default-avatar-setting homepage-menu-avatar" /></a>
2015-06-21 13:16:31 +00:00
<ul class="panelQuickLinks">
2015-08-09 20:27:03 +00:00
<li><a href="/settings/friendrequests" title="Pending friend requests"><span class="fa fa-user-plus"></span><span class="count"> { { page . friend_req | length } } </span></a></li>
<li><a href="/messages" title="View private messages"><span class="fa fa-envelope"></span><span class="count">0</span></a></li>
2015-05-06 13:42:02 +00:00
</ul>
<div class="clear"></div>
{ % else % }
{ % if sakura . lockauth % }
<div class="head">Whoops!</div>
You caught the site at the wrong moment! Right now registration <i>and</i> logging in is disabled for unspecified reasons. Sorry for the inconvenience but please try again later!
2015-05-25 18:18:56 +00:00
<div class="indexSidePanelLinks">
<a class="fa fa-lock" href="#" title="Authentication is locked"></a>
</div>
2015-05-06 13:42:02 +00:00
{ % else % }
<div class="head">Welcome!</div>
Welcome to Flashii! This is a site for a bunch of friends to hang out, nothing special. Anyone is pretty much welcome to register so why not have a go?
2015-05-25 18:18:56 +00:00
<div class="indexSidePanelLinks">
2015-08-09 20:27:03 +00:00
<a class="fa fa-magic" href="/register" title="Register" id="indexSidePanelRegister"></a>
<a class="fa fa-sign-in" href="/login" title="Login" id="indexSidePanelLogin"></a>
2015-05-25 18:18:56 +00:00
</div>
2015-05-06 13:42:02 +00:00
{ % endif % }
{ % endif % }
<div class="head">Stats</div>
2015-08-19 19:44:01 +00:00
We have <b> { { stats . userCount } } </b>,
<b><a href="/u/ { { stats . newestUser . id } } " class="default"> { { stats . newestUser . username } } </a></b> is the newest user,
2015-07-30 01:12:53 +00:00
it has been <b> { { stats . lastRegDate } } </b> since the last user registered and the forum has <b> { { stats . topicCount } } </b> and <b> { { stats . postCount } } </b>.
2015-05-06 13:42:02 +00:00
<div class="head">Online Users</div>
{ % if stats . onlineUsers % }
All active users in the past 5 minutes:<br />
{ % for amount , onlineUser in stats . onlineUsers % }
2015-08-09 20:27:03 +00:00
<a href="/u/ { { onlineUser . id } } " style="font-weight: bold;" class="default"> { { onlineUser . username } } </a> { % if amount ! = ( stats . onlineUsers | length - 1 ) % } , { % endif % }
2015-05-06 13:42:02 +00:00
{ % endfor % }
{ % else % }
There were no online users in the past 5 minutes.
2015-05-09 00:56:55 +00:00
{ % endif % }