Do not render message when there are zero participants without demographic data
This commit is contained in:
@@ -36,9 +36,11 @@
|
||||
<div class="row margin">
|
||||
<div class="small-12 column">
|
||||
<div id="total_no_demographic_data">
|
||||
<% if @stats.total_no_demographic_data > 0 %>
|
||||
<p class="help-text">
|
||||
<%= t("stats.no_demographic_data", count: @stats.total_no_demographic_data) %>
|
||||
</p>
|
||||
<% end %>
|
||||
<p class="help-text">
|
||||
<%= t("stats.budgets.participatory_disclaimer") %>
|
||||
</p>
|
||||
|
||||
@@ -16,9 +16,11 @@
|
||||
<%= render "advanced_stats", stats: @stats if @stats.advanced? %>
|
||||
|
||||
<div id="total_no_demographic_data">
|
||||
<% if @stats.total_no_demographic_data > 0 %>
|
||||
<p class="help-text">
|
||||
<%= t("stats.no_demographic_data", count: @stats.total_no_demographic_data) %>
|
||||
</p>
|
||||
<% end %>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -14,7 +14,6 @@ en:
|
||||
total: "Total"
|
||||
geozone: "District"
|
||||
no_demographic_data:
|
||||
zero: ""
|
||||
one: "* There is no demographic data for 1 participant."
|
||||
other: "* There is no demographic data for %{count} participants."
|
||||
budgets:
|
||||
|
||||
Reference in New Issue
Block a user