diff options
author | Jochen Topf <jochen@topf.org> | 2012-01-25 21:30:45 +0100 |
---|---|---|
committer | Jochen Topf <jochen@topf.org> | 2012-01-25 21:30:45 +0100 |
commit | 00801bb205496202bfc20e4e4ed134e939835ea2 (patch) | |
tree | f45c9504046f9e3ca31c912e90aa6f64c9c4accd /web/taginfo.rb | |
parent | de903779fea3d3b52ddcfb4611780e94ca56749b (diff) | |
download | taginfo-00801bb205496202bfc20e4e4ed134e939835ea2.tar taginfo-00801bb205496202bfc20e4e4ed134e939835ea2.tar.gz |
Javascript cleanup
Diffstat (limited to 'web/taginfo.rb')
-rwxr-xr-x | web/taginfo.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/web/taginfo.rb b/web/taginfo.rb index 409d60b..ae59a18 100755 --- a/web/taginfo.rb +++ b/web/taginfo.rb @@ -147,6 +147,7 @@ class Taginfo < Sinatra::Base #------------------------------------- get '/' do + javascript "#{ r18n.locale.code }/index" erb :index end @@ -155,6 +156,9 @@ class Taginfo < Sinatra::Base %w(about download keys sources tags).each do |page| get '/' + page do @title = (page =~ /^(keys|tags)$/) ? t.osm[page] : t.taginfo[page] + if File.exists?("viewsjs/#{ page }.js.erb") + javascript "#{ r18n.locale.code }/#{ page }" + end erb page.to_sym end end |