diff options
author | Jochen Topf <jochen@topf.org> | 2012-01-25 20:54:10 +0100 |
---|---|---|
committer | Jochen Topf <jochen@topf.org> | 2012-01-25 20:54:10 +0100 |
commit | 28d7a98cabf28463c63df74cdfe1d30dfdb5fbd8 (patch) | |
tree | f0c22994b24c53eb11afb944a0e1a453980a9190 /web/taginfo.rb | |
parent | 1421956f528c8c1053e1593c633fc20f3407737e (diff) | |
download | taginfo-28d7a98cabf28463c63df74cdfe1d30dfdb5fbd8.tar taginfo-28d7a98cabf28463c63df74cdfe1d30dfdb5fbd8.tar.gz |
Javascript cleanup for homepage
Diffstat (limited to 'web/taginfo.rb')
-rwxr-xr-x | web/taginfo.rb | 7 |
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 |