Skip to content

Commit

Permalink
changed links of web template
Browse files Browse the repository at this point in the history
  • Loading branch information
hayamiz committed Dec 14, 2009
1 parent 5d198b0 commit 929d552
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions doc/web/publish.rb
Expand Up @@ -14,6 +14,8 @@ def header(options)
langs = $available_langs.dup
# langs.delete(lang)

page = File.basename(options[:output] || "index.html")

lang_menu_items = langs.map do |l|
rel_dir = "../#{l}"
if lang == "en" && l == "en"
Expand All @@ -23,8 +25,8 @@ def header(options)
elsif l == "en"
rel_dir = ".."
end
"<a href=\"#{rel_dir}/index.html\"><img src=\"#{rel_dir}/images/lang-#{l}.png\" /></a>"

"<a href=\"#{rel_dir}/#{page}\"><img src=\"#{rel_dir}/images/lang-#{l}.png\" /></a>"
end.join("&nbsp;")

ret = <<EOS
Expand Down Expand Up @@ -54,7 +56,7 @@ def header(options)
<div id="menu">
<ul>
<li><img src="./images/logo.png" /></li>
<li><a href="./index.html"><img src="./images/logo.png" /></a></li>
</ul>
</div>
Expand Down

0 comments on commit 929d552

Please sign in to comment.