Sha256: 573a3ebcf15f8c3d6ff1bd781c18d626c1f55ef09fa687014f7d255ac1492467

Contents?: true

Size: 1013 Bytes

Versions: 2

Compression:

Stored size: 1013 Bytes

Contents

<% if model.registrations_enabled? %>
  <% if model.has_registration_for? current_user %>
    <% if allowed? %>
      <%= button_to conference_conference_registration_path(model),
          method: :delete,
          class: "#{button_classes} secondary light",
          data: { disable: true } do %>
        <%= icon("check", class: "icon--small") %>
        <%= t("going", scope: "decidim.conferences.conference.show") %>
      <% end %>
    <% end %>
  <% else %>
    <%= render :registration_confirm %>
    <% if allowed? %>
      <%= button_to i18n_join_text, "",
          class: button_classes,
          disabled: !model.has_available_slots?,
          onclick: "event.preventDefault()",
          data: { open: current_user.present? ? "conference-registration-confirm-#{model.id}" : "loginModal" } %>
    <% end %>
  <% end %>
  <% if shows_remaining_slots? %>
    <span><%= t("remaining_slots", scope: "decidim.conferences.conference.show", count: model.remaining_slots) %></span>
  <% end %>
<% end %>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
decidim-conferences-0.15.2 app/cells/decidim/conferences/join_conference_button/show.erb
decidim-conferences-0.15.1 app/cells/decidim/conferences/join_conference_button/show.erb