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.
13 lines
352 B
Plaintext
13 lines
352 B
Plaintext
<p><strong><%= link_to t("stats.title"), "#participation_statistics" %></strong></p>
|
|
<ul class="menu vertical">
|
|
<li>
|
|
<%= link_to t("stats.total_participants"), "#total_participants" %>
|
|
</li>
|
|
|
|
<% stats.participations.each do |stat| %>
|
|
<li>
|
|
<%= link_to t("stats.by_#{stat}"), "#participants_by_#{stat}" %>
|
|
</li>
|
|
<% end %>
|
|
</ul>
|