2015-09-29 11:01:36 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<!-- META -->
|
|
|
|
<meta charset="{{ sakura.charset }}" />
|
|
|
|
<title>{% block title %}{{ sakura.siteName }}{% endblock %}</title>
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
|
|
|
|
{% if page.redirect %}
|
|
|
|
<meta http-equiv="refresh" content="{{ page.redirectTimeout ? page.redirectTimeout : '3' }}; URL={{ page.redirect }}" />
|
|
|
|
{% endif %}
|
|
|
|
{{ block('meta') }}
|
|
|
|
<!-- CSS -->
|
2015-09-29 17:26:24 +00:00
|
|
|
<link rel="stylesheet" type="text/css" href="{{ sakura.resources }}/css/broomcloset.css" />
|
2015-09-29 11:01:36 +00:00
|
|
|
<link rel="stylesheet" type="text/css" href="{{ sakura.resources }}/css/bootstrap.css" />
|
|
|
|
<link rel="stylesheet" type="text/css" href="{{ sakura.resources }}/css/bootstrap-theme.css" />
|
2015-10-16 13:37:29 +00:00
|
|
|
<link rel="stylesheet" type="text/css" href="{{ sakura.contentPath }}/fonts/font-awesome/font.css" />
|
2015-09-29 11:01:36 +00:00
|
|
|
{{ block('css') }}
|
|
|
|
<!-- JS -->
|
2015-10-16 15:31:32 +00:00
|
|
|
<script type="text/javascript" charset="utf-8" src="{{ sakura.contentPath }}/libraries/jquery.js"></script>
|
|
|
|
<script type="text/javascript" charset="utf-8" src="{{ sakura.resources }}/js/bootstrap.js"></script>
|
2015-09-29 11:01:36 +00:00
|
|
|
{{ block('js') }}
|
|
|
|
</head>
|
|
|
|
<body>
|
2015-09-29 17:26:24 +00:00
|
|
|
<nav class="navbar navbar-inverse navbar-static-top">
|
|
|
|
<div class="container-fluid">
|
|
|
|
<div class="navbar-header">
|
|
|
|
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
|
|
|
|
<span class="sr-only">Toggle navigation</span>
|
|
|
|
<span class="icon-bar"></span>
|
|
|
|
<span class="icon-bar"></span>
|
|
|
|
<span class="icon-bar"></span>
|
|
|
|
</button>
|
|
|
|
<a class="navbar-brand" href="{{ urls.format('MANAGE_INDEX') }}">The Broomcloset</a>
|
2015-09-29 11:01:36 +00:00
|
|
|
</div>
|
2015-09-29 17:26:24 +00:00
|
|
|
<div id="navbar" class="navbar-collapse collapse">
|
|
|
|
<ul class="nav navbar-nav navbar-left">
|
2015-10-03 22:45:19 +00:00
|
|
|
<li{% if manage.category == 'dashboard' %} class="active"{% endif %}><a href="{{ urls.format('MANAGE_INDEX') }}">Dashboard</a></li>
|
|
|
|
<li{% if manage.category == 'news' %} class="active"{% endif %}><a href="{{ urls.format('MANAGE_CAT', ['news']) }}">News</a></li>
|
|
|
|
<li class="dropdown{% if manage.category == 'configuration' %} active{% endif %}">
|
|
|
|
<a href="javascript:void(0);" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Configuration <span class="caret"></span></a>
|
|
|
|
<ul class="dropdown-menu">
|
|
|
|
<li><a href="{{ urls.format('MANAGE_MODE', ['configuration', 'general']) }}">General</a></li>
|
|
|
|
<li><a href="{{ urls.format('MANAGE_MODE', ['configuration', 'security']) }}">Security</a></li>
|
|
|
|
<li><a href="{{ urls.format('MANAGE_MODE', ['configuration', 'authentication']) }}">Authentication</a></li>
|
|
|
|
<li><a href="{{ urls.format('MANAGE_MODE', ['configuration', 'appearance']) }}">Appearance</a></li>
|
|
|
|
<li><a href="{{ urls.format('MANAGE_MODE', ['configuration', 'performance']) }}">Performance</a></li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
<li{% if manage.category == 'reports' %} class="active"{% endif %}><a href="{{ urls.format('MANAGE_CAT', ['reports']) }}">Reports</a></li>
|
|
|
|
<li{% if manage.category == 'infopages' %} class="active"{% endif %}><a href="{{ urls.format('MANAGE_CAT', ['infopages']) }}">Info pages</a></li>
|
|
|
|
<li class="dropdown{% if manage.category == 'users' %} active{% endif %}">
|
2015-09-29 17:26:24 +00:00
|
|
|
<a href="javascript:void(0);" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Users <span class="caret"></span></a>
|
|
|
|
<ul class="dropdown-menu">
|
|
|
|
<li><a href="{{ urls.format('MANAGE_MODE', ['users', 'manage']) }}">Manage users</a></li>
|
|
|
|
<li><a href="{{ urls.format('MANAGE_MODE', ['users', 'ranks']) }}">Manage ranks</a></li>
|
|
|
|
<li><a href="{{ urls.format('MANAGE_MODE', ['users', 'groups']) }}">Manage groups</a></li>
|
|
|
|
<li role="separator" class="divider"></li>
|
|
|
|
<li><a href="{{ urls.format('MANAGE_MODE', ['users', 'warnings']) }}">Warnings</a></li>
|
|
|
|
<li><a href="{{ urls.format('MANAGE_MODE', ['users', 'bans']) }}">Bans</a></li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
2015-10-03 22:45:19 +00:00
|
|
|
<li class="dropdown{% if manage.category == 'forums' %} active{% endif %}">
|
2015-09-29 17:26:24 +00:00
|
|
|
<a href="javascript:void(0);" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Forums <span class="caret"></span></a>
|
|
|
|
<ul class="dropdown-menu">
|
|
|
|
<li><a href="{{ urls.format('MANAGE_MODE', ['forums', 'manage']) }}">Manage forums</a></li>
|
|
|
|
<li><a href="{{ urls.format('MANAGE_MODE', ['forums', 'moderate']) }}">Moderate forums</a></li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
2015-10-03 22:45:19 +00:00
|
|
|
<li class="dropdown{% if manage.category == 'permissions' %} active{% endif %}">
|
2015-09-29 17:26:24 +00:00
|
|
|
<a href="javascript:void(0);" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Permissions <span class="caret"></span></a>
|
|
|
|
<ul class="dropdown-menu">
|
|
|
|
<li><a href="{{ urls.format('MANAGE_MODE', ['permissions', 'global']) }}">Global permissions</a></li>
|
|
|
|
<li><a href="{{ urls.format('MANAGE_MODE', ['permissions', 'forums']) }}">Forum permissions</a></li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
2015-10-03 22:45:19 +00:00
|
|
|
<li class="dropdown{% if manage.category == 'logs' %} active{% endif %}">
|
2015-09-29 17:26:24 +00:00
|
|
|
<a href="javascript:void(0);" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Logs <span class="caret"></span></a>
|
|
|
|
<ul class="dropdown-menu">
|
|
|
|
<li><a href="{{ urls.format('MANAGE_MODE', ['logs', 'all']) }}">Full log</a></li>
|
|
|
|
<li><a href="{{ urls.format('MANAGE_MODE', ['logs', 'management']) }}">Management logs</a></li>
|
|
|
|
<li><a href="{{ urls.format('MANAGE_MODE', ['logs', 'errors']) }}">Error logs</a></li>
|
|
|
|
<li><a href="{{ urls.format('MANAGE_MODE', ['logs', 'user']) }}">User logs</a></li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
<ul class="nav navbar-nav navbar-right">
|
|
|
|
<li class="dropdown">
|
|
|
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false" style="color: {{ user.colour }};">{{ user.data.username }} <span class="caret"></span></a>
|
|
|
|
<ul class="dropdown-menu">
|
2015-10-10 21:17:50 +00:00
|
|
|
<li><a href="{{ urls.format('USER_PROFILE', [user.data.user_id]) }}">View Profile</a></li>
|
2015-09-29 17:26:24 +00:00
|
|
|
<li><a href="{{ urls.format('SETTINGS_INDEX') }}">Site settings</a></li>
|
|
|
|
<li role="separator" class="divider"></li>
|
|
|
|
<li><a href="{{ urls.format('SITE_HOME') }}">Back to site</a></li>
|
|
|
|
<li><a href="{{ urls.format('USER_LOGOUT', [php.time, php.sessionid, urls.format('SITE_HOME')]) }}">Logout</a></li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
2015-10-16 13:37:29 +00:00
|
|
|
<li><a href="https://sakura.flash.moe/#r{{ sakura.versionInfo.version }}" style="color: {{ sakura.versionInfo.colour }};" title="{{ sakura.versionInfo.label }} {{ sakura.versionInfo.stable ? 'Stable' : 'Development' }}">Sakura r{{ sakura.versionInfo.version }}</a></li>
|
2015-09-29 17:26:24 +00:00
|
|
|
</ul>
|
2015-09-29 11:01:36 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</nav>
|
2015-09-29 17:26:24 +00:00
|
|
|
<div class="container-fluid">
|
2015-09-29 11:01:36 +00:00
|
|
|
{{ block('content') }}
|
|
|
|
</div>
|
|
|
|
</body>
|
|
|
|
</html>
|