File: header

package info (click to toggle)
libtemplate-perl 2.14-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, sarge
  • size: 5,496 kB
  • ctags: 667
  • sloc: perl: 15,349; makefile: 62; xml: 7; sh: 5
file content (110 lines) | stat: -rw-r--r-- 2,045 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
[%
    title = "$docset.title $book.name: $page.title";
    INCLUDE html/header;
    select = 1;
    title  = BLOCK;
	INCLUDE splash/text 
		link=rootindex 
		content=docset.title
		style = splash.style.select;
	t1 = page.name == book.name  ? '' : page.name;
	t2 = page.name == page.title ? '' : page.title;
	t3 = t1 and t2 ? "$t1: $t2" : t1 or t2;
	IF t3;
	    t3 = BLOCK;
		'| ';
		INCLUDE splash/text
		    style = splash.style.select
		    content = t3;
	    END;
	END;

	IF book;
	    ' | ';
	    INCLUDE splash/text 
		    link=bookindex 
		    content=book.name
		    style = splash.style.select;
	    t3;
	ELSE;
	    INCLUDE splash/text
		style = splash.style.select
		content = 'Documentation';
	END;
    END;

    IF navleft;
	navigate.0.text = WRAPPER html/table + html/row 
	    valign='middle' width=0
	    pad=0 space=0 border=0;

	    WRAPPER html/cell width=0;
		INCLUDE splash/icon 
		    img  = 'left'
		    link = navigate.0.link;
		' ';
	    END;

	    INCLUDE splash/text
		content=navigate.0.text
		link = navigate.0.link
	    WRAPPER html/cell 
		width=0;
	END;
    END;
    IF navright;
	n = navleft ? 1 : 0;
        h = navleft ? navigate.1 : navigate.0;
        h.text = WRAPPER html/table + html/row
	    valign='middle' width=0
	    pad=0 space=0 border=0;

	    INCLUDE splash/text
		content = h.text
		link = h.link
	    WRAPPER html/cell 
		width=0;

	    WRAPPER html/cell width=0;
		' ';
		INCLUDE splash/icon 
		    img='right'
		    link = h.link;
	    END;
	END;
    END;
-%]

<table border=0 width="100%" cellpadding=0 cellspacing=0>
<tr>
  <td align="right">
[% PROCESS booktabs %]
  </td>
  <td>&nbsp;&nbsp;&nbsp;</td>
</tr>
<tr>
  <td colspan=2>
[%  INCLUDE splash/button 
	content=title 
	width='100%' 
	style=splash.style.select
	align="left"
	bold=0
%]
  </td>
</tr>
</table>

<table border="0" width="100%">
<tr valign="top">
  <td align="left">
    <br>
    <h2>[% page.title or page.name %]</h2>
  </td>
  <td align="right">
[% PROCESS navigate %]
  </td>
</tr>
</table>

[% page.about %]