diff options
author | Ralph Amissah <ralph@amissah.com> | 2013-03-25 23:07:56 -0400 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2013-03-25 23:07:56 -0400 |
commit | 88d06e3e9b40289ad2098a9bc7be82d5f1d22b89 (patch) | |
tree | fc217bf7ecb96747a7fa006ad30cd5c01ec896ea /lib/sisu/v4/manifest.rb | |
parent | debian/changelog (4.0.16-1) (diff) | |
parent | v4: version & changelog, dates touched (diff) |
Merge tag 'sisu_4.0.17' into debian/sid
SiSU 4.0.17
Diffstat (limited to 'lib/sisu/v4/manifest.rb')
-rw-r--r-- | lib/sisu/v4/manifest.rb | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/lib/sisu/v4/manifest.rb b/lib/sisu/v4/manifest.rb index 1f5724c5..403271b5 100644 --- a/lib/sisu/v4/manifest.rb +++ b/lib/sisu/v4/manifest.rb @@ -833,14 +833,22 @@ WOK elsif @f.output_dir_structure.by_language_code? \ or @f.output_dir_structure.by_filetype? pth_local=@f.output_path.manifest.dir - pth_rel='./' + pth_rel='.' else pth_local=@f.output_path.base.dir - pth_rel='../' + pth_rel='..' + end + pth_rel_home=if @env.output_dir_structure.by? == :language + '../..' + elsif @env.output_dir_structure.by? == :filetype + '..' + elsif @env.output_dir_structure.by? == :filename + '..' + else '..' end harvest=(FileTest.file?("#{pth_local}/authors#{@fn_lng}.html") \ && FileTest.file?("#{pth_local}/topics#{@fn_lng}.html")) \ - ? %{<p class="small">other document manifests: [<a href="#{pth_rel}authors#{@fn_lng}.html">authors</a>] [<a href="#{pth_rel}topics#{@fn_lng}.html">topics</a>]</p>} + ? %{<p class="small"><a href="#{pth_rel_home}/index.html">.:</a> other document manifests: [<a href="#{pth_rel}/authors#{@fn_lng}.html">authors</a>] [<a href="#{pth_rel}/topics#{@fn_lng}.html">topics</a>]</p>} : '' manifest_title=%{<p class="bold">#{@translate.manifest_description}</p>#{harvest}} @manifest[:html] <<<<WOK |