aboutsummaryrefslogtreecommitdiff
path: root/web/views
diff options
context:
space:
mode:
authorJochen Topf <jochen@topf.org>2015-02-27 09:32:09 +0100
committerJochen Topf <jochen@topf.org>2015-02-27 09:32:09 +0100
commitd81547f3467db9601c8bda723b5607fa1e6b9a1e (patch)
treeddec4aa529917f42164808c7a714ecc28500483e /web/views
parentb27824c4b7696b0947861cf58c398716c8464d86 (diff)
downloadtaginfo-d81547f3467db9601c8bda723b5607fa1e6b9a1e.tar
taginfo-d81547f3467db9601c8bda723b5607fa1e6b9a1e.tar.gz
Add historic development report.
It shows the number of unique keys, tags, and relation types as it changes over time.
Diffstat (limited to 'web/views')
-rw-r--r--web/views/reports/historic_development.erb24
1 files changed, 24 insertions, 0 deletions
diff --git a/web/views/reports/historic_development.erb b/web/views/reports/historic_development.erb
new file mode 100644
index 0000000..d1763b0
--- /dev/null
+++ b/web/views/reports/historic_development.erb
@@ -0,0 +1,24 @@
+<div class="pre">
+ <h1><%= t.reports.historic_development.name %></h1>
+ <%= t.reports.historic_development.intro %>
+</div>
+<div id="tabs">
+ <ul>
+ <li><a href="#num_keys"><%= t.osm.keys %></a></li>
+ <li><a href="#num_tags"><%= t.osm.tags %></a></li>
+ <li><a href="#relation_types"><%= t.osm.relation_types %></a></li>
+ </ul>
+ <div id="num_keys">
+ <h2><%= t.reports.historic_development.keys.title %></h2>
+ <div class="canvas" id="canvas_num_keys"></div>
+ </div>
+ <div id="num_tags">
+ <h2><%= t.reports.historic_development.tags.title %></h2>
+ <div class="canvas" id="canvas_num_tags"></div>
+ </div>
+ <div id="relation_types">
+ <h2><%= t.reports.historic_development.relation_types.title %></h2>
+ <div class="canvas" id="canvas_relation_types"></div>
+ </div>
+</div>
+<% javascript_for(:d3) %>