author | Tero Marttila <terom@fixme.fi> |
Sat, 07 Feb 2009 03:01:46 +0200 | |
changeset 19 | 9c9643047a10 |
parent 12 | 2abc5ace0b15 |
child 20 | d40c339d3778 |
permissions | -rw-r--r-- |
2 | 1 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> |
2 |
||
12 | 3 |
<%def name="render_menu(open_page, page, items, ancestry)"> |
4 |
<ul> |
|
5 |
% for pi in items : |
|
6 |
<li> |
|
7 |
<a href="${site_page_url}/${pi.url}"${' class="selected-page"' if pi == open_page else ''}>${pi.title} ${'»' if pi.children and pi.parent else ''}</a> |
|
8 |
% if pi in ancestry and pi.children and pi.parent : |
|
9 |
${render_menu(page, pi, pi.children, ancestry)} |
|
10 |
% endif |
|
11 |
</li> |
|
12 |
% endfor |
|
13 |
</ul> |
|
14 |
</%def> |
|
15 |
||
2 | 16 |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> |
17 |
<head> |
|
9 | 18 |
<title>qmsk.net :: ${page.title}</title> |
8
0ce1f471e9d7
and it works, a lot better than before
Tero Marttila <terom@fixme.fi>
parents:
6
diff
changeset
|
19 |
<link rel="Stylesheet" type="text/css" href="${site_root_url}/static/style.css" /> |
2 | 20 |
</head> |
21 |
<body> |
|
22 |
<div id="header"> |
|
11 | 23 |
<a href="${site_page_url}/">QMSK.NET</a> |
2 | 24 |
</div> |
12 | 25 |
|
26 |
<div id="nav"> |
|
27 |
${render_menu(menu.page, menu.page, menu.items, menu.ancestry)} |
|
28 |
</div> |
|
2 | 29 |
|
30 |
<div id="content"> |
|
9 | 31 |
${page.content} |
2 | 32 |
</div> |
33 |
</body> |
|
34 |
</html> |
|
35 |