diff --git a/ruby/lib/jam_ruby/models/user.rb b/ruby/lib/jam_ruby/models/user.rb index 1df38f5bb..4956d1958 100644 --- a/ruby/lib/jam_ruby/models/user.rb +++ b/ruby/lib/jam_ruby/models/user.rb @@ -1470,7 +1470,6 @@ module JamRuby def self.stats stats = {} result = User.select('count(CASE WHEN musician THEN 1 ELSE null END) as musician_count, count(CASE WHEN musician = FALSE THEN 1 ELSE null END) as fan_count, count(first_downloaded_client_at) first_downloaded_client_at_count, count(first_ran_client_at) first_ran_client_at_count, count(first_certified_gear_at) first_certified_gear_at_count, count(first_music_session_at) as first_music_session_at_count, count(first_invited_at) first_invited_at_count, count(first_friended_at) as first_friended_at_count, count(first_social_promoted_at) first_social_promoted_at_count, avg(last_jam_audio_latency) last_jam_audio_latency_avg').first - puts "result #{result['musician_count']}" stats['musicians'] = result['musician_count'].to_i stats['fans'] = result['fan_count'].to_i stats['downloaded_client'] = result['first_downloaded_client_at_count'].to_i diff --git a/web/app/views/users/_latest.html.haml b/web/app/views/users/_latest.html.haml deleted file mode 100644 index 470f3a1f3..000000000 --- a/web/app/views/users/_latest.html.haml +++ /dev/null @@ -1,6 +0,0 @@ -.latest - .home-session-list - %h2.latest-head Latest Sessions & Recordings - .latest-body - .session-list-wrapper.content-scroller - = render :partial => "feed_item", :collection => @promo_latest \ No newline at end of file diff --git a/web/app/views/users/_latest.html.slim b/web/app/views/users/_latest.html.slim new file mode 100644 index 000000000..e0ee0ff51 --- /dev/null +++ b/web/app/views/users/_latest.html.slim @@ -0,0 +1,11 @@ +.latest + .home-session-list + - if Rails.application.config.use_promos_on_homepage + h2.latest-head + | Selected Sessions & Recordings + - else + h2.latest-head + | Latest Sessions & Recordings + .latest-body + .session-list-wrapper.content-scroller + = render :partial => "feed_item", :collection => @promo_latest \ No newline at end of file