Class: Decidim::Meetings::DatesAndMapCell
- Inherits:
-
ViewModel
- Object
- ViewModel
- Decidim::Meetings::DatesAndMapCell
- Includes:
- Cell::ViewModel::Partial, Decidim::MapHelper
- Defined in:
- app/cells/decidim/meetings/dates_and_map_cell.rb
Overview
This cell renders the meeting dates range and the map if enabled and available
Instance Method Summary collapse
Instance Method Details
#static_map ⇒ Object
16 17 18 |
# File 'app/cells/decidim/meetings/dates_and_map_cell.rb', line 16 def static_map return render :static_map if display_map? end |
#year ⇒ Object
20 21 22 |
# File 'app/cells/decidim/meetings/dates_and_map_cell.rb', line 20 def year l model.start_time, format: "%Y" end |