app/views/decidim/accountability/results/_home_header.html.erb in decidim-accountability-0.1.2 vs app/views/decidim/accountability/results/_home_header.html.erb in decidim-accountability-0.7.0

- old
+ new

@@ -1,24 +1,23 @@ <div class="intro section"> <div class="row"> <div class="small-12 medium-7 columns"> - <%== translated_attribute template_texts.intro %> + <%== translated_attribute feature_settings.intro %> </div> - <div class="small-12 medium-5 columns"> - <div class="progress-level"> - <p><%= t(".global_status") %></p> + <% if progress_calculator(current_scope, nil).present? %> + <div class="small-12 medium-5 columns"> + <div class="progress-level"> + <p><%= t(".global_status") %></p> - <div class="progress"> - <div class="progress-meter" style="width:<%= progress_calculator(current_scope, nil) %>%"></div> - </div> + <div class="progress"> + <div class="progress-meter" style="width:<%= progress_calculator(current_scope, nil) %>%"></div> + </div> - <div class="progress-figure"> - <%= display_percentage progress_calculator(current_scope, nil) %> + <div class="progress-figure"> + <%= display_percentage progress_calculator(current_scope, nil) %> + </div> </div> - - <%= link_to t(".csv_download"), csv_path %> </div> - </div> - + <% end %> </div> </div>