diff options
author | Ralph Amissah <ralph@amissah.com> | 2007-08-21 21:35:10 +0100 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2007-08-21 21:35:10 +0100 |
commit | b832e9a1cd1c8669898b4d93fc1cd7199849979a (patch) | |
tree | 93316d0ffb998b4c2866f0c2492bad2079f90aa9 /lib/sisu/v0/html_format.rb | |
parent | Updated sisu-0.56.3 (diff) | |
parent | small fixes to manifest and html_scroll, and adjustment to html navigation ba... (diff) |
Merge branch 'upstream' into debian/sid
Diffstat (limited to 'lib/sisu/v0/html_format.rb')
-rw-r--r-- | lib/sisu/v0/html_format.rb | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/lib/sisu/v0/html_format.rb b/lib/sisu/v0/html_format.rb index b78017fd..c568a509 100644 --- a/lib/sisu/v0/html_format.rb +++ b/lib/sisu/v0/html_format.rb @@ -280,6 +280,24 @@ WOK #{@vz.table_close} <p />} end + def concordance_navigation_band(type='') + if type=~/pdf/ + @tocband_concordance=make_concordance + end + %{<table summary="concordance navigation band" id="toc" width="100%" bgcolor=#{@vz.color_band1}> +<tr><td width="20%"> + #{@vz.banner_band} +</td> +<td width="60%" align="center"> + #@tocband_concordance +</td> +<td width="20%" align="right"> + <a href="index.html" target="_top" alt="->"> + #{@vz.png_nav_toc} + </a> +#{@vz.table_close} +<p />} + end def seg_head_navigation_band(type='') if type=~/pdf/ @tocband_segtoc=make_scroll_seg_pdf @@ -348,6 +366,19 @@ WOK #{wgt.home} </tr></table>} end + def make_concordance + manifest=scroll=seg='' + wgt=Widget.new(@md) + %{<table summary="toc scroll and segment with pdf" border="0" cellpadding="3" cellspacing="0"> +<tr> + #{wgt.seg(@vz.nav_txt_toc_link)}#{wgt.scroll(@vz.nav_txt_doc_link)}#{wgt.pdf}#{wgt.odf} +<td align="center" bgcolor=#{@vz.color_band2}> + #{wgt.concordance(@vz.nav_txt_concordance)} + #{wgt.manifest} + #{wgt.search} + #{wgt.home} +</tr></table>} + end def head %{#{doc_type} <head> |