# looking at currently
#
def BuildList(lst, fs, pagePos, cList):
- content = '\n\n<dl>\n'
+ content = '\n\n<ul>\n'
for i in range(len(lst)):
curPos = lst[i]
- nextPos = lst[i + 1] if i + 1 < len(lst) else len(fs)
+ nextPos = lst[i + 1] if i + 1 < len(lst) else len(fs)
active = ' class=active' if curPos == pagePos else ''
menuTitle = fs[curPos]['menu_title'] if 'menu_title' in fs[curPos] else fs[curPos]['title']
- content = content + '<dt' + active + '><a href="/' + fs[curPos]['filename'] + '/">' + menuTitle + '</a></dt><dd' + active + '>'
+ content = content + '<li' + active + '><a href="/' + fs[curPos]['filename'] + '/">' + menuTitle + '</a></li>'
# If the current page is our page, and it has children, enumerate them
if curPos == pagePos:
elif (pagePos > curPos) and (pagePos < nextPos):
content = content + BuildList(cList[curPos], fs, pagePos, cList)
- content = content + '</dd>\n'
-
- content = content + '</dl>\n'
+ content = content + '</ul>\n'
return content
<div class="container-fluid">
<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>
-
- <form id="custom-search-form" class="navbar-form" method="post" action="https://duckduckgo.com">
- <div class="input-group">
- <input type="text" class="form-control" placeholder="Search …" name="q">
- <span class="input-group-btn">
- <button class="btn btn-default" type="submit"><span class="glyphicon glyphicon-search" aria-hidden="true"></span></button>
- <button class="btn btn-default" type="button" onclick="window.location.href='/ardourmanual.html'"><span class="glyphicon glyphicon-book" aria-hidden="true"></span></button>
- </span>
- </div>
- <input type="hidden" name="sites" value="manual.ardour.org"><!-- domain -->
- <input type="hidden" name="kh" value="1"> <!--HTTPS on/off -->
- <input type="hidden" name="kl" value="wt-wt"> <!--region wt-wt = no region/worldwide -->
- <input type="hidden" name="kg" value="p"> <!--get [g] vs post [p] -->
- <input type="hidden" name="k7" value="w"> <!-- background colour -->
- <input type="hidden" name="kj" value="#212a30"> <!-- results page header colour -->
- <input type="hidden" name="kx" value="#59acd4"> <!-- URLs colour -->
- <input type="hidden" name="k1" value="-1"> <!-- adverts on/off -->
- <input type="hidden" name="k9" value="#59acd4"> <!-- links colour -->
- <input type="hidden" name="kaa" value="#2d586c"> <!-- visited links colour -->
- <input type="hidden" name="kae" value="#cc0000"> <!-- theme [changes result titles] colour -->
- <input type="hidden" name="ka" value="junge"> <!-- link font -->
- <input type="hidden" name="kt" value="junge"> <!-- text font -->
- </form>
-
- {% tree %}
-
- </div> <!-- tree-inner -->
+
+ <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">
+ <div class="input-group">
+ <input type="text" class="form-control" placeholder="Search …" name="q">
+ <span class="input-group-btn">
+ <button class="btn btn-default" type="submit"><span class="glyphicon glyphicon-search" aria-hidden="true"></span></button>
+ <button class="btn btn-default" type="button" onclick="window.location.href='/ardourmanual.html'"><span class="glyphicon glyphicon-book" aria-hidden="true"></span></button>
+ </span>
+ </div>
+ <input type="hidden" name="sites" value="manual.ardour.org"><!-- domain -->
+ <input type="hidden" name="kh" value="1"> <!--HTTPS on/off -->
+ <input type="hidden" name="kl" value="wt-wt"> <!--region wt-wt = no region/worldwide -->
+ <input type="hidden" name="kg" value="p"> <!--get [g] vs post [p] -->
+ <input type="hidden" name="k7" value="w"> <!-- background colour -->
+ <input type="hidden" name="kj" value="#212a30"> <!-- results page header colour -->
+ <input type="hidden" name="kx" value="#59acd4"> <!-- URLs colour -->
+ <input type="hidden" name="k1" value="-1"> <!-- adverts on/off -->
+ <input type="hidden" name="k9" value="#59acd4"> <!-- links colour -->
+ <input type="hidden" name="kaa" value="#2d586c"> <!-- visited links colour -->
+ <input type="hidden" name="kae" value="#cc0000"> <!-- theme [changes result titles] colour -->
+ <input type="hidden" name="ka" value="junge"> <!-- link font -->
+ <input type="hidden" name="kt" value="junge"> <!-- text font -->
+ </form>
+
+ {% tree %}
+
</div> <!-- tree -->
<div class="span12" id="content">