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,
2016-01-30 13:25:18 +00:00
it has been <b> {{ stats .lastRegDate }} day {{ stats .lastRegDate == 1 ? '' : 's' }} </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>.
2015-10-14 14:14:30 +00:00
<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 %}
2016-02-05 22:03:08 +00:00
<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 style="text-align: right;"><time> {{ onlineUser .lastOnline | date ( sakura .dateFormat ) }} </time></td></tr>
2016-01-17 01:58:31 +00:00
{% 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 %}
2016-01-20 23:06:21 +00:00
{% if not user .permission ( constant ( 'Sakura\\Perms\\Site::CHANGE_BACKGROUND' ) ) or user .mainRankId == 4 %}
<div class="ad-container ad-sidebar" id="sideAd">
2015-10-25 19:22:30 +00:00
<div class="ad-box">
2016-01-20 23:06:21 +00:00
<a href="http://jbox.com/r.php??&acc=269&___store=jlist&bannerid=28" target="_blank">
<img src="https://jlist.com/js/magestore/affiliateplus/banner.php?id=28&account_id=269&store_id=2" alt="250x250 PG senpai shirt" title="250x250 PG senpai shirt" width="250" height="250" />
</a>
2015-10-25 19:22:30 +00:00
</div>
2016-01-20 23:06:21 +00:00
</div>
{% endif %}
2015-10-14 14:14:30 +00:00
</div>