2015-10-14 14:14:30 +00:00
<div id="indexPanel">
{% if session .checkLogin %}
2015-11-07 22:58:02 +00:00
<div class="head">Hi, {{ user .username }} !</div>
2015-11-15 14:29:26 +00:00
<a href=" {{ urls .format ( 'SETTING_MODE' , [ 'appearance' , 'avatar' ] ) }} "><img src=" {{ urls .format ( 'IMAGE_AVATAR' , [ user .id ] ) }} " alt=" {{ user .username }} " class="default-avatar-setting homepage-menu-avatar" /></a>
2015-10-14 14:14:30 +00:00
<ul class="panelQuickLinks">
2015-11-11 21:54:56 +00:00
<li><a href=" {{ urls .format ( 'SETTING_MODE' , [ 'friends' , 'requests' ] ) }} " title="Pending friend requests"><span class="fa fa-user-plus"></span><span class="count"> {{ user .friends ( - 1 , true ) | length }} </span></a></li>
2015-10-14 14:14:30 +00:00
<li><a href=" {{ urls .format ( 'MESSAGES_INDEX' ) }} " title="View private messages"><span class="fa fa-envelope"></span><span class="count">0</span></a></li>
</ul>
<div class="clear"></div>
2015-05-06 13:42:02 +00:00
{% else %}
2015-10-14 14:14:30 +00:00
{% 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!
<div class="indexSidePanelLinks">
<a class="fa fa-lock" href="#" title="Authentication is locked"></a>
</div>
{% 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?
<div class="indexSidePanelLinks">
<a class="fa fa-magic" href=" {{ urls .format ( 'SITE_REGISTER' ) }} " title="Register" id="indexSidePanelRegister"></a>
<a class="fa fa-sign-in" href=" {{ urls .format ( 'SITE_LOGIN' ) }} " title="Login" id="indexSidePanelLogin"></a>
</div>
{% endif %}
2015-05-06 13:42:02 +00:00
{% endif %}
2015-10-14 14:14:30 +00:00
<div class="head">Stats</div>
We have <b> {{ stats .userCount }} user {% if stats .userCount != 1 %} s {% endif %} </b>,
2015-11-08 22:27:42 +00:00
<b><a href=" {{ urls .format ( 'USER_PROFILE' , [ stats .newestUser .id ] ) }} " style="color: {{ stats .newestUser .colour }} ;" class="default"> {{ stats .newestUser .username }} </a></b> is the newest user,
2015-10-14 14:14:30 +00:00
it has been <b> {{ stats .lastRegDate }} </b> since the last user registered and the forum has <b> {{ stats .topicCount }} thread {% if stats .topicCount != 1 %} s {% endif %} </b> and <b> {{ stats .postCount }} post {% if stats .postCount != 1 %} s {% endif %} </b>.
<div class="head">Online Users</div>
{% if stats .onlineUsers %}
2016-01-17 01:58:31 +00:00
All active users in the past {{ sakura .onlineTimeout / 6 0 }} minute {% if sakura .onlineTimeout != 6 0 %} s {% endif %}
<table class="panelTable">
{% for amount , onlineUser in stats .onlineUsers %}
<tr><td style="text-align: left;"><a href=" {{ urls .format ( 'USER_PROFILE' , [ onlineUser .id ] ) }} " style="font-weight: bold; color: {{ onlineUser .colour }} ;" class="default"> {{ onlineUser .username }} </a></td><td title=" {{ onlineUser .lastOnline | date ( sakura .dateFormat ) }} " style="text-align: right;"> {{ onlineUser .elapsed .lastOnline }} </td></tr>
{% endfor %}
</table>
2015-10-14 14:14:30 +00:00
{% else %}
2015-11-11 21:54:56 +00:00
There were no online users in the past {{ sakura .onlineTimeout / 6 0 }} minute {% if sakura .onlineTimeout != 6 0 %} s {% endif %} .
2015-10-14 14:14:30 +00:00
{% endif %}
2015-11-08 22:27:42 +00:00
{ #<div class="ad-container ad-sidebar" id="sideAd">
2015-10-25 19:22:30 +00:00
<div class="head">Advertisment</div>
<div class="ad-box">
<img src="http://i.flash.moe/1445793369-523-9238.png" />
<div><a href="#">Click here to meow!</a></div>
</div>
</div>#}
2015-10-14 14:14:30 +00:00
</div>