adds json view for basic stats
This commit is contained in:
committed by
Juanjo Bazán
parent
3e0dd544a6
commit
07c009e0de
12
app/views/stats/index.json.erb
Normal file
12
app/views/stats/index.json.erb
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
'<%= t('stats.index.visits') %>' : '<%= number_with_delimiter(@visits) %>',
|
||||
'<%= t('stats.index.debates') %>' : <%= number_with_delimiter(@debates) %>',
|
||||
'<%= t('stats.index.proposals') %>' : '<%= number_with_delimiter(@proposals) %>',
|
||||
'<%= t('stats.index.comments') %>' : '<%= number_with_delimiter(@comments) %>',
|
||||
'<%= t('stats.index.proposal_votes') %>' : '<%= number_with_delimiter(@proposal_votes) %>',
|
||||
'<%= t('stats.index.debate_votes') %>' : '<%= number_with_delimiter(@debate_votes) %>',
|
||||
'<%= t('stats.index.comment_votes') %>' : '<%= number_with_delimiter(@comment_votes) %>',
|
||||
'<%= t('stats.index.votes') %>' : '<%= number_with_delimiter(@votes) %>',
|
||||
'<%= t('stats.index.verified_users') %>' : '<%= number_with_delimiter(@verified_users) %>',
|
||||
'<%= t('stats.index.unverified_users') %>' : '<%= number_with_delimiter(@unverified_users) %>'
|
||||
}
|
||||
Reference in New Issue
Block a user