{{extends "/admin/common/base"}}

{{block title()}}访问错误 - Doak CMS{{end}}

{{block body()}}
<div class="container-fluid pt-4 px-4">
    <div class="row vh-100 bg-light rounded align-items-center justify-content-center mx-0">
        <div class="col-md-6 text-center p-4">
            <i class="bi bi-exclamation-triangle display-1 text-primary"></i>
            <h1 class="display-1 fw-bold">Error</h1>
            <h1 class="mb-4">Page Is Error</h1>
            <p class="mb-4">{{ Msg }}</p>
            {{if Url != ""}}
                <p class="mb-4 jump">
                    页面将在 <b id="wait">{{ Wait }}</b> 秒后自动跳转
                </p>
            {{end}}
            <a class="btn btn-primary rounded-pill py-3 px-5" href='{{ adminUrl("") }}'>返回首页</a>
            
            {{if Url != ""}}
                <a class="btn btn-success rounded-pill py-3 px-5" id="href" href="{{ Url|raw }}">立即跳转</a>
            {{end}}
        </div>
    </div>
</div>
{{end}}

{{block script()}}
<script src="/static/admin/js/bootstrap.bundle.min.js" type="3029259e35d7bc1c98cd40a8-text/javascript"></script>
<script src="/static/admin/js/jquery-3.4.1.min.js" type="3029259e35d7bc1c98cd40a8-text/javascript"></script>
<script src="/static/admin/js/easing.min.js" type="3029259e35d7bc1c98cd40a8-text/javascript"></script>
<script src="/static/admin/js/waypoints.min.js" type="3029259e35d7bc1c98cd40a8-text/javascript"></script>
<script src="/static/admin/js/owl.carousel.min.js" type="3029259e35d7bc1c98cd40a8-text/javascript"></script>
<script src="/static/admin/js/moment.min.js" type="3029259e35d7bc1c98cd40a8-text/javascript"></script>
<script src="/static/admin/js/moment-timezone.min.js" type="3029259e35d7bc1c98cd40a8-text/javascript"></script>
<script src="/static/admin/js/tempusdominus-bootstrap-4.min.js" type="3029259e35d7bc1c98cd40a8-text/javascript"></script>

<script src="/static/admin/js/main.js" type="3029259e35d7bc1c98cd40a8-text/javascript"></script>
<script src="/static/admin/js/rocket-loader.min.js" data-cf-settings="3029259e35d7bc1c98cd40a8-|49" defer=""></script>

{{if Url != ""}}
<script type="3029259e35d7bc1c98cd40a8-text/javascript">
;(function(){
    var wait = document.getElementById('wait'),
        href = document.getElementById('href').href;
    var interval = setInterval(function(){
        var time = --wait.innerHTML;
        if(time <= 0) {
            location.href = href;
            clearInterval(interval);
        };
    }, 1000);
})();
</script>
{{end}}

{{end}}
