diff options
author | Jochen Topf <jochen@topf.org> | 2015-02-26 16:16:07 +0100 |
---|---|---|
committer | Jochen Topf <jochen@topf.org> | 2015-02-26 16:16:07 +0100 |
commit | 2a61dab2ed4361b880a318e2b1d68317f3a2ae43 (patch) | |
tree | 5606a7134ec1aa693f9ab61c4214e502e52e0598 /web/views | |
parent | 128e7ac9bf397539834148ca9c7b58fd44cbfbf6 (diff) | |
download | taginfo-2a61dab2ed4361b880a318e2b1d68317f3a2ae43.tar taginfo-2a61dab2ed4361b880a318e2b1d68317f3a2ae43.tar.gz |
Add (hidden) similar keys tab on key page and similar keys report.
This commit adds the new tab and new report but doesn't activate them, because
they will not work until the database backend is updated.
Diffstat (limited to 'web/views')
-rw-r--r-- | web/views/key.erb | 6 | ||||
-rw-r--r-- | web/views/reports/similar_keys.erb | 16 |
2 files changed, 22 insertions, 0 deletions
diff --git a/web/views/key.erb b/web/views/key.erb index b13aaf5..8724b24 100644 --- a/web/views/key.erb +++ b/web/views/key.erb @@ -38,6 +38,7 @@ <li><a href="#overview"><%= h(t.taginfo.overview) %></a></li> <li><a href="#values"><%= h(t.osm.values) %></a></li> <li><a href="#combinations"><%= h(t.taginfo.key_combinations) %></a></li> +<!-- <li><a href="#similar"><%= h(t.pages.key.similar.tab) %></a></li>--> <li><a href="#map"><%= h(t.taginfo.map) %></a></li> <li><a href="#wiki"><%= h(t.sources.wiki.name) %></a></li> <li><a href="#projects"><%= h(t.taginfo.projects) %></a></li> @@ -69,6 +70,11 @@ <table id="grid-keys"> </table> </div> +<!-- <div id="similar"> + <h2><%= h(t.pages.key.similar.title) %></h2> + <table id="grid-similar"> + </table> + </div>--> <div id="map"> <h2><%= h(t.pages.key.geographic_distribution.title) %></h2> <% if @filter_type == 'all' %> diff --git a/web/views/reports/similar_keys.erb b/web/views/reports/similar_keys.erb new file mode 100644 index 0000000..cc57929 --- /dev/null +++ b/web/views/reports/similar_keys.erb @@ -0,0 +1,16 @@ +<div class="pre"> + <h1><%= t.reports.similar_keys.name %></h1> + <%= t.reports.similar_keys.intro %> +</div> +<div class="box resize"> + <table id="grid-keys"> + </table> +</div> +<% javascript do + JS.raw(<<"JAVASCRIPT") +function page_init2() { +// create_flexigrid(); +} +JAVASCRIPT +end +%> |