db2html: add more content
[gtk-doc.git] / tools / templates / common.html
blobddb4d7edd82ec6e06051a7a68339c6048e4b2af5
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.filename }}" title="{{ home.title }}">
7 {% if up is defined %}
8 <link rel="up" href="{{ up.filename }}" title="{{ up.title }}">
9 {% endif %}
10 {% if prev is defined %}
11 <link rel="prev" href="{{ prev.filename }}" title="{{ prev.title }}">
12 {% endif %}
13 {% if next is defined %}
14 <link rel="next" href="{{ next.filename }}" title="{{ next.title }}">
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_pages(home, up, prev, next) %}
25 <td><a accesskey="h" href="{{ home.filename }}"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
26 {% if up is defined %}
27 <td><a accesskey="u" href="{{ up.filename }}"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
28 {% else %}
29 <td><img src="up-insensitive.png" width="16" height="16" border="0"></td>
30 {% endif %}
31 {% if prev is defined %}
32 <td><a accesskey="p" href="{{ prev.filename }}"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
33 {% else %}
34 <td><img src="left-insensitive.png" width="16" height="16" border="0"></td>
35 {% endif %}
36 {% if next is defined %}
37 <td><a accesskey="n" href="{{ next.filename }}"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
38 {% else %}
39 <td><img src="right-insensitive.png" width="16" height="16" border="0"></td>
40 {% endif %}
41 {% endmacro %}
43 {% macro navigation_std(title) %}
44 {% endmacro %}
46 {% macro navigation_ref(home, up, prev, next) %}
47 <table class="navigation" id="top" width="100%" cellpadding="2" cellspacing="5">
48 <tr valign="middle">
49 <td width="100%" align="left" class="shortcuts">
50 <a href="#" class="shortcut">Top</a>
51 <span id="nav_description">
52   <span class="dim">|</span> 
53 <a href="#tester-GtkdocTester.description" class="shortcut">Description</a>
54 </span>
55 </td>
56 {{ _navigation_pages(home, up, prev, next) }}
57 </tr>
58 </table>
60 {% endmacro %}
62 {% macro navigation_idx(home, up, prev, next) %}
63 <table class="navigation" id="top" width="100%" cellpadding="2" cellspacing="5">
64 <tr valign="middle">
65 <td width="100%" align="left" class="shortcuts">
66 <span id="nav_index">
67 <a class="shortcut" href="#idx0">0</a>
68  <span class="dim">|</span> 
69 <a class="shortcut" href="#idx1">1</a>
70  <span class="dim">|</span> 
71 <a class="shortcut" href="#idx3">3</a>
72  <span class="dim">|</span> 
73 <a class="shortcut" href="#idx4">4</a>
74  <span class="dim">|</span> 
75 <a class="shortcut" href="#idx5">5</a>
76  <span class="dim">|</span> 
77 <a class="shortcut" href="#idx6">6</a>
78  <span class="dim">|</span> 
79 <a class="shortcut" href="#idx7">7</a>
80  <span class="dim">|</span> 
81 <a class="shortcut" href="#idxD">D</a>
82  <span class="dim">|</span> 
83 <a class="shortcut" href="#idxG">G</a>
84  <span class="dim">|</span> 
85 <a class="shortcut" href="#idxM">M</a>
86 </span>
87 </td>
88 {{ _navigation_pages(home, up, prev, next) }}
89 </tr>
90 </table>
91 {% endmacro %}