aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJochen Topf <jochen@topf.org>2014-09-19 09:35:57 +0200
committerJochen Topf <jochen@topf.org>2014-09-19 09:35:57 +0200
commite923eca67ece443773022c1c4f6b3650839af722 (patch)
tree5a3311699ba6c017ff601be4bf6068cbe0fb3dc8
parentb7c9bfec2c3541ea89edaaff48f4a957f3ad165d (diff)
downloadtaginfo-e923eca67ece443773022c1c4f6b3650839af722.tar
taginfo-e923eca67ece443773022c1c4f6b3650839af722.tar.gz
Change number of keys/tags/relations for main page.
This makes the tag cloud larger on larger screens. The tag and relation types list on the left don't need as many items, because they are small boxes anyway.
-rw-r--r--web/viewsjs/index.js.erb6
1 files changed, 3 insertions, 3 deletions
diff --git a/web/viewsjs/index.js.erb b/web/viewsjs/index.js.erb
index 29bd4fb..28ab272 100644
--- a/web/viewsjs/index.js.erb
+++ b/web/viewsjs/index.js.erb
@@ -1,9 +1,9 @@
<%
# This is the maximum number of tags in the tag cloud. Javascript code will only show
# as many of them as will fit in the window.
-tagcloud_number_of_keys = 200
-tagcloud_number_of_tags = 40
-tagcloud_number_of_relations = 40
+tagcloud_number_of_keys = 300
+tagcloud_number_of_tags = 30
+tagcloud_number_of_relations = 30
keys = @db.select("SELECT key, scale1 FROM popular_keys ORDER BY scale1 DESC LIMIT #{ tagcloud_number_of_keys }").
execute().
each_with_index{ |tag, idx| tag['pos'] = (tagcloud_number_of_keys - idx) / tagcloud_number_of_keys.to_f }