From 280d46e9c343f802d9cec108d5229ec5ec120b2c Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Sun, 10 Mar 2013 14:52:22 -0400 Subject: v4: html_format, manifest red arrow, next (segment), (broken) link fix, to toc --- lib/sisu/v4/html_format.rb | 15 ++++++++++++--- lib/sisu/v4/manifest.rb | 7 +++---- 2 files changed, 15 insertions(+), 7 deletions(-) (limited to 'lib') diff --git a/lib/sisu/v4/html_format.rb b/lib/sisu/v4/html_format.rb index d2c12154..1bdd7182 100644 --- a/lib/sisu/v4/html_format.rb +++ b/lib/sisu/v4/html_format.rb @@ -297,6 +297,7 @@ module SiSU_HTML_Format @md=md @o_str ||=SiSU_Env::ProcessingSettings.new(md).output_dir_structure @make=SiSU_Env::ProcessingSettings.new(@md) + @file=SiSU_Env::FileOp.new(@md) end def scroll_head_navigation_band if @make.build.html_top_band? @@ -338,9 +339,17 @@ WOK end end def seg_head_navigation_band(page=:seg) - firstseg=%{ - #{png_nav.nxt} - } if @md.firstseg =~/\S+/ + if page==:manifest + nxt=(@file.output_dir_structure.by_language_code? \ + || @file.output_dir_structure.by_filetype?) \ + ? "../html/#{@md.fnb}/toc#{@md.lang_code_insert}#{Sfx[:html]}" + : "toc#{@md.lang_code_insert}#{Sfx[:html]}" + firstseg=%{ + #{png_nav.nxt}} + elsif @md.firstseg =~/\S+/ + firstseg=%{ + #{png_nav.nxt}} + end %{" - else '' - end + search_form=(make.build.search_form?) \ + ? "" + : '' format_head_toc=SiSU_HTML_Format::HeadToc.new(@md) @manifest[:html] <<<
#{button_home(page)} diff --git a/lib/sisu/v4/manifest.rb b/lib/sisu/v4/manifest.rb index cb34a3d3..80373663 100644 --- a/lib/sisu/v4/manifest.rb +++ b/lib/sisu/v4/manifest.rb @@ -785,10 +785,9 @@ WOK minitoc=SiSU_HTML_MiniToc::TocMini.new(@md,data).songsheet.join("\n") id,file='','' vz=SiSU_Viz::Defaults.new - search_form=if make.build.search_form? - "#{@env.widget_static.search_form}#{@env.widget_static.search_form}