summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJochen Topf <jochen@topf.org>2013-01-18 20:28:25 +0100
committerJochen Topf <jochen@topf.org>2013-01-18 20:28:25 +0100
commit33936f3da93f8330a8af2116689e610fc50a38e2 (patch)
tree1b08c4b9ea28b51fb7f8225a1eeb433643c3eb3b
parentf5cf79aab997e270cf97b2b1abb39050c130de7a (diff)
downloadtaginfo-33936f3da93f8330a8af2116689e610fc50a38e2.tar
taginfo-33936f3da93f8330a8af2116689e610fc50a38e2.tar.gz
Remove test/tags page
-rw-r--r--web/lib/ui/test.rb12
-rw-r--r--web/views/test/index.erb1
-rw-r--r--web/views/test/tags.erb8
3 files changed, 0 insertions, 21 deletions
diff --git a/web/lib/ui/test.rb b/web/lib/ui/test.rb
index 59c3416..59a68ed 100644
--- a/web/lib/ui/test.rb
+++ b/web/lib/ui/test.rb
@@ -6,18 +6,6 @@ class Taginfo < Sinatra::Base
erb :'test/index'
end
- get! '/test/tags' do
- section :test
- @title = ['Tags', 'Test']
- limit = 300;
- (@min, @max) = @db.select('SELECT min(count) AS min, max(count) AS max FROM popular_keys').get_columns(:min, :max)
- @tags = @db.select("SELECT key, count, (count - ?) / (? - ?) AS scale, in_wiki, in_josm FROM popular_keys ORDER BY count DESC LIMIT #{limit}", @min.to_f, @max, @min).
- execute().
- each_with_index{ |tag, idx| tag['pos'] = (limit - idx) / limit.to_f }.
- sort_by{ |row| row['key'] }
- erb :'test/tags'
- end
-
get '/test/wiki_import' do
section :test
@title = ['Wiki Import', 'Test']
diff --git a/web/views/test/index.erb b/web/views/test/index.erb
index db0cb48..00da1c9 100644
--- a/web/views/test/index.erb
+++ b/web/views/test/index.erb
@@ -5,7 +5,6 @@
<div class="box resize">
<h2>Test pages</h2>
<ul>
- <li><a href="/test/tags">Tags</a></li>
<li><a href="/test/wiki_import">Wiki import</a></li>
<li><a href="/test/potlatch">Potlatch</a></li>
</ul>
diff --git a/web/views/test/tags.erb b/web/views/test/tags.erb
deleted file mode 100644
index 3f91c18..0000000
--- a/web/views/test/tags.erb
+++ /dev/null
@@ -1,8 +0,0 @@
-<div class="pre">
- <h1>Tags</h1>
-</div>
-<div class="box resize">
-<% @tags.each do |tag| %>
- <a href="/tags/<%= h tag['key'] %>" class="popkey" style="font-size: <%= tagcloud_size(tag) %>px;" title="<%= tag['count'] %>"><%= h tag['key'] %></a>
-<% end %>
-</div>