mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-08 10:18:50 +01:00
Use tag cloud objects in view
This allows us to not set the individual instance variables for the tag cloud attributes.
This commit is contained in:
parent
61e04a8258
commit
b5868d5c70
3 changed files with 11 additions and 19 deletions
|
|
@ -552,16 +552,8 @@ class StatsController < ApplicationController
|
|||
end
|
||||
|
||||
def get_stats_tags
|
||||
cloud = Stats::TagCloud.new(current_user)
|
||||
|
||||
@tags_for_cloud = cloud.tags
|
||||
@tags_min = cloud.min
|
||||
@tags_divisor = cloud.divisor
|
||||
|
||||
cloud = Stats::TagCloud.new(current_user, @cut_off_3months)
|
||||
@tags_for_cloud_90days = cloud.tags
|
||||
@tags_min_90days = cloud.min
|
||||
@tags_divisor_90days = cloud.divisor
|
||||
@tag_cloud = Stats::TagCloud.new(current_user)
|
||||
@tag_cloud_90days = Stats::TagCloud.new(current_user, @cut_off_3months)
|
||||
end
|
||||
|
||||
def get_ids_from (actions, week_from, week_to, at_end)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue