No-op: reindenting and commenting page templates

This commit is contained in:
Ed Ward 2019-02-26 11:08:21 +01:00 committed by Len Ovens
parent 8b444dc083
commit 50f1834b65
2 changed files with 81 additions and 72 deletions

View File

@ -13,36 +13,36 @@
</head> </head>
<body> <body>
<div class="container-fluid"> <div class="container-fluid">
<div class="row-fluid"> <div class="row-fluid">
<div id="tree" class="navbar"> <div id="tree" class="navbar">
<h1 class="title"><a href="/"><img class="img-responsive" src="/images/logo.png" alt="The Ardour Manual" /></a></h1> <h1 class="title"><a href="/"><img class="img-responsive" src="/images/logo.png" alt="The Ardour Manual" /></a></h1>
{% tree %} {% tree %}
</div> </div> <!-- navbar -->
<div class="span12" id="content"> <div class="span12" id="content">
<div id="content-main"> <div id="content-main">
{{ content }} {{ content }}
</div> </div> <!-- content-main -->
</div> </div> <!-- content -->
</div> </div> <!-- row-fluid -->
</div> </div> <!-- container-fluid -->
<script type="text/javascript"> <script type="text/javascript">
// I'll go to hell for this // I'll go to hell for this
var isA = function(regex) { return navigator.userAgent.match(regex) }; var isA = function(regex) { return navigator.userAgent.match(regex) };
var isAbout = function(regex) { return document.getElementsByTagName('h1')[1].textContent.match(regex) }; var isAbout = function(regex) { return document.getElementsByTagName('h1')[1].textContent.match(regex) };
if ( (isA(/Mac/) || isAbout(/OS X/)) && (!isAbout(/Linux/)) ) { if ( (isA(/Mac/) || isAbout(/OS X/)) && (!isAbout(/Linux/)) ) {
var e = document.getElementsByTagName('body')[0]; var e = document.getElementsByTagName('body')[0];
e.className += ' mac'; // class magic for Cmd vs. Ctrl keys. e.className += ' mac'; // class magic for Cmd vs. Ctrl keys.
} }
</script> </script>
</body> </body>
</html> </html>

View File

@ -15,12 +15,13 @@
</head> </head>
<body> <body>
<div class="container-fluid"><div class="row-fluid"> <div class="container-fluid">
<div id="tree"><div id="tree-inner"> <div class="row-fluid">
<div id="tree">
<div id="tree-inner">
<h1 class="title"><a href="/"><img class="img-responsive" src="/images/logo.png" alt="The Ardour Manual" /></a></h1> <h1 class="title"><a href="/"><img class="img-responsive" src="/images/logo.png" alt="The Ardour Manual" /></a></h1>
<form id="custom-search-form" class="navbar-form" method="post" action="https://duckduckgo.com"> <form id="custom-search-form" class="navbar-form" method="post" action="https://duckduckgo.com">
<div class="input-group"> <div class="input-group">
<input type="text" class="form-control" placeholder="Search &hellip;" name="q"> <input type="text" class="form-control" placeholder="Search &hellip;" name="q">
<span class="input-group-btn"> <span class="input-group-btn">
@ -43,35 +44,43 @@
<input type="hidden" name="kt" value="junge"> <!-- text font --> <input type="hidden" name="kt" value="junge"> <!-- text font -->
</form> </form>
{% tree %}
</div> <!-- tree-inner -->
</div> <!-- tree -->
{% tree %}
</div></div>
<div class="span12" id="content"> <div class="span12" id="content">
{% breadcrumbs %} {% breadcrumbs %}
<div id="content-main"> <div id="content-main">
{% githubedit %} {% githubedit %}
<h1 class="title">{{ page.title }}</h1> <h1 class="title">{{ page.title }}</h1>
{{ content }} {{ content }}
<div class="clearer"></div> <div class="clearer"></div>
{% prevnext %} {% prevnext %}
</div> </div> <!-- content-main -->
</div> </div> <!-- content -->
</div></div> </div> <!-- row-fluid -->
</div> <!-- container-fluid -->
<script type="text/javascript"> <script type="text/javascript">
// I'll go to hell for this // I'll go to hell for this
var isA = function(regex) { return navigator.userAgent.match(regex) }; var isA = function(regex) { return navigator.userAgent.match(regex) };
var isAbout = function(regex) { return document.getElementsByTagName('h1')[1].textContent.match(regex) }; var isAbout = function(regex) { return document.getElementsByTagName('h1')[1].textContent.match(regex) };
if ( (isA(/Mac/) || isAbout(/OS X/)) && (!isAbout(/Linux/)) ) { if ( (isA(/Mac/) || isAbout(/OS X/)) && (!isAbout(/Linux/)) ) {
var e = document.getElementsByTagName('body')[0]; var e = document.getElementsByTagName('body')[0];
e.className += ' mac'; // class magic for Cmd vs. Ctrl keys. e.className += ' mac'; // class magic for Cmd vs. Ctrl keys.
} }
</script> </script>
</body> </body>
</html> </html>