hanyuu/templates/oauth2/master.twig

45 lines
2.1 KiB
Twig
Raw Normal View History

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<title>{% if title is defined %}{{ title }} :: {% endif %}{{ globals.siteInfo.name }}</title>
<link href="{{ asset('hanyuu.css') }}" rel="stylesheet">
<link href="{{ asset('oauth2.css') }}" rel="stylesheet">
{% if csrfp_token is defined %}
<meta name="csrfp-token" content="{{ csrfp_token }}">
{% endif %}
</head>
<body>
<div class="oauth2-wrapper">
<div class="oauth2-dialog">
<div class="oauth2-dialog-body">
{% block body %}
{% block body_header %}
<header class="oauth2-header js-oauth2-header">
<div class="oauth2-{{ body_header_class|default('') }} js-oauth2-header-simple">
<div class="oauth2-{{ body_header_class|default('') }}-icon js-oauth2-header-simple-icon"></div>
<div class="oauth2-{{ body_header_class|default('') }}-text js-oauth2-header-simple-text">
{{ body_header_text|default('') }}
</div>
</div>
</header>
{% endblock %}
<div class="oauth2-body">
<div class="oauth2-banner">
<div class="oauth2-banner-text">{{ body_title|default('') }}</div>
<div class="oauth2-banner-logo">{{ globals.siteInfo.name }}</div>
</div>
{% block body_content %}{% endblock %}
</div>
{% endblock %}
</div>
</div>
</div>
<script src="{{ asset('hanyuu.js') }}"></script>
<script src="{{ asset('oauth2.js') }}"></script>
</body>
</html>