[% USE Number.Format %] [% stats = c.cobrand.front_stats_data(); new_text = stats.recency == '1 week' ? nget( "%s report in past week", "%s reports in past week", stats.new ) : nget( "%s report recently", "%s reports recently", stats.new ); IF stats.completed.defined; completed_text = nget( "%s completed in past month", "%s completed in past month", stats.completed ); completed_n = stats.completed | format_number; END; IF stats.fixed.defined; fixed_text = nget( "%s fixed in past month", "%s fixed in past month", stats.fixed ); fixed_n = stats.fixed | format_number; END; updates_text = nget( "%s update on reports", "%s updates on reports", stats.updates ); new_n = stats.new | format_number; updates_n = stats.updates | format_number; %]
[% PROCESS 'front/_stats.html' %]