From 441dce41853082a062afdfac805421f204b64f34 Mon Sep 17 00:00:00 2001 From: Jochen Topf Date: Fri, 27 Feb 2015 09:42:47 +0100 Subject: Make display of new 'similar' tab configurable. There is a setting now in the configuration file. Display is off by default until people have a chance to upgrade their taginfo version, so that the data needed for displaying this is actually available. --- taginfo-config-example.json | 6 ++++++ web/views/key.erb | 10 +++++++--- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/taginfo-config-example.json b/taginfo-config-example.json index 8727d9c..544144f 100644 --- a/taginfo-config-example.json +++ b/taginfo-config-example.json @@ -106,6 +106,12 @@ "tokenizer": "simple" } }, + // Settings for the web user interface + "user_interface": { + "key_page": { + "show_tab_similar": false + } + }, "logging": { // directory for log files "directory": "/osm/taginfo/var/log", diff --git a/web/views/key.erb b/web/views/key.erb index 8724b24..ceb9928 100644 --- a/web/views/key.erb +++ b/web/views/key.erb @@ -38,7 +38,9 @@
  • <%= h(t.taginfo.overview) %>
  • <%= h(t.osm.values) %>
  • <%= h(t.taginfo.key_combinations) %>
  • - +<% if TaginfoConfig.get('user_interface.key_page.show_tab_similar', false) %> +
  • <%= h(t.pages.key.similar.tab) %>
  • +<% end %>
  • <%= h(t.taginfo.map) %>
  • <%= h(t.sources.wiki.name) %>
  • <%= h(t.taginfo.projects) %>
  • @@ -70,11 +72,13 @@
    - + +<% end %>

    <%= h(t.pages.key.geographic_distribution.title) %>

    <% if @filter_type == 'all' %> -- cgit v1.2.3