From b1f478ab12561e9198354405f8126dee271f391f Mon Sep 17 00:00:00 2001 From: Anne Gentle Date: Tue, 1 Nov 2016 11:46:29 -0500 Subject: [PATCH] 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 --- www/errorpage.html | 75 +++++++++++++++++++++-------- www/templates/google_analytics.tmpl | 18 +++++++ www/templates/indexbase.tmpl | 19 +------- 3 files changed, 75 insertions(+), 37 deletions(-) create mode 100644 www/templates/google_analytics.tmpl diff --git a/www/errorpage.html b/www/errorpage.html index 0724ce406..13ba4d1c7 100644 --- a/www/errorpage.html +++ b/www/errorpage.html @@ -1,19 +1,56 @@ - - -404 Not Found - -

Not Found

-

The requested URL was not found on this server.

-

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 the -archived developer.openstack.org site. - -

In case you find missing content, feel free -to report -a bug. -

Go back to the main OpenStack developer site.

- - + + + + +{% set scriptdir = './common/js/' %} +{% set cssdir = './common/css/' %} + + + + 404 Not Found + +{% include 'templates/css.tmpl' %} +{% block content %} + +
+ + + +{% endblock content %} +{% include 'templates/google_analytics.tmpl' %} diff --git a/www/templates/google_analytics.tmpl b/www/templates/google_analytics.tmpl new file mode 100644 index 000000000..14de3694e --- /dev/null +++ b/www/templates/google_analytics.tmpl @@ -0,0 +1,18 @@ + + + \ No newline at end of file diff --git a/www/templates/indexbase.tmpl b/www/templates/indexbase.tmpl index 44615ce9f..f5ee995c6 100644 --- a/www/templates/indexbase.tmpl +++ b/www/templates/indexbase.tmpl @@ -10,24 +10,7 @@ {% include 'templates/css.tmpl' %} - - - + {% include 'templates/google_analytics.tmpl' %} {% include 'templates/header.tmpl' %}