app/views/decidim/debates/debates/show.html.erb in decidim-debates-0.28.0 vs app/views/decidim/debates/debates/show.html.erb in decidim-debates-0.28.1

- old
+ new

@@ -52,11 +52,15 @@ <%= cell("decidim/announcement", decidim_sanitize_editor_admin(simple_format(translated_attribute(debate.information_updates), {}, sanitize: false)), callout_class: "success") if translated_attribute(debate.information_updates).present? %> </section> <% end %> <section class="layout-main__section layout-main__buttons" data-buttons> - <% if endorsements_enabled? && allowed_to?(:endorse, :debate, debate: debate) %> - <%= endorsement_buttons_cell(debate) %> + <% if endorsements_enabled? %> + <% if allowed_to?(:endorse, :debate, debate: debate) %> + <%= endorsement_buttons_cell(debate) %> + <% else %> + <%= endorsers_list_cell(debate) %> + <% end %> <% end %> <%= cell "decidim/comments_button", nil %> <div class="ml-auto"> <%= render partial: "decidim/shared/tags", locals: { resource: debate } %>