Add headings for advanced statistics
This commit is contained in:
@@ -8,79 +8,94 @@
|
|||||||
<div class="row margin" data-equalizer data-equalize-on="medium">
|
<div class="row margin" data-equalizer data-equalize-on="medium">
|
||||||
<div class="small-12 medium-3 column sidebar" data-equalizer-watch>
|
<div class="small-12 medium-3 column sidebar" data-equalizer-watch>
|
||||||
<%= render "shared/stats/links" %>
|
<%= render "shared/stats/links" %>
|
||||||
|
|
||||||
|
<p><strong><%= link_to t("stats.advanced"), "#advanced_statistics" %></strong></p>
|
||||||
|
<ul class="menu vertical">
|
||||||
|
<li>
|
||||||
|
<%= link_to t("stats.polls.vote_by_channel"), "#vote_stats_by_channel" %>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="small-12 medium-9 column" data-equalizer-watch>
|
<div class="small-12 medium-9 column" data-equalizer-watch>
|
||||||
<%= render "shared/stats/participation", stats: @stats %>
|
<%= render "shared/stats/participation", stats: @stats %>
|
||||||
|
|
||||||
<table class="stack">
|
<div id="advanced_statistics">
|
||||||
<thead>
|
<h3 class="section-title"><%= t("stats.advanced") %></h3>
|
||||||
<tr>
|
|
||||||
<th scope="col"><%= t("polls.show.stats.votes") %></th>
|
<div id="vote_stats_by_channel" class="stats-group">
|
||||||
<th scope="col"><%= t("polls.show.stats.web") %></th>
|
<h4><%= t("stats.polls.vote_by_channel") %></h4>
|
||||||
<th scope="col"><%= t("polls.show.stats.booth") %></th>
|
|
||||||
<th scope="col"><%= t("polls.show.stats.total") %></th>
|
<table class="stack">
|
||||||
</tr>
|
<thead>
|
||||||
</thead>
|
<tr>
|
||||||
<tbody>
|
<th scope="col"><%= t("polls.show.stats.votes") %></th>
|
||||||
<tr>
|
<th scope="col"><%= t("polls.show.stats.web") %></th>
|
||||||
<th scope="row"><%= t("polls.show.stats.valid") %></th>
|
<th scope="col"><%= t("polls.show.stats.booth") %></th>
|
||||||
<td>
|
<th scope="col"><%= t("polls.show.stats.total") %></th>
|
||||||
<%= @stats[:total_web_valid] %>
|
</tr>
|
||||||
<small><em>(<%= @stats[:valid_percentage_web].round(2) %>%)</em></small>
|
</thead>
|
||||||
</td>
|
<tbody>
|
||||||
<td>
|
<tr>
|
||||||
<%= @stats[:total_booth_valid] %>
|
<th scope="row"><%= t("polls.show.stats.valid") %></th>
|
||||||
<small><em>(<%= @stats[:valid_percentage_booth].round(2) %>%)</em></small>
|
<td>
|
||||||
</td>
|
<%= @stats[:total_web_valid] %>
|
||||||
<td>
|
<small><em>(<%= @stats[:valid_percentage_web].round(2) %>%)</em></small>
|
||||||
<%= @stats[:total_valid_votes] %>
|
</td>
|
||||||
<small><em>(<%= @stats[:total_valid_percentage].round(2) %>%)</em></small>
|
<td>
|
||||||
</td>
|
<%= @stats[:total_booth_valid] %>
|
||||||
</tr>
|
<small><em>(<%= @stats[:valid_percentage_booth].round(2) %>%)</em></small>
|
||||||
<tr>
|
</td>
|
||||||
<th scope="row"><%= t("polls.show.stats.white") %></th>
|
<td>
|
||||||
<td>
|
<%= @stats[:total_valid_votes] %>
|
||||||
<%= @stats[:total_web_white] %>
|
<small><em>(<%= @stats[:total_valid_percentage].round(2) %>%)</em></small>
|
||||||
<small><em>(<%= @stats[:white_percentage_web].round(2) %>%)</em></small>
|
</td>
|
||||||
</td>
|
</tr>
|
||||||
<td>
|
<tr>
|
||||||
<%= @stats[:total_booth_white] %>
|
<th scope="row"><%= t("polls.show.stats.white") %></th>
|
||||||
<small><em>(<%= @stats[:white_percentage_booth].round(2) %>%)</em></small>
|
<td>
|
||||||
</td>
|
<%= @stats[:total_web_white] %>
|
||||||
<td><%= @stats[:total_white_votes] %>
|
<small><em>(<%= @stats[:white_percentage_web].round(2) %>%)</em></small>
|
||||||
<small><em>(<%= @stats[:total_white_percentage].round(2) %>%)</em></small>
|
</td>
|
||||||
</td>
|
<td>
|
||||||
</tr>
|
<%= @stats[:total_booth_white] %>
|
||||||
<tr>
|
<small><em>(<%= @stats[:white_percentage_booth].round(2) %>%)</em></small>
|
||||||
<th scope="row"><%= t("polls.show.stats.null_votes") %></th>
|
</td>
|
||||||
<td>
|
<td><%= @stats[:total_white_votes] %>
|
||||||
<%= @stats[:total_web_null] %>
|
<small><em>(<%= @stats[:total_white_percentage].round(2) %>%)</em></small>
|
||||||
<small><em>(<%= @stats[:null_percentage_web].round(2) %>%)</em></small>
|
</td>
|
||||||
</td>
|
</tr>
|
||||||
<td>
|
<tr>
|
||||||
<%= @stats[:total_booth_null] %>
|
<th scope="row"><%= t("polls.show.stats.null_votes") %></th>
|
||||||
<small><em>(<%= @stats[:null_percentage_booth].round(2) %>%)</em></small>
|
<td>
|
||||||
</td>
|
<%= @stats[:total_web_null] %>
|
||||||
<td>
|
<small><em>(<%= @stats[:null_percentage_web].round(2) %>%)</em></small>
|
||||||
<%= @stats[:total_null_votes] %>
|
</td>
|
||||||
<small><em>(<%= @stats[:total_null_percentage].round(2) %>%)</em></small>
|
<td>
|
||||||
</td>
|
<%= @stats[:total_booth_null] %>
|
||||||
</tr>
|
<small><em>(<%= @stats[:null_percentage_booth].round(2) %>%)</em></small>
|
||||||
<tr>
|
</td>
|
||||||
<th scope="row"><%= t("polls.show.stats.total") %></th>
|
<td>
|
||||||
<td>
|
<%= @stats[:total_null_votes] %>
|
||||||
<%= @stats[:total_participants_web] %>
|
<small><em>(<%= @stats[:total_null_percentage].round(2) %>%)</em></small>
|
||||||
<small><em>(<%= @stats[:total_participants_web_percentage].round(2) %>%)</em></small>
|
</td>
|
||||||
</td>
|
</tr>
|
||||||
<td>
|
<tr>
|
||||||
<%= @stats[:total_participants_booth] %>
|
<th scope="row"><%= t("polls.show.stats.total") %></th>
|
||||||
<small><em>(<%= @stats[:total_participants_booth_percentage].round(2) %>%)</em></small>
|
<td>
|
||||||
</td>
|
<%= @stats[:total_participants_web] %>
|
||||||
<td><%= @stats[:total_participants] %></td>
|
<small><em>(<%= @stats[:total_participants_web_percentage].round(2) %>%)</em></small>
|
||||||
</tr>
|
</td>
|
||||||
</tbody>
|
<td>
|
||||||
</table>
|
<%= @stats[:total_participants_booth] %>
|
||||||
|
<small><em>(<%= @stats[:total_participants_booth_percentage].round(2) %>%)</em></small>
|
||||||
|
</td>
|
||||||
|
<td><%= @stats[:total_participants] %></td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
en:
|
en:
|
||||||
stats:
|
stats:
|
||||||
title: "Participation data"
|
title: "Participation data"
|
||||||
|
advanced: "Advanced statistics"
|
||||||
total_participants: "Participants"
|
total_participants: "Participants"
|
||||||
by_gender: "Participants by gender"
|
by_gender: "Participants by gender"
|
||||||
by_age: "Participants by age"
|
by_age: "Participants by age"
|
||||||
@@ -13,3 +14,5 @@ en:
|
|||||||
total: "Total"
|
total: "Total"
|
||||||
geozone: "District"
|
geozone: "District"
|
||||||
geozone_participation: "% District population participation"
|
geozone_participation: "% District population participation"
|
||||||
|
polls:
|
||||||
|
vote_by_channel: "Vote type by channel"
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
es:
|
es:
|
||||||
stats:
|
stats:
|
||||||
title: "Estadísticas de participación"
|
title: "Estadísticas de participación"
|
||||||
|
advanced: "Estadísticas avanzadas"
|
||||||
total_participants: "Participantes"
|
total_participants: "Participantes"
|
||||||
by_gender: "Participación por género"
|
by_gender: "Participación por género"
|
||||||
by_age: "Participación por grupos de edad"
|
by_age: "Participación por grupos de edad"
|
||||||
@@ -13,3 +14,5 @@ es:
|
|||||||
total: "Total"
|
total: "Total"
|
||||||
geozone: "Distrito"
|
geozone: "Distrito"
|
||||||
geozone_participation: "% Partipación población del distrito"
|
geozone_participation: "% Partipación población del distrito"
|
||||||
|
polls:
|
||||||
|
vote_by_channel: "Votos emitidos por medio"
|
||||||
|
|||||||
Reference in New Issue
Block a user