Class: Decidim::Meetings::CancelRegistrationMeetingButtonCell
- Inherits:
-
ViewModel
- Object
- ViewModel
- Decidim::Meetings::CancelRegistrationMeetingButtonCell
- Includes:
- MeetingCellsHelper
- Defined in:
- app/cells/decidim/meetings/cancel_registration_meeting_button_cell.rb
Overview
This cell renders the button to cancel a meeting registration.
Instance Method Summary collapse
Methods included from MeetingCellsHelper
Methods included from MeetingsHelper
#author_presenter_for, #calculate_start_and_end_time_of_agenda_items, #current_user_groups?, #display_duration_agenda_items, #google_calendar_event_url, #meeting_description, #meeting_type_badge_css_class, #registration_code_help_text, #validation_state_for
Methods included from ApplicationHelper
#activity_filter_values, #apply_meetings_pack_tags, #filter_date_values, #filter_origin_values, #filter_type_values, #iframe_embed_or_live_event_page?, #online_or_hybrid_meeting?, #prevent_timeout_seconds, #render_meeting_body, #render_meeting_sanitize_field, #safe_content?, #safe_content_admin?
Methods included from MapHelper
Instance Method Details
#show ⇒ Object
9 10 11 12 13 14 |
# File 'app/cells/decidim/meetings/cancel_registration_meeting_button_cell.rb', line 9 def show return unless model.can_be_joined_by?(current_user) return unless model.has_registration_for?(current_user) render end |