aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v0/html_format.rb
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2007-08-21 21:35:10 +0100
committerRalph Amissah <ralph@amissah.com>2007-08-21 21:35:10 +0100
commitb832e9a1cd1c8669898b4d93fc1cd7199849979a (patch)
tree93316d0ffb998b4c2866f0c2492bad2079f90aa9 /lib/sisu/v0/html_format.rb
parentUpdated sisu-0.56.3 (diff)
parentsmall 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.rb31
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">
+ &nbsp;<a href="index.html" target="_top" alt="-&gt;">
+ #{@vz.png_nav_toc}
+ </a>&nbsp;
+#{@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>