misuzu/views/manage/master.twig

171 lines
6.5 KiB
Twig
Raw Normal View History

2018-03-27 03:15:03 +00:00
{% from '@manage/macros.twig' import link %}
2018-03-28 00:35:37 +00:00
{% set menus = [
{
'name': 'general',
'title': 'General',
'sections': [
[
{
'name': 'overview',
'title': 'Overview',
'url': '/manage/index.php?v=overview',
2018-03-28 00:35:37 +00:00
},
{
'name': 'logs',
'title': 'Logs',
'url': '/manage/index.php?v=logs',
2018-03-28 00:35:37 +00:00
},
],
[
{
'name': 'emotes',
'title': 'Emoticons',
'url': '/manage/index.php?v=emoticons',
2018-03-28 00:35:37 +00:00
},
{
'name': 'settings',
'title': 'Settings',
'url': '/manage/index.php?v=settings',
2018-03-28 00:35:37 +00:00
},
],
],
},
{
'name': 'users',
'title': 'Users',
'sections': [
[
{
'name': 'listing',
'title': 'Listing',
'url': '/manage/users.php?v=listing',
2018-03-28 00:35:37 +00:00
},
],
[
{
'name': 'roles',
'title': 'Roles',
'url': '/manage/users.php?v=roles',
2018-03-28 00:35:37 +00:00
},
{
'name': 'perms',
'title': 'Permissions',
'url': '/manage/users.php?v=permissions',
2018-03-28 00:35:37 +00:00
},
],
[
{
'name': 'report',
'title': 'Reports',
'url': '/manage/users.php?v=reports',
2018-03-28 00:35:37 +00:00
},
{
'name': 'restrictions',
'title': 'Restrictions',
'url': '/manage/users.php?v=restrictions',
2018-03-28 00:35:37 +00:00
},
{
'name': 'blacklist',
'title': 'Blacklisting',
'url': '/manage/users.php?v=blacklist',
2018-03-28 00:35:37 +00:00
},
],
],
},
{
'name': 'forum',
'title': 'Forum',
'sections': [
[
{
'name': 'forums',
'title': 'Listing',
'url': '/manage/forums.php?v=listing',
2018-03-28 00:35:37 +00:00
},
{
'name': 'perms',
'title': 'Permissions',
'url': '/manage/forums.php?v=permissions',
2018-03-28 00:35:37 +00:00
},
{
'name': 'settings',
'title': 'Settings',
'url': '/manage/forums.php?v=settings',
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 %}
<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-05-16 02:58:21 +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 }}&amp;m=avatar');color:{{ current_user.colour|colour_get_css }}">{{ 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&amp;s={{ csrf_token() }}">Logout</a>
</div>
2018-03-27 03:15:03 +00:00
</div>
</div>
</div>
</div>
</nav>
{% block content %}
<div class="container">
<p>This page has no content.</p>
2018-03-27 03:15:03 +00:00
</div>
{% endblock %}
<footer class="footer">
{{ link('https://flash.moe', 'flash.moe', 'footer__link') }} 2013-{{
''|date('Y') }} /
{{ 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') }}
</footer>
</div>
2018-05-27 00:20:35 +00:00
<script src="/js/libraries.js" charset="utf-8"></script>
2018-03-27 03:15:03 +00:00
</body>
</html>