2016-07-29 19:31:36 +00:00
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
2016-12-18 22:22:41 +00:00
{% include '_layout/metadata.twig' %}
2016-07-31 21:58:36 +00:00
<link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet" type="text/css">
2016-11-08 19:56:37 +00:00
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" type="text/css">
2016-12-18 22:22:41 +00:00
2016-12-09 16:29:32 +00:00
<link href="/css/libs.css" rel="stylesheet" type="text/css">
2016-11-08 19:56:37 +00:00
<link href="/css/yuuno.css" rel="stylesheet" type="text/css">
2016-12-18 22:22:41 +00:00
2016-12-09 16:29:32 +00:00
<script src="/js/libs.js" type="text/javascript"></script>
2016-11-08 19:56:37 +00:00
<script src="/js/sakura.js" type="text/javascript"></script>
<script src="/js/yuuno.js" type="text/javascript"></script>
2016-07-29 19:31:36 +00:00
{{ block ( 'js' ) }}
</head>
<body>
2016-11-09 18:32:23 +00:00
<div
id="container"
class="container"
{% if profile is defined ? profile .background : ( user .perms .changeBackground and ( user .backgroundSitewide or showBG | default ( false ) ) and user .background ) %}
style="background-image: url(' {{ route ( 'user.background' , ( profile is defined ? profile : user ) .id ) }} '); "
{% endif %}
>
2016-07-29 19:31:36 +00:00
<span id="top"></span>
<div class="header" id="header">
2016-11-08 19:56:37 +00:00
<a class="header__logo" href=" {{ route ( 'main.index' ) }} ">
{% if config ( 'general.logo' ) %}
<img src=" {{ config ( 'general.logo' ) }} " alt=" {{ config ( 'general.name' ) }} ">
{% else %}
{{ config ( 'general.name' ) }}
{% endif %}
</a>
<div class="header__menu">
<div class="header__menu--left" id="navMenuSite">
2016-11-09 18:32:23 +00:00
<a class="header__menu-item fa fa-home" href=" {{ route ( 'main.index' ) }} " title="Home"></a>
2016-12-12 22:22:09 +00:00
<a class="header__menu-item fa fa-newspaper-o" href=" {{ route ( 'news.index' ) }} " title="News"></a>
2016-12-04 16:57:35 +00:00
<a class="header__menu-item fa fa-commenting" href="#" title="Chat"></a>
2016-11-09 18:32:23 +00:00
<a class="header__menu-item fa fa-list" href=" {{ route ( 'forums.index' ) }} " title="Forums"></a>
2016-12-21 16:27:51 +00:00
{#<a class="header__menu-item fa fa-search" href="#" title="Search"></a>#}
2016-07-29 19:31:36 +00:00
{% if user .isActive %}
2016-11-09 18:32:23 +00:00
<a class="header__menu-item fa fa-users" href=" {{ route ( 'members.index' ) }} " title="Members"></a>
<a class="header__menu-item fa fa-heart" href=" {{ route ( 'premium.index' ) }} " title="Support us"></a>
2016-07-29 19:31:36 +00:00
{% endif %}
</div>
2016-11-08 19:56:37 +00:00
<div class="header__menu--right" id="navMenuUser">
2016-07-29 19:31:36 +00:00
{% if user .isActive %}
2016-11-09 18:32:23 +00:00
<a class="header__menu-item header__menu-item--avatar avatar" href=" {{ route ( 'user.profile' , user .id ) }} " title="Logged in as {{ user .username }} " style="background-image: url(' {{ route ( 'user.avatar' , user .id ) }} '); width: auto; color: {{ user .colour }} ; border-color: {{ user .colour }} ; font-weight: 700;"></a>
<a class="header__menu-item fa fa-envelope" href="#" title="Messages"></a>
<a class="header__menu-item fa fa-bell" href="javascript:;" title="Notifications"></a>
2016-11-01 21:14:02 +00:00
{% if user .perms .isMod or user .perms .isAdmin %}
2016-11-09 18:32:23 +00:00
<a class="header__menu-item fa fa-gavel" href=" {{ route ( 'manage.index' ) }} " title="Manage"></a>
2016-07-29 19:31:36 +00:00
{% endif %}
2016-11-09 18:32:23 +00:00
<a class="header__menu-item fa fa-cogs" href=" {{ route ( 'settings.index' ) }} " title="Settings"></a>
2016-12-08 18:45:20 +00:00
<a class="header__menu-item fa fa-sign-out" href="javascript:yuunoLogout();" title="Logout"></a>
2016-07-29 19:31:36 +00:00
{% endif %}
</div>
</div>
</div>
2016-11-08 19:56:37 +00:00
2016-12-18 22:00:24 +00:00
{% include 'auth/header_auth.twig' %}
2016-12-07 23:34:59 +00:00
<div id="contentwrapper" class="container__content">
<div id="notifications" class="alerts"></div>
<div id="dialogues" class="dialogues"></div>
2016-11-08 19:56:37 +00:00
2016-11-01 21:14:02 +00:00
{% if user .restricted %}
2016-12-04 14:55:53 +00:00
<div class="announce-box announce-box--restricted">
2016-07-29 19:31:36 +00:00
<h1>Your account is currently in <span style="font-weight: 700 !important;">restricted mode</span>!</h1>
2016-07-31 01:32:37 +00:00
<div>A staff member has set your account to restricted mode most likely due to violation of the rules. While restricted you won't be able to use most public features of the site. If you think this is a mistake please <a href=" {{ route ( 'info.contact' ) }} " style="color: inherit;">get in touch with one of our staff members</a>.</div>
2016-07-29 19:31:36 +00:00
</div>
{% endif %}
<noscript>
2016-11-09 18:32:23 +00:00
<div class="announce-box">
2016-07-29 19:31:36 +00:00
<h1>You have JavaScript disabled!</h1>
<div>A lot of things are not going to work without it so I recommend you turn it on or use a capable browser.</div>
</div>
</noscript>
{% if config ( 'general.cover' ) %}
2016-11-09 18:32:23 +00:00
<div class="announce-box announce-box--header" style="background-image: url(' {{ config ( 'general.cover' ) }} ');"></div>
2016-07-29 19:31:36 +00:00
{% endif %}
{% block content %}
2016-11-08 19:56:37 +00:00
<h1 style="text-align: center; margin: 2em auto;">There is nothing here!</h1>
2016-07-29 19:31:36 +00:00
{% endblock %}
</div>
<div class="footer">
2016-11-08 19:56:37 +00:00
<div class="footer__sections">
2016-11-09 18:32:23 +00:00
<div class="footer__copyright">Powered by <a class="footer__link" href="https://github.com/flashwave/sakura/">Sakura</a> © 2013-2016 <a class="footer__link" href="https://flash.moe/">flash.moe</a></div>
2016-11-08 19:56:37 +00:00
<ul class="footer__section">
2016-11-09 18:32:23 +00:00
<li class="footer__item footer__item--head">General</li>
<li class="footer__item"><a class="footer__link" href=" {{ route ( 'main.index' ) }} ">Home</a></li>
2016-12-12 22:22:09 +00:00
<li class="footer__item"><a class="footer__link" href=" {{ route ( 'news.index' ) }} ">News</a></li>
2016-12-21 16:27:51 +00:00
{#<li class="footer__item"><a class="footer__link" href="#">Search</a></li>#}
2016-11-09 18:32:23 +00:00
<li class="footer__item"><a class="footer__link" href="https://sakura.flash.moe">Changelog</a></li>
<li class="footer__item"><a class="footer__link" href=" {{ route ( 'premium.index' ) }} ">Support us</a></li>
2016-07-29 19:31:36 +00:00
</ul>
2016-11-08 19:56:37 +00:00
<ul class="footer__section">
2016-11-09 18:32:23 +00:00
<li class="footer__item footer__item--head">Community</li>
<li class="footer__item"><a class="footer__link" href=" {{ route ( 'forums.index' ) }} ">Forums</a></li>
2016-12-11 18:51:45 +00:00
<li class="footer__item"><a class="footer__link" href=" {{ route ( 'osu.leaderboard' ) }} ">osu! leaderboard</a></li>
2016-11-09 18:32:23 +00:00
<li class="footer__item"><a class="footer__link" href="https://twitter.com/_flashii">Twitter</a></li>
<li class="footer__item"><a class="footer__link" href="https://youtube.com/user/flashiinet">YouTube</a></li>
<li class="footer__item"><a class="footer__link" href="https://steamcommunity.com/groups/flashiinet">Steam</a></li>
2016-12-11 18:51:45 +00:00
<li class="footer__item"><a class="footer__link" href="https://github.com/flashii">GitHub</a></li>
2016-07-29 19:31:36 +00:00
</ul>
2016-11-08 19:56:37 +00:00
<ul class="footer__section">
2016-11-09 18:32:23 +00:00
<li class="footer__item footer__item--head">Information</li>
2016-12-11 18:51:45 +00:00
<li class="footer__item"><a class="footer__link" href=" {{ route ( 'info.contact' ) }} ">Contact</a></li>
2016-11-09 18:32:23 +00:00
<li class="footer__item"><a class="footer__link" href=" {{ route ( 'info.rules' ) }} ">Rules</a></li>
<li class="footer__item"><a class="footer__link" href=" {{ route ( 'status.index' ) }} ">Server Status</a></li>
<li class="footer__item"><a class="footer__link" href=" {{ route ( 'info.terms' ) }} ">Terms of Service</a></li>
2016-07-29 19:31:36 +00:00
</ul>
</div>
</div>
</div>
<script type="text/javascript">
2016-07-31 19:36:13 +00:00
Sakura.Config.Set( {
LoggedIn: {{ user .isActive ? 'true' : 'false' }} ,
2016-08-03 17:47:46 +00:00
UserId: {{ user .id }} ,
2016-07-31 19:36:13 +00:00
SessionId: " {{ session_id ( ) }} ",
});
2016-07-29 19:31:36 +00:00
2016-07-31 19:36:13 +00:00
Yuuno.Main.Startup();
2016-07-29 19:31:36 +00:00
2016-12-21 16:46:12 +00:00
{% if config ( 'dev.show_changelog' ) and server [ 'REQUEST_URI' ] == '/' %}
2016-08-03 23:40:47 +00:00
Sakura.Changelog.Build(Sakura.DOM.ID('indexPanel'));
{% endif %}
{% if config ( 'dev.show_errors' ) %}
window.addEventListener("error", function () {
Yuuno.Notifications.Display( {
id: -(Date.now()),
title: "Something happened!",
text: "Check the console for more info.",
image: "FONT:fa-bomb",
link: null,
});
});
2016-07-31 19:36:13 +00:00
{% endif %}
2016-07-29 19:31:36 +00:00
</script>
</body>
</html>