Sha256: d65c7e686e85afbb5a47e7c030b0eec1ec0a4c5c78403882ecae2a6cca19fbac
Contents?: true
Size: 1.23 KB
Versions: 9
Compression:
Stored size: 1.23 KB
Contents
<% if model.can_be_joined_by?(current_user) %> <% if model.has_registration_for? current_user %> <%= action_authorized_button_to( :join, meeting_registration_path(model), resource: model, method: :delete, class: "#{button_classes} active", data: { disable: true } ) do %> <%= icon("check", class: "icon--small") %> <%= t("going", scope: "decidim.meetings.meetings.show") %> <% end %> <% else %> <% if model.registration_form_enabled? %> <%= action_authorized_link_to( :join, i18n_join_text, join_meeting_registration_path(model), class: button_classes, disabled: !model.has_available_slots?, ) %> <% else %> <%= render :registration_confirm %> <%= action_authorized_button_to( :join, i18n_join_text, "#", class: button_classes, disabled: !model.has_available_slots?, data: { open: current_user.present? ? "meeting-registration-confirm-#{model.id}" : "loginModal" } ) %> <% end %> <% end %> <% if shows_remaining_slots? %> <span><%= t("remaining_slots", scope: "decidim.meetings.meetings.show", count: model.remaining_slots) %></span> <% end %> <% end %>
Version data entries
9 entries across 9 versions & 1 rubygems