Permalink
Browse files

Older IE styling hack inline; move alpha_disclaimer to bottom.

  • Loading branch information...
1 parent 33223f0 commit 01f438e8594935b9effab43cc5263b4672ca90cc @cpressey cpressey committed Mar 21, 2013
Showing with 29 additions and 39 deletions.
  1. +1 −9 static/chrysoberyl.js
  2. +28 −30 templates/base.html
View
@@ -1,17 +1,9 @@
/*
* Requires jQuery.
+ * Can be loaded at the bottom of the page.
*/
/*
- * First, trick older IE into letting us style HTML5 elements.
- */
-document.createElement('header');
-document.createElement('nav');
-document.createElement('article');
-document.createElement('footer');
-document.createElement('aside');
-
-/*
* Given a CSS class and local URL prefix, apply the class to all links on
* the page which are considered external.
* A link is considered external if it begins with "http://" or "https://"
View
@@ -4,31 +4,39 @@
<title>{%- block title -%}{{ key }} | Cat's Eye Technologies{%- endblock title -%}</title>
<link rel="shortcut icon" type="image/x-icon" href="../../favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
+ {#- This should go before the CSS so that older versions of IE will be tricked
+ into styling these HTML5 elements. -#}
+ <script>
+ document.createElement('header');
+ document.createElement('nav');
+ document.createElement('article');
+ document.createElement('footer');
+ document.createElement('aside');
+ </script>
<link href="../contrib/bootstrap/css/bootstrap.min.css" rel="stylesheet" media="screen">
<link href="../contrib/bootstrap/css/bootstrap-responsive.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="../stylesheet/chrysoberyl.css" />
{%- block extra_head -%}{%- endblock extra_head -%}
</head>
<body>
-
- {%- block alpha_disclaimer -%}<aside id="alpha_disclaimer">
- <p>
- BETA VERSION. UNDER CONSTRUCTION.
- This page was automatically generated from <a href="https://github.com/catseye/Chrysoberyl/">Chrysoberyl</a>.
- Spot an error on this page?
- {# TODO: urlencode instead #}
- <a href="https://github.com/catseye/Chrysoberyl/issues/new?title=problem+with+node+{{ filekey(key)|replace(' ', '+') }}">Report it here!</a>
- </p>
- </aside>{%- endblock alpha_disclaimer -%}
-
<header>
- <div class="row-fluid">
+ <div class="row-fluid" id="breadcrumbs_container">
<div class="span8">
{%- block breadcrumbs -%}
<nav id="breadcrumbs">
<p>{{ breadcrumbs()|join(' » ') }}</p>
</nav>
{%- endblock breadcrumbs -%}
+ </div>
+ <div class="span4">
+ {#- TODO: urlencode instead? -#}
+ {#-
+ <a class="button"
+ title="Report an error on this page"
+ href="https://github.com/catseye/Chrysoberyl/issues/new?title=problem+with+node+{{ filekey(key)|replace(' ', '+') }}">Report Error</a>
+ -#}
+ </div>
+ </div>
{%- block heading -%}
<hgroup id="heading">
@@ -45,24 +53,6 @@ <h2 id="acronym_for">({{ acronym_for }})</h2>
{%- block byline -%}
{%- endblock byline -%}
- </div>
- <div class="span4">
- {#-
- <!--
- <div class="navbar">
- <div class="navbar-inner">
- <ul class="nav">
- <li class="active"><a href="#">Home</a></li>
- <li><a href="#">News</a></li>
- <li><a href="#">Search</a></li>
- </ul>
- </div>
- </div>
- -->
- -#}
- </div>
- </div>
-
{#- TODO: make these less obtrusive. float to right or something. -#}
{%- if esowiki -%}
<p id="esowiki">Esowiki: <a href="http://esolangs.org/wiki/{{ esowiki }}">{{ esowiki }}</a></p>
@@ -168,6 +158,14 @@ <h2 id="acronym_for">({{ acronym_for }})</h2>
{%- block footer -%}<footer>
<p>
+ <small>
+ This page was automatically generated from <a href="https://github.com/catseye/Chrysoberyl/">Chrysoberyl</a>.
+ Spot an error on this page?
+ {# TODO: urlencode instead #}
+ <a href="https://github.com/catseye/Chrysoberyl/issues/new?title=problem+with+node+{{ filekey(key)|replace(' ', '+') }}">Report it here!</a>
+ </small>
+ </p>
+ <p>
<small>Copyright ©2013, Chris Pressey, Cat's Eye Technologies. All rights reserved.</small>
</p>
</footer>{%- endblock footer -%}

0 comments on commit 01f438e

Please sign in to comment.