So if we don't have information regarding gender, age or geozone, stats regarding those topics will not be shown. Note we're using `spec/models/statisticable_spec.rb` because having the same file in `spec/models/concerns` caused the tests to be executed twice. Also note the implementation behind the `gender?`, `age?` and `geozone?` methods is a bit primitive. We might need to make it more robust in the future.
18 lines
477 B
Plaintext
18 lines
477 B
Plaintext
<div id="participation_statistics">
|
|
<h3 class="section-title"><%= t("stats.title") %></h3>
|
|
|
|
<div id="total_participants" class="stats-group">
|
|
<h4><%= t("stats.total_participants") %></h4>
|
|
|
|
<%= number_with_info_tags(
|
|
stats.total_participants,
|
|
"",
|
|
html_class: "participants total-participants"
|
|
) %>
|
|
</div>
|
|
|
|
<% stats.participations.each do |participation| %>
|
|
<%= render "shared/stats/#{participation}", stats: stats %>
|
|
<% end %>
|
|
</div>
|