From 9f39838e8ad5b6b1dda21013152055f8a008acc9 Mon Sep 17 00:00:00 2001 From: Jochen Topf Date: Mon, 14 Jan 2013 19:53:21 +0100 Subject: Add new relations section There is a whole new relations section which gives information about different relation types. There is a list of all relation types and there is a page for each relation type which currently contains an empty overview tab and a roles tab with a list of roles used with this relation type. There is currently no link that leads to this section as it is not finished yet. --- web/taginfo.rb | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'web/taginfo.rb') diff --git a/web/taginfo.rb b/web/taginfo.rb index ab6a96e..d686174 100755 --- a/web/taginfo.rb +++ b/web/taginfo.rb @@ -156,9 +156,9 @@ class Taginfo < Sinatra::Base #------------------------------------- - %w(about download keys sources tags).each do |page| + %w(about download keys relations sources tags).each do |page| get '/' + page do - @title = (page =~ /^(keys|tags)$/) ? t.osm[page] : t.taginfo[page] + @title = (page =~ /^(keys|tags|relations)$/) ? t.osm[page] : t.taginfo[page] if File.exists?("viewsjs/#{ page }.js.erb") javascript "#{ r18n.locale.code }/#{ page }" end @@ -190,6 +190,8 @@ class Taginfo < Sinatra::Base load 'lib/api/v4/key.rb' load 'lib/api/v4/keys.rb' # load 'lib/api/v4/langtag.rb' + load 'lib/api/v4/relation.rb' + load 'lib/api/v4/relations.rb' load 'lib/api/v4/search.rb' load 'lib/api/v4/site.rb' load 'lib/api/v4/tag.rb' @@ -198,6 +200,7 @@ class Taginfo < Sinatra::Base load 'lib/ui/embed.rb' load 'lib/ui/keys_tags.rb' + load 'lib/ui/relation.rb' load 'lib/ui/reports.rb' load 'lib/ui/search.rb' load 'lib/ui/taginfo.rb' -- cgit v1.2.3