misuzu/templates/master.twig

68 lines
3.1 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' %}
<meta name="csrf-token" value="{{ csrf_token() }}"/>
<link href="/vendor/fontawesome/css/all.min.css" type="text/css" rel="stylesheet"/>
<link href="/vendor/highlightjs/styles/tomorrow-night.css" type="text/css" rel="stylesheet"/>
<link href="/assets/misuzu.css" type="text/css" 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 %}
2019-01-17 01:46:19 +00:00
{% if site_logo is defined %}
<style>
:root {
--site-logo: url('{{ site_logo }}');
}
</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 %}"
2019-12-09 02:41:34 +00:00
style="{% if global_accent_colour is defined %}{{ global_accent_colour|html_colour('--accent-colour') }}{% endif %}" id="container">
2019-01-18 16:00:34 +00:00
{% include '_layout/header.twig' %}
2018-03-22 02:56:41 +00:00
<div class="main__wrapper">
{% if current_user2.hasActiveWarning|default(false) %}
<div class="warning">
<div class="warning__content">
You have been {{ current_user2.isSilenced ? 'silenced' : 'banned' }} {% if current_user2.isActiveWarningPermanent %}<strong>permanently</strong>{% else %}until <strong>{{ current_user2.activeWarningExpiration|date('r') }}</strong>{% endif %}, view the account standing table on <a href="{{ url('user-account-standing', {'user': current_user2.id}) }}" class="warning__link">your profile</a> to view why.
</div>
</div>
{% endif %}
2018-03-22 02:56:41 +00:00
{% block content %}
<div class="container" style="margin: 2px 0; padding: 2px 5px;">
This page is empty, populate it.
</div>
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 %}
2019-01-24 20:54:24 +00:00
<script type="application/json" id="js-urls-list">
{{ url_list()|json_encode|raw }}
</script>
<script type="text/javascript">
window.addEventListener('DOMContentLoaded', function() { Misuzu(); });
</script>
<script src="/vendor/timeago/timeago.min.js" type="text/javascript"></script>
<script src="/vendor/timeago/timeago.locales.min.js" type="text/javascript"></script>
<script src="/vendor/highlightjs/highlight.pack.js" type="text/javascript"></script>
<script src="/assets/misuzu.js" type="text/javascript"></script>
2018-03-22 02:56:41 +00:00
</body>
</html>