Convert 40X and 500 error pages to new template.

This commit is contained in:
Ivan Filippov 2016-04-21 23:30:41 -06:00
parent 6db41d42c4
commit 26c4606834
4 changed files with 116 additions and 197 deletions

View File

@ -1,59 +1,37 @@
{% extends "base.html" %} {% extends "base.html" %}
{% block head %}
{{ super() }}
<!-- BEGIN PAGE LEVEL PLUGIN STYLES -->
<link href="{{ url_for('static', filename='admin/pages/css/error.css') }}" rel="stylesheet" type="text/css"/>
<!-- END PAGE LEVEL PLUGIN STYLES -->
<!-- BEGIN THEME STYLES -->
<!-- DOC: To use 'rounded corners' style just load 'components-rounded.css' stylesheet instead of 'components.css' in the below style tag -->
<link href="{{ url_for('static', filename='global/css/components-md.css') }}" id="style_components" rel="stylesheet" type="text/css"/>
<link href="{{ url_for('static', filename='global/css/plugins-md.css') }}" rel="stylesheet" type="text/css"/>
<link href="{{ url_for('static', filename='admin/layout2/css/layout.css') }}" rel="stylesheet" type="text/css"/>
<link href="{{ url_for('static', filename='admin/layout2/css/themes/grey.css') }}" rel="stylesheet" type="text/css" id="style_color"/>
<link href="{{ url_for('static', filename='admin/layout2/css/custom.css') }}" rel="stylesheet" type="text/css"/>
<!-- END THEME STYLES -->
{% endblock %}
{% block title %}<title>DNS Control Panel - 400 Error</title>{% endblock %} {% block title %}<title>DNS Control Panel - 400 Error</title>{% endblock %}
{% block dashboard_stat %} {% block dashboard_stat %}
<!-- Content Header (Page header) -->
<section class="content-header">
<h1>
400
<small>Error</small>
</h1>
<ol class="breadcrumb">
<li><a href="{{ url_for('dashboard') }}"><i class="fa fa-dashboard"></i>Home</a></li>
<li>400</li>
</ol>
</section>
{% endblock %} {% endblock %}
{% block content %} {% block content %}
<div class="clearfix"> <!-- Main content -->
</div> <section class="content">
<div class="error-page">
<!-- BEGIN PAGE CONTENT--> <h2 class="headline text-yellow">400</h2>
<div class="row"> <div class="error-content">
<div class="col-md-12 page-500"> <h3>
<div class=" number"> <i class="fa fa-warning text-yellow"></i> Oops! Bad request
400 </h3>
</div> <p>
<div class=" details"> The server refused to process your request and return a 400 error.
<h3>Bad Request</h3> You may <a href="{{ url_for('dashboard') }}">return to the dashboard</a>.
<p> </p>
{% if msg %} </div>
<p>Message: {{ msg }}<p> <!-- /.error-content -->
{% endif %} </div>
<a href="{{ url_for('index')}}"><strong>Click here</strong></a> to go home<br/><br/> <!-- /.error-page -->
</p> </section>
</div> <!-- /.content -->
</div>
</div>
<!-- END PAGE CONTENT-->
{% endblock %}
{% block scripts %}
{{ super() }}
<!-- BEGIN PAGE LEVEL SCRIPTS -->
<script src="{{ url_for('static', filename='global/scripts/metronic.js') }}" type="text/javascript"></script>
<script src="{{ url_for('static', filename='admin/layout2/scripts/layout.js') }}" type="text/javascript"></script>
<script>
jQuery(document).ready(function() {
Metronic.init(); // init metronic core componets
Layout.init(); // init layout
});
</script>
<!-- END JAVASCRIPTS -->
{% endblock %} {% endblock %}

View File

@ -1,56 +1,37 @@
{% extends "base.html" %} {% extends "base.html" %}
{% block head %}
{{ super() }}
<!-- BEGIN PAGE LEVEL PLUGIN STYLES -->
<link href="{{ url_for('static', filename='admin/pages/css/error.css') }}" rel="stylesheet" type="text/css"/>
<!-- END PAGE LEVEL PLUGIN STYLES -->
<!-- BEGIN THEME STYLES -->
<!-- DOC: To use 'rounded corners' style just load 'components-rounded.css' stylesheet instead of 'components.css' in the below style tag -->
<link href="{{ url_for('static', filename='global/css/components-md.css') }}" id="style_components" rel="stylesheet" type="text/css"/>
<link href="{{ url_for('static', filename='global/css/plugins-md.css') }}" rel="stylesheet" type="text/css"/>
<link href="{{ url_for('static', filename='admin/layout2/css/layout.css') }}" rel="stylesheet" type="text/css"/>
<link href="{{ url_for('static', filename='admin/layout2/css/themes/grey.css') }}" rel="stylesheet" type="text/css" id="style_color"/>
<link href="{{ url_for('static', filename='admin/layout2/css/custom.css') }}" rel="stylesheet" type="text/css"/>
<!-- END THEME STYLES -->
{% endblock %}
{% block title %}<title>DNS Control Panel - 401 Error</title>{% endblock %} {% block title %}<title>DNS Control Panel - 401 Error</title>{% endblock %}
{% block dashboard_stat %} {% block dashboard_stat %}
<!-- Content Header (Page header) -->
<section class="content-header">
<h1>
401
<small>Error</small>
</h1>
<ol class="breadcrumb">
<li><a href="{{ url_for('dashboard') }}"><i class="fa fa-dashboard"></i>Home</a></li>
<li>401</li>
</ol>
</section>
{% endblock %} {% endblock %}
{% block content %} {% block content %}
<div class="clearfix"> <!-- Main content -->
</div> <section class="content">
<div class="error-page">
<!-- BEGIN PAGE CONTENT--> <h2 class="headline text-yellow">401</h2>
<div class="row"> <div class="error-content">
<div class="col-md-12 page-500"> <h3>
<div class=" number"> <i class="fa fa-warning text-yellow"></i> Oops! Access denied
401 </h3>
</div> <p>
<div class=" details"> You don't have permission to access this page
<h3>You don't have permission to access this page.</h3> You may <a href="{{ url_for('dashboard') }}">return to the dashboard</a>.
<p> </p>
<a href="{{ url_for('index')}}"><strong>Click here</strong></a> to go home<br/><br/> </div>
</p> <!-- /.error-content -->
</div> </div>
</div> <!-- /.error-page -->
</div> </section>
<!-- END PAGE CONTENT--> <!-- /.content -->
{% endblock %}
{% block scripts %}
{{ super() }}
<!-- BEGIN PAGE LEVEL SCRIPTS -->
<script src="{{ url_for('static', filename='global/scripts/metronic.js') }}" type="text/javascript"></script>
<script src="{{ url_for('static', filename='admin/layout2/scripts/layout.js') }}" type="text/javascript"></script>
<script>
jQuery(document).ready(function() {
Metronic.init(); // init metronic core componets
Layout.init(); // init layout
});
</script>
<!-- END JAVASCRIPTS -->
{% endblock %} {% endblock %}

View File

@ -1,57 +1,37 @@
{% extends "base.html" %} {% extends "base.html" %}
{% block head %}
{{ super() }}
<!-- BEGIN PAGE LEVEL PLUGIN STYLES -->
<link href="{{ url_for('static', filename='admin/pages/css/error.css') }}" rel="stylesheet" type="text/css"/>
<!-- END PAGE LEVEL PLUGIN STYLES -->
<!-- BEGIN THEME STYLES -->
<!-- DOC: To use 'rounded corners' style just load 'components-rounded.css' stylesheet instead of 'components.css' in the below style tag -->
<link href="{{ url_for('static', filename='global/css/components-md.css') }}" id="style_components" rel="stylesheet" type="text/css"/>
<link href="{{ url_for('static', filename='global/css/plugins-md.css') }}" rel="stylesheet" type="text/css"/>
<link href="{{ url_for('static', filename='admin/layout2/css/layout.css') }}" rel="stylesheet" type="text/css"/>
<link href="{{ url_for('static', filename='admin/layout2/css/themes/grey.css') }}" rel="stylesheet" type="text/css" id="style_color"/>
<link href="{{ url_for('static', filename='admin/layout2/css/custom.css') }}" rel="stylesheet" type="text/css"/>
<!-- END THEME STYLES -->
{% endblock %}
{% block title %}<title>DNS Control Panel - 404 Error</title>{% endblock %} {% block title %}<title>DNS Control Panel - 404 Error</title>{% endblock %}
{% block dashboard_stat %} {% block dashboard_stat %}
<!-- Content Header (Page header) -->
<section class="content-header">
<h1>
404
<small>Error</small>
</h1>
<ol class="breadcrumb">
<li><a href="{{ url_for('dashboard') }}"><i class="fa fa-dashboard"></i>Home</a></li>
<li>404</li>
</ol>
</section>
{% endblock %} {% endblock %}
{% block content %} {% block content %}
<div class="clearfix"> <!-- Main content -->
</div> <section class="content">
<div class="error-page">
<!-- BEGIN PAGE CONTENT--> <h2 class="headline text-yellow">404</h2>
<div class="row"> <div class="error-content">
<div class="col-md-12 page-500"> <h3>
<div class=" number"> <i class="fa fa-warning text-yellow"></i> Oops! You're lost
404 </h3>
</div> <p>
<div class=" details"> The page you requested could not be found.
<h3>Oops! You're lost.</h3> You may <a href="{{ url_for('dashboard') }}">return to the dashboard</a>.
<p> </p>
We can not find the page you're looking for.<br/> </div>
<a href="{{ url_for('index')}}"><strong>Click here</strong></a> to go home<br/><br/> <!-- /.error-content -->
</p> </div>
</div> <!-- /.error-page -->
</div> </section>
</div> <!-- /.content -->
<!-- END PAGE CONTENT-->
{% endblock %}
{% block scripts %}
{{ super() }}
<!-- BEGIN PAGE LEVEL SCRIPTS -->
<script src="{{ url_for('static', filename='global/scripts/metronic.js') }}" type="text/javascript"></script>
<script src="{{ url_for('static', filename='admin/layout2/scripts/layout.js') }}" type="text/javascript"></script>
<script>
jQuery(document).ready(function() {
Metronic.init(); // init metronic core componets
Layout.init(); // init layout
});
</script>
<!-- END JAVASCRIPTS -->
{% endblock %} {% endblock %}

View File

@ -1,57 +1,37 @@
{% extends "base.html" %} {% extends "base.html" %}
{% block head %}
{{ super() }}
<!-- BEGIN PAGE LEVEL PLUGIN STYLES -->
<link href="{{ url_for('static', filename='admin/pages/css/error.css') }}" rel="stylesheet" type="text/css"/>
<!-- END PAGE LEVEL PLUGIN STYLES -->
<!-- BEGIN THEME STYLES -->
<!-- DOC: To use 'rounded corners' style just load 'components-rounded.css' stylesheet instead of 'components.css' in the below style tag -->
<link href="{{ url_for('static', filename='global/css/components-md.css') }}" id="style_components" rel="stylesheet" type="text/css"/>
<link href="{{ url_for('static', filename='global/css/plugins-md.css') }}" rel="stylesheet" type="text/css"/>
<link href="{{ url_for('static', filename='admin/layout2/css/layout.css') }}" rel="stylesheet" type="text/css"/>
<link href="{{ url_for('static', filename='admin/layout2/css/themes/grey.css') }}" rel="stylesheet" type="text/css" id="style_color"/>
<link href="{{ url_for('static', filename='admin/layout2/css/custom.css') }}" rel="stylesheet" type="text/css"/>
<!-- END THEME STYLES -->
{% endblock %}
{% block title %}<title>DNS Control Panel - 500 Error</title>{% endblock %} {% block title %}<title>DNS Control Panel - 500 Error</title>{% endblock %}
{% block dashboard_stat %} {% block dashboard_stat %}
<!-- Content Header (Page header) -->
<section class="content-header">
<h1>
500
<small>Error</small>
</h1>
<ol class="breadcrumb">
<li><a href="{{ url_for('dashboard') }}"><i class="fa fa-dashboard"></i>Home</a></li>
<li>500</li>
</ol>
</section>
{% endblock %} {% endblock %}
{% block content %} {% block content %}
<div class="clearfix"> <!-- Main content -->
</div> <section class="content">
<div class="error-page">
<!-- BEGIN PAGE CONTENT--> <h2 class="headline text-yellow">500</h2>
<div class="row"> <div class="error-content">
<div class="col-md-12 page-500"> <h3>
<div class=" number"> <i class="fa fa-warning text-yellow"></i> Oops! Something went wrong
500 </h3>
</div> <p>
<div class=" details"> Try again later.
<h3>Oops! Something went wrong.</h3> You may <a href="{{ url_for('dashboard') }}">return to the dashboard</a>.
<p> </p>
Please come back in a while.<br/> </div>
<a href="{{ url_for('index')}}"><strong>Click here</strong></a> to go home<br/><br/> <!-- /.error-content -->
</p> </div>
</div> <!-- /.error-page -->
</div> </section>
</div> <!-- /.content -->
<!-- END PAGE CONTENT-->
{% endblock %}
{% block scripts %}
{{ super() }}
<!-- BEGIN PAGE LEVEL SCRIPTS -->
<script src="{{ url_for('static', filename='global/scripts/metronic.js') }}" type="text/javascript"></script>
<script src="{{ url_for('static', filename='admin/layout2/scripts/layout.js') }}" type="text/javascript"></script>
<script>
jQuery(document).ready(function() {
Metronic.init(); // init metronic core componets
Layout.init(); // init layout
});
</script>
<!-- END JAVASCRIPTS -->
{% endblock %} {% endblock %}