<%=tr("This application has {count||total user}.", "Dashboard section header", :count => (app.last_total_metric ? app.last_total_metric.user_count : 0))%>
<%=platform_app_rank_tag(app)%>
<%=platform_toggler_tag("stats_content_#{app.id}", "", true)%>
<%=tr("Application Statistics", "Dashboard section header") %>
<%
end_date = Date.today
start_date = end_date - 6.days
index = 0
new_users_data = []
active_users_data = []
while start_date <= end_date do
metric = Platform::DailyApplicationMetric.where("application_id = ? and 'interval' = ?", app.id, start_date).first
new_user_count = metric ? metric.new_user_count : 0
active_user_count = metric ? metric.active_user_count : 0
new_users_data << [start_date.strftime("%m/%d"), new_user_count]
active_users_data << [start_date.strftime("%m/%d"), active_user_count]
start_date += 1
index += 1
end
%>
<%=tr("Daily Active Users", "Dashboard section header") %>
<%=tr("The stats are calculated daily", "Dashboard section header")%>
|
<%=tr("Daily New Users", "Dashboard section header") %>
<%=tr("The stats are calculated daily", "Dashboard section header")%>
|