2018-03-28 00:35:37 +00:00
|
|
|
{% set menus = [
|
|
|
|
{
|
|
|
|
'name': 'general',
|
|
|
|
'title': 'General',
|
|
|
|
'sections': [
|
|
|
|
[
|
|
|
|
{
|
|
|
|
'name': 'overview',
|
|
|
|
'title': 'Overview',
|
2018-04-23 03:00:55 +00:00
|
|
|
'url': '/manage/index.php?v=overview',
|
2018-03-28 00:35:37 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
'name': 'logs',
|
|
|
|
'title': 'Logs',
|
2018-04-23 03:00:55 +00:00
|
|
|
'url': '/manage/index.php?v=logs',
|
2018-03-28 00:35:37 +00:00
|
|
|
},
|
|
|
|
],
|
|
|
|
[
|
|
|
|
{
|
|
|
|
'name': 'emotes',
|
|
|
|
'title': 'Emoticons',
|
2018-04-23 03:00:55 +00:00
|
|
|
'url': '/manage/index.php?v=emoticons',
|
2018-03-28 00:35:37 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
'name': 'settings',
|
|
|
|
'title': 'Settings',
|
2018-04-23 03:00:55 +00:00
|
|
|
'url': '/manage/index.php?v=settings',
|
2018-03-28 00:35:37 +00:00
|
|
|
},
|
|
|
|
],
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
'name': 'users',
|
|
|
|
'title': 'Users',
|
|
|
|
'sections': [
|
|
|
|
[
|
|
|
|
{
|
|
|
|
'name': 'listing',
|
|
|
|
'title': 'Listing',
|
2018-04-23 03:00:55 +00:00
|
|
|
'url': '/manage/users.php?v=listing',
|
2018-03-28 00:35:37 +00:00
|
|
|
},
|
|
|
|
],
|
|
|
|
[
|
|
|
|
{
|
|
|
|
'name': 'roles',
|
|
|
|
'title': 'Roles',
|
2018-04-23 03:00:55 +00:00
|
|
|
'url': '/manage/users.php?v=roles',
|
2018-03-28 00:35:37 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
'name': 'perms',
|
|
|
|
'title': 'Permissions',
|
2018-04-23 03:00:55 +00:00
|
|
|
'url': '/manage/users.php?v=permissions',
|
2018-03-28 00:35:37 +00:00
|
|
|
},
|
|
|
|
],
|
|
|
|
[
|
|
|
|
{
|
|
|
|
'name': 'report',
|
|
|
|
'title': 'Reports',
|
2018-04-23 03:00:55 +00:00
|
|
|
'url': '/manage/users.php?v=reports',
|
2018-03-28 00:35:37 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
'name': 'restrictions',
|
|
|
|
'title': 'Restrictions',
|
2018-04-23 03:00:55 +00:00
|
|
|
'url': '/manage/users.php?v=restrictions',
|
2018-03-28 00:35:37 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
'name': 'blacklist',
|
|
|
|
'title': 'Blacklisting',
|
2018-04-23 03:00:55 +00:00
|
|
|
'url': '/manage/users.php?v=blacklist',
|
2018-03-28 00:35:37 +00:00
|
|
|
},
|
|
|
|
],
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
'name': 'forum',
|
|
|
|
'title': 'Forum',
|
|
|
|
'sections': [
|
|
|
|
[
|
|
|
|
{
|
|
|
|
'name': 'forums',
|
|
|
|
'title': 'Listing',
|
2018-04-23 03:00:55 +00:00
|
|
|
'url': '/manage/forums.php?v=listing',
|
2018-03-28 00:35:37 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
'name': 'perms',
|
|
|
|
'title': 'Permissions',
|
2018-04-23 03:00:55 +00:00
|
|
|
'url': '/manage/forums.php?v=permissions',
|
2018-03-28 00:35:37 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
'name': 'settings',
|
|
|
|
'title': 'Settings',
|
2018-04-23 03:00:55 +00:00
|
|
|
'url': '/manage/forums.php?v=settings',
|
2018-03-28 00:35:37 +00:00
|
|
|
},
|
|
|
|
],
|
|
|
|
],
|
|
|
|
},
|
2018-07-07 01:32:09 +00:00
|
|
|
{
|
|
|
|
'name': 'changelog',
|
|
|
|
'title': 'Changelog',
|
|
|
|
'sections': [
|
|
|
|
[
|
|
|
|
{
|
|
|
|
'name': 'changes',
|
|
|
|
'title': 'Changes',
|
|
|
|
'url': '/manage/changelog.php?v=changes',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
'name': 'tags',
|
|
|
|
'title': 'Tags',
|
|
|
|
'url': '/manage/changelog.php?v=tags',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
'name': 'actions',
|
|
|
|
'title': 'Actions',
|
|
|
|
'url': '/manage/changelog.php?v=actions',
|
|
|
|
},
|
|
|
|
],
|
|
|
|
],
|
|
|
|
},
|
2018-03-28 00:35:37 +00:00
|
|
|
] %}
|
|
|
|
|
2018-03-27 03:15:03 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8">
|
|
|
|
<title>Flashii Broom Closet</title>
|
|
|
|
<link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet">
|
|
|
|
<link href="/css/manage.css" rel="stylesheet">
|
2018-05-27 00:20:35 +00:00
|
|
|
<link href="/css/libraries.css" rel="stylesheet">
|
2018-03-28 00:35:37 +00:00
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
2018-03-27 03:15:03 +00:00
|
|
|
</head>
|
|
|
|
<body class="manage">
|
|
|
|
<div class="wrapper">
|
|
|
|
<nav class="header">
|
|
|
|
<div class="header__wrapper">
|
2018-03-28 00:35:37 +00:00
|
|
|
<a class="header__logo" href="/manage/index.php">
|
2018-03-27 03:15:03 +00:00
|
|
|
Broom Closet
|
|
|
|
</a>
|
|
|
|
|
|
|
|
<div class="header__navigation">
|
2018-03-28 00:35:37 +00:00
|
|
|
{% for menu in menus %}
|
|
|
|
<div class="header__menu">
|
|
|
|
<input type="checkbox" id="menu-{{ menu.name }}-state" class="header__menu__state">
|
|
|
|
<label for="menu-{{ menu.name }}-state" class="header__menu__toggle">{{ menu.title }}</label>
|
|
|
|
<div class="header__menu__options">
|
|
|
|
{% for section in menu.sections %}
|
|
|
|
<div class="header__menu__section">
|
|
|
|
{% for item in section %}
|
2018-04-23 03:00:55 +00:00
|
|
|
<a class="header__menu__link header__menu__link--{{ menu.name }}-{{ item.name }}" href="{{ item.url }}">{{ item.title }}</a>
|
2018-03-28 00:35:37 +00:00
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
</div>
|
2018-03-27 03:15:03 +00:00
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="header__user">
|
2018-03-28 00:35:37 +00:00
|
|
|
<div class="header__menu">
|
|
|
|
<input type="checkbox" id="menu-user-state" class="header__menu__state">
|
2018-07-06 01:28:06 +00:00
|
|
|
<label for="menu-user-state" class="header__menu__toggle header__menu__toggle--profile" style="background-image:url('/profile.php?u={{ current_user.user_id }}&m=avatar');{{ current_user.colour|html_colour }}">{{ current_user.username }}</label>
|
2018-03-28 00:35:37 +00:00
|
|
|
<div class="header__menu__options header__menu__options--user">
|
|
|
|
<div class="header__menu__section">
|
2018-05-16 02:58:21 +00:00
|
|
|
<a class="header__menu__link" href="/profile.php?u={{ current_user.user_id }}">Profile</a>
|
2018-03-28 00:35:37 +00:00
|
|
|
<a class="header__menu__link" href="/settings.php">Settings</a>
|
|
|
|
</div>
|
|
|
|
<div class="header__menu__section">
|
|
|
|
<a class="header__menu__link" href="/">Return</a>
|
|
|
|
<a class="header__menu__link" href="/auth.php?m=logout&s={{ csrf_token() }}">Logout</a>
|
|
|
|
</div>
|
2018-03-27 03:15:03 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</nav>
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
<div class="container">
|
2018-04-23 03:00:55 +00:00
|
|
|
<p>This page has no content.</p>
|
2018-03-27 03:15:03 +00:00
|
|
|
</div>
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
<footer class="footer">
|
2018-07-07 01:32:09 +00:00
|
|
|
{{ 'https://flash.moe'|html_link('Flashwave', 'footer__link')|raw }} 2013-{{
|
2018-03-27 03:15:03 +00:00
|
|
|
''|date('Y') }} /
|
2018-07-07 01:32:09 +00:00
|
|
|
<span title="{{ git_hash(true) }}">
|
|
|
|
{{ git_branch() }} # {{ git_hash() }}
|
|
|
|
</span>
|
|
|
|
{# link('https://github.com/flashwave/misuzu/tree/' ~ git_branch(), git_branch(), 'footer__link') }} # {{ link('https://github.com/flashwave/misuzu/commit/' ~ git_hash(true), git_hash(), 'footer__link') #}
|
2018-03-27 03:15:03 +00:00
|
|
|
</footer>
|
|
|
|
</div>
|
2018-05-27 00:20:35 +00:00
|
|
|
<script src="/js/libraries.js" charset="utf-8"></script>
|
2018-07-07 01:32:09 +00:00
|
|
|
<script>
|
|
|
|
window.addEventListener('load', () => {
|
|
|
|
timeago().render(document.querySelectorAll('time'));
|
|
|
|
hljs.initHighlighting();
|
|
|
|
});
|
|
|
|
</script>
|
2018-03-27 03:15:03 +00:00
|
|
|
</body>
|
|
|
|
</html>
|