* if promos is selected, then change text to 'Selected Sessions and Recordings' VRFS-2591
This commit is contained in:
parent
5758096f33
commit
82b7c005ec
|
|
@ -1470,7 +1470,6 @@ module JamRuby
|
||||||
def self.stats
|
def self.stats
|
||||||
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
|
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['musicians'] = result['musician_count'].to_i
|
||||||
stats['fans'] = result['fan_count'].to_i
|
stats['fans'] = result['fan_count'].to_i
|
||||||
stats['downloaded_client'] = result['first_downloaded_client_at_count'].to_i
|
stats['downloaded_client'] = result['first_downloaded_client_at_count'].to_i
|
||||||
|
|
|
||||||
|
|
@ -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
|
|
||||||
|
|
@ -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
|
||||||
Loading…
Reference in New Issue