aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v0/html_format.rb
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2007-08-21 21:34:41 +0100
committerRalph Amissah <ralph@amissah.com>2007-08-21 21:34:41 +0100
commit7ef4f9a39e2aeffd9731ac0b68caca4c1b8cf03f (patch)
treefda200da69959ea24f146937bfd9fee843f368c2 /lib/sisu/v0/html_format.rb
parent0.56.3 md5s (diff)
small fixes to manifest and html_scroll, and adjustment to html navigation band use in concordance and manifest
* manifest * use relative link by default * in absence of configured url_root (http://) use info on location on local filesystem (file://) * html outputs, navigation band/banner adjustment, in concordance and manifest * html scroll, fix to document information link in table of contents
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>