summaryrefslogtreecommitdiff
path: root/web/taginfo.rb
diff options
context:
space:
mode:
authorJochen Topf <jochen@topf.org>2012-01-25 20:54:10 +0100
committerJochen Topf <jochen@topf.org>2012-01-25 20:54:10 +0100
commit28d7a98cabf28463c63df74cdfe1d30dfdb5fbd8 (patch)
treef0c22994b24c53eb11afb944a0e1a453980a9190 /web/taginfo.rb
parent1421956f528c8c1053e1593c633fc20f3407737e (diff)
downloadtaginfo-28d7a98cabf28463c63df74cdfe1d30dfdb5fbd8.tar
taginfo-28d7a98cabf28463c63df74cdfe1d30dfdb5fbd8.tar.gz
Javascript cleanup for homepage
Diffstat (limited to 'web/taginfo.rb')
-rwxr-xr-xweb/taginfo.rb7
1 files changed, 0 insertions, 7 deletions
diff --git a/web/taginfo.rb b/web/taginfo.rb
index 174a197..409d60b 100755
--- a/web/taginfo.rb
+++ b/web/taginfo.rb
@@ -147,13 +147,6 @@ class Taginfo < Sinatra::Base
#-------------------------------------
get '/' do
- # This is the maximum number of tags in the tag cloud. Javascript code will remove tags if the
- # window is to small to show all of them.
- tagcloud_number_of_tags = 260
- @tags = @db.select("SELECT key, scale1 FROM popular_keys ORDER BY scale1 DESC LIMIT #{ tagcloud_number_of_tags }").
- execute().
- each_with_index{ |tag, idx| tag['pos'] = (tagcloud_number_of_tags - idx) / tagcloud_number_of_tags.to_f }.
- sort_by{ |row| row['key'] }
erb :index
end