Merge pull request #3155 from jaflutz/2824-options-display-results-polls

Enable options to show stats and results with any type of voter
This commit is contained in:
Julian Nicolas Herrero
2019-03-06 11:14:54 +01:00
committed by GitHub
2 changed files with 64 additions and 55 deletions

View File

@@ -5,14 +5,19 @@
<h3><%= t("admin.results.index.title") %></h3>
<% if @partial_results.empty? %>
<% if @partial_results.empty? && @poll.voters.empty? %>
<div class="callout primary margin-top">
<%= t("admin.results.index.no_results") %>
</div>
<% else %>
<% end %>
<% if !@partial_results.empty? %>
<%= render "recount", resource: @poll %>
<%= render "result" %>
<%= render "results_by_booth" %>
<% end %>
<% if !@poll.voters.empty? %>
<%= render "show_results", resource: @poll %>
<% end %>
</div>