% missing_questions = missing_verifications_for(setting&.consultation&.questions, "vote") %>
<% missing_registered = missing_registered_users(setting&.participants) %>
<% total_missing_authorizations = total_missing_authorizations(setting&.participants) %>
<% status_err = (missing_questions.present? || missing_registered.present? || setting.participants.blank? || total_missing_authorizations.positive?)
if setting&.consultation&.questions&.count == missing_questions.count
status_err = false
end %>
<%= render "decidim/action_delegator/admin/settings/participants_sync_check", setting: setting %>
text-left">
<% if setting.consultation %>
<% if missing_questions.present? %>
- ">
<%= t(".consultation_questions_missing_verifier_html", count: missing_questions.count) %>
<%= link_to t(".click_to_fix"), decidim_admin_action_delegator.setting_permissions_path(setting), method: :post %>
<% else %>
- <%= t(".consultation_questions_all_verified_html") %>
<% end %>
<% end %>
<% if setting.participants.any? %>
<% if missing_registered.present? %>
- <%= t(".missing_registered_users_html", count: missing_registered.count) %>
<% else %>
- <%= t(".all_users_registered_html") %>
<% end %>
<% if total_missing_authorizations.positive? %>
- "><%= t(".missing_authorizations_html", count: total_missing_authorizations) %>
<% else %>
- <%= t(".all_users_authorized_html") %>
<% end %>
<% else %>
- <%= t(".no_participants_html") %>
<% end %>
<% unless setting.ponderations.any? %>
- <%= t(".no_ponderations_html") %>
<% end %>
<% unless setting.delegations.any? %>
- <%= t(".no_delegations_html") %>
<% end %>