Sha256: f3cfeb5b532fbff675df5f2cf2079d6cc2ce0d06428e01179675be6317ba61f5

Contents?: true

Size: 995 Bytes

Versions: 13

Compression:

Stored size: 995 Bytes

Contents

<% if model.can_be_joined_by?(current_user) %>
  <% unless model.has_registration_for? current_user %>
    <% 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_modal %>
      <%= action_authorized_button_to(
        :join,
        i18n_join_text,
        "#",
        class: button_classes,
        disabled: !model.has_available_slots?,
        data: { "dialog-open": current_user.present? ? "meeting-registration-confirm-#{model.id}" : "loginModal" }
      ) %>
    <% end %>
  <% end %>

  <% if shows_remaining_slots? %>
    <%= render :remaining_slots %>
  <% end %>

<% elsif model.on_different_platform? %>
  <%= action_authorized_link_to(
    :join,
    i18n_join_text,
    model.registration_url,
    class: button_classes
  ) %>
<% end %>

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
decidim-meetings-0.29.1 app/cells/decidim/meetings/join_meeting_button/show.erb
decidim-meetings-0.28.4 app/cells/decidim/meetings/join_meeting_button/show.erb
decidim-meetings-0.29.0 app/cells/decidim/meetings/join_meeting_button/show.erb
decidim-meetings-0.28.3 app/cells/decidim/meetings/join_meeting_button/show.erb
decidim-meetings-0.29.0.rc4 app/cells/decidim/meetings/join_meeting_button/show.erb
decidim-meetings-0.29.0.rc3 app/cells/decidim/meetings/join_meeting_button/show.erb
decidim-meetings-0.29.0.rc2 app/cells/decidim/meetings/join_meeting_button/show.erb
decidim-meetings-0.29.0.rc1 app/cells/decidim/meetings/join_meeting_button/show.erb
decidim-meetings-0.28.2 app/cells/decidim/meetings/join_meeting_button/show.erb
decidim-meetings-0.28.1 app/cells/decidim/meetings/join_meeting_button/show.erb
decidim-meetings-0.28.0 app/cells/decidim/meetings/join_meeting_button/show.erb
decidim-meetings-0.28.0.rc5 app/cells/decidim/meetings/join_meeting_button/show.erb
decidim-meetings-0.28.0.rc4 app/cells/decidim/meetings/join_meeting_button/show.erb