hanyuu/templates/oauth2/master.twig

46 lines
2.2 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">
2024-07-30 21:24:20 +00:00
{% set body_header_icon = body_header_icon|default('') %}
<div class="oauth2-simplehead js-oauth2-header-simple{% if body_header_icon == '' %} hidden{% endif %}">
<div class="oauth2-simplehead-icon oauth2-simplehead-icon--{{ body_header_icon }} js-oauth2-header-simple-icon"></div>
<div class="oauth2-simplehead-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>