Adds styled 404 error page for developer.openstack.org migrating to AFS

- Also templatizes the Google Analytics code snippet for
consistency with openstack-manuals for ease of maintenance.

Change-Id: I7b1e1a1dfe894ee71ba2c973488a224a699c0166
This commit is contained in:
Anne Gentle 2016-11-01 11:46:29 -05:00
parent 3c921a1891
commit b1f478ab12
3 changed files with 75 additions and 37 deletions

View File

@ -1,19 +1,56 @@
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html><head> <html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">
<title>404 Not Found</title> <head>
</head><body> <meta content="text/html; charset=UTF-8" http-equiv="Content-Type"/>
<h1>Not Found</h1> {% set scriptdir = './common/js/' %}
<p>The requested URL was not found on this server.</p> {% set cssdir = './common/css/' %}
<p>Note that this server was set up recently and does not contain any <meta charset="utf-8">
OpenStack content published before October 2016. Historic <meta http-equiv="X-UA-Compatible" content="IE=edge">
documentation content <meta name="viewport" content="width=device-width, initial-scale=1">
is available from <a href="http://developer.openstack.org/">the <title>404 Not Found</title>
archived developer.openstack.org site</a>. <!-- CSS in: {{ cssdir }}-->
<!-- Note: This above URL needs changing once we switch over {% include 'templates/css.tmpl' %}
{% block content %}
<!-- Begin Page Content -->
<div class="top-docs-wrapper">
<div class="container">
<div class="row">
<div class="col-lg-8 col-md-8 col-sm-8">
<h1>Not Found</h1>
<p>The requested URL was not found on this server.</p>
<p>Note that this server was set up recently and does not contain any
OpenStack content published before October 2016. Historic
documentation content
is available from <a href="http://developer.openstack.org/">the
archived developer.openstack.org site</a>.
<!-- Note: This above URL needs changing once we switch over
to the new site --> to the new site -->
<p>In case you find missing content, feel free
to <a href="https://bugs.launchpad.net/openstack-api-site/+filebug">report <a href="/">
a bug</a>. <img src="http://www.openstack.org/errors_pages/ui/404/images/404.svg"
<p>Go back to the <a href="/">main OpenStack developer site.</p> onerror="this.onerror=null; this.src=http://www.openstack.org/errors_pages/ui/404/images/404.png" alt="OpenStack 404 Page">
</body> </a>
</html>
<p>In case you find missing content, feel free
to <a href="https://bugs.launchpad.net/openstack-api-site/+filebug">report
a bug</a>.
<p>You can always go back to the <a href="/">main OpenStack documentation site.</p>
<p>Or, try one of these instead.
</p>
<div class="four-o-four-links">
<a href="https://www.openstack.org/software">Software</a>
<a href="https://www.openstack.org/users">Users</a>
<a href="https://www.openstack.org/community">Community</a>
<a href="https://www.openstack.org/marketplace">Marketplace</a>
<a href="https://www.openstack.org/events">Events</a>
<a href="https://www.openstack.org/blog">Blog</a>
<a href="http://docs.openstack.org">Docs</a>
</div>
</div>
</div>
</div>
<!-- End Page Content -->
{% endblock content %}
{% include 'templates/google_analytics.tmpl' %}

View File

@ -0,0 +1,18 @@
<!-- Google Analytics -->
<script>
//<![CDATA[
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-17511903-1']);
_gaq.push(['_setDomainName', '.openstack.org']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
//]]>
</script>
<!-- End Google Analytics -->

View File

@ -10,24 +10,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1"/> <meta name="viewport" content="width=device-width, initial-scale=1"/>
<!-- CSS in: {{ cssdir }}--> <!-- CSS in: {{ cssdir }}-->
{% include 'templates/css.tmpl' %} {% include 'templates/css.tmpl' %}
<!-- Google Analytics --> {% include 'templates/google_analytics.tmpl' %}
<script>
//<![CDATA[
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-17511903-1']);
_gaq.push(['_setDomainName', '.openstack.org']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
//]]>
</script>
<!-- End Google Analytics -->
</head> </head>
<body> <body>
{% include 'templates/header.tmpl' %} {% include 'templates/header.tmpl' %}