misuzu/views/mio/master.twig

97 lines
3.7 KiB
Twig
Raw Normal View History

2018-03-22 02:56:41 +00:00
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
{% include '@mio/_layout/meta.twig' %}
2018-07-21 16:01:36 +00:00
<link href="{{ '/css/mio.css'|asset_url }}" rel="stylesheet">
<link href="{{ '/css/libraries.css'|asset_url }}" rel="stylesheet">
2018-03-22 02:56:41 +00:00
</head>
<body class="mio">
<div class="mio__wrapper">
{% include '_layout/header.twig' %}
2018-03-22 02:56:41 +00:00
{% block content %}
2018-04-16 00:33:54 +00:00
<div class="container">
<div class="container__title">Hello!</div>
<div class="container__content">
2018-03-22 02:56:41 +00:00
This page has no content!
</div>
</div>
{% endblock %}
2018-04-16 00:33:54 +00:00
<footer class="footer">
2018-07-14 15:05:36 +00:00
{% autoescape false %}
2018-04-16 00:33:54 +00:00
<div class="footer__copyright">
2018-07-14 15:05:36 +00:00
{{ 'https://flash.moe'|html_link('Flashwave', 'footer__copyright__link') }} 2013-{{
2018-03-22 02:56:41 +00:00
''|date('Y') }} /
2018-07-14 15:05:36 +00:00
{{ ('https://github.com/flashwave/misuzu/tree/' ~ git_branch())|html_link(git_branch(), 'footer__copyright__link') }}
# {{ ('https://github.com/flashwave/misuzu/commit/' ~ git_commit_hash(true))|html_link(git_commit_hash(), 'footer__copyright__link') }}
2018-07-15 22:39:39 +00:00
{% if query_count is defined %}
/ SQL Queries: {{ query_count|number_format }}
2018-07-21 16:01:36 +00:00
/ Took: {{ app.timeSinceStart|number_format(5) }} seconds
2018-07-15 22:39:39 +00:00
{% endif %}
2018-03-22 02:56:41 +00:00
</div>
2018-04-16 00:33:54 +00:00
<div class="footer__links">
2018-07-06 01:28:06 +00:00
{{ '#'|html_link('Rules', 'footer__links__link') }} |
{{ '#'|html_link('Contact', 'footer__links__link') }} |
{{ '#'|html_link('Status', 'footer__links__link') }} |
{{ '/changelog.php'|html_link('Changelog', 'footer__links__link') }} |
{{ 'https://twitter.com/flashiinet'|html_link('Twitter', 'footer__links__link') }}
2018-03-22 02:56:41 +00:00
</div>
2018-07-14 15:05:36 +00:00
{% endautoescape %}
2018-03-27 03:15:03 +00:00
</footer>
2018-03-22 02:56:41 +00:00
</div>
2018-07-21 16:01:36 +00:00
<script src="{{ '/js/libraries.js'|asset_url }}" charset="utf-8"></script>
<script>
window.addEventListener('load', () => {
timeago().render(document.querySelectorAll('time'));
2018-05-26 22:26:27 +00:00
hljs.initHighlighting();
});
// move this to an external JS/TS file eventually.
const containerClass = 'container',
containerHiddenClass = 'container--hidden';
function validateContainer(elem) {
return elem.classList.contains(containerClass);
}
function containerIsClosed(elem) {
return elem.classList.contains(containerHiddenClass);
}
function toggleContainer(id) {
const elem = document.getElementById(id);
if (!validateContainer(elem))
return;
if (containerIsClosed(elem))
2018-05-24 19:31:48 +00:00
openContainer(id);
else
2018-05-24 19:31:48 +00:00
closeContainer(id);
}
function openContainer(id) {
const elem = document.getElementById(id);
if (!validateContainer(elem) || !containerIsClosed(elem))
return;
elem.classList.remove(containerHiddenClass);
}
function closeContainer(id) {
const elem = document.getElementById(id);
if (!validateContainer(elem) || containerIsClosed(elem))
return;
elem.classList.add(containerHiddenClass);
}
</script>
2018-03-22 02:56:41 +00:00
</body>
</html>