diff options
-rw-r--r-- | web/lib/ui/test.rb | 12 | ||||
-rw-r--r-- | web/views/test/index.erb | 1 | ||||
-rw-r--r-- | web/views/test/tags.erb | 8 |
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> |