class Decidim::Meetings::JoinMeetingButtonCell

This cell renders the button to join a meeting.

def big_button?

def big_button?
  options[:big_button]
end

def button_classes

def button_classes
  return "button expanded button--sc" if big_button?
  "button card__button button--sc small"
end

def current_component

def current_component
  model.component
end

def i18n_join_text

def i18n_join_text
  return I18n.t("join", scope: "decidim.meetings.meetings.show") if model.has_available_slots?
  I18n.t("no_slots_available", scope: "decidim.meetings.meetings.show")
end

def show

def show
  render
end

def shows_remaining_slots?

def shows_remaining_slots?
  options[:show_remaining_slots] && model.available_slots.positive?
end