class Decidim::Meetings::CancelRegistrationMeetingButtonCell

This cell renders the button to cancel a meeting registation.

def button_classes

def button_classes
  "button button__sm button__text-secondary"
end

def current_component

def current_component
  model.component
end

def icon_name

def icon_name
  "calendar-close-line"
end

def registration_form

def registration_form
  @registration_form ||= Decidim::Meetings::JoinMeetingForm.new
end

def show

def show
  return unless model.can_be_joined_by?(current_user)
  return unless model.has_registration_for?(current_user)
  render
end