db2html: add a 2nd template and implement nav links
[gtk-doc.git] / tools / templates / common.html
blob64b3e868317f92066b9867496c2a7f323b12f2bb
1 {% macro doctype() %}
2 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
3 {% endmacro %}
5 {% macro head_links(home, up, prev, next) %}
6 <link rel="home" href="{{ home[0] }}" title="{{ home[1] }}">
7 {% if up is defined %}
8 <link rel="up" href="{{ up[0] }}" title="{{ up[1] }}">
9 {% endif %}
10 {% if prev is defined %}
11 <link rel="prev" href="{{ prev[0] }}" title="{{ prev[1] }}">
12 {% endif %}
13 {% if next is defined %}
14 <link rel="next" href="{{ next[0] }}" title="{{ next[1] }}">
15 {% endif %}
16 {% endmacro %}
18 {% macro navigation_main(title) %}
19 <table class="navigation" id="top" width="100%" cellpadding="2" cellspacing="0">
20 <tr><th valign="middle"><p class="title">{{ title }}</p></th></tr>
21 </table>
22 {% endmacro %}
24 {% macro navigation_std(title) %}
25 {% endmacro %}
27 {% macro navigation_ref() %}
28 <table class="navigation" id="top" width="100%" cellpadding="2" cellspacing="5">
29 <tr valign="middle">
30 <td width="100%" align="left" class="shortcuts">
31 <a href="#" class="shortcut">Top</a>
32 <span id="nav_description">
33   <span class="dim">|</span> 
34 <a href="#tester-GtkdocTester.description" class="shortcut">Description</a>
35 </span>
36 </td>
37 <td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
38 <td><a accesskey="u" href="ch01.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
39 <td><a accesskey="p" href="ch01.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
40 <td><a accesskey="n" href="api-index.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
41 </tr>
42 </table>
44 {% endmacro %}
46 {% macro navigation_idx(title) %}
47 {% endmacro %}