misuzu/templates/master.twig

52 lines
2.3 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">
2018-08-15 01:12:58 +00:00
{% include '_layout/meta.twig' %}
2018-07-21 16:01:36 +00:00
<link href="{{ '/css/libraries.css'|asset_url }}" rel="stylesheet">
2018-10-29 17:55:10 +00:00
<link href="{{ '/css/style.css'|asset_url }}" rel="stylesheet">
2018-10-27 18:50:34 +00:00
{% if site_background is defined %}
<style>
:root {
2018-10-27 18:50:34 +00:00
--background-width: {{ site_background.width }}px;
--background-height: {{ site_background.height }}px;
--background-image: url('{{ site_background.url|raw }}');
}
</style>
{% endif %}
2018-03-22 02:56:41 +00:00
</head>
2018-10-19 21:38:32 +00:00
<body class="main{% if site_background is defined %} {{ site_background.settings|bg_settings('main--bg-%s')|join(' ') }}{% endif %}"
2018-10-21 22:11:14 +00:00
style="{% if global_accent_colour is defined %}{{ global_accent_colour|html_colour('--accent-colour') }}{% endif %}">
{% include '_layout/header.twig' %}
2018-03-22 02:56:41 +00:00
<div class="main__wrapper">
{% if current_user.ban_expiration|default(0) > 0 or current_user.silence_expiration|default(0) > 0 %}
<div class="warning">
<div class="warning__content">
You have been {{ current_user.silence_expiration ? 'silenced' : 'banned' }} until <strong>{{ (current_user.silence_expiration ? current_user.silence_expiration : current_user.ban_expiration)|date('r') }}</strong>, view the account standing table on <a href="/profile.php?u={{ current_user.user_id }}#account-standing" class="warning__link">your profile</a> to view why.
</div>
</div>
{% endif %}
2018-03-22 02:56:41 +00:00
{% block content %}
2018-10-22 19:53:21 +00:00
This page has no content!
2018-03-22 02:56:41 +00:00
{% endblock %}
</div>
2018-03-22 02:56:41 +00:00
{% include '_layout/footer.twig' %}
{% if current_user is defined %}
<script type="application/json" id="js-user-info">
{{ current_user|json_encode|raw }}
</script>
{% endif %}
<script type="application/json" id="js-csrf-tokens">
{{ get_csrf_tokens()|json_encode|raw }}
</script>
<script src="{{ '/js/libraries.js'|asset_url }}"></script>
<script src="{{ '/js/misuzu.js'|asset_url }}"></script>
2018-03-22 02:56:41 +00:00
</body>
</html>