app/views/tramway/event/events/_show_page.html.haml in tramway-event-1.9.23 vs app/views/tramway/event/events/_show_page.html.haml in tramway-event-1.9.23.1

- old
+ new

@@ -26,19 +26,22 @@ = render 'tramway/landing/blocks/templates/full_page', block: event, buttons: [OpenStruct.new(title: t('.registration'), anchor: '#registration')] - content_for :main_image do = request.protocol + request.host_with_port + event.background.url %main.event.show .container - = render 'tramway/landing/blocks/templates/features_list', collection: sections_as_features + - if defined? sections_as_features + = render 'tramway/landing/blocks/templates/features_list', collection: sections_as_features .row.description .col != event.description #registration = render 'tramway/event/participants/form', event: event - - sections.each_with_index do |section, index| - = render 'tramway/event/sections/show_page', section: section - - if index < sections.count - 1 - %br - = render 'tramway/landing/blocks/templates/features_list', block: OpenStruct.new(title: "Оргкомитет", description: "", anchor: :organizers), collection: people_as_features, options: { image: { css: { class_name: 'circle' } } } + - if defined? sections + - sections.each_with_index do |section, index| + = render 'tramway/event/sections/show_page', section: section + - if index < sections.count - 1 + %br + - if defined? people_as_features + = render 'tramway/landing/blocks/templates/features_list', block: OpenStruct.new(title: "Оргкомитет", description: "", anchor: :organizers), collection: people_as_features, options: { image: { css: { class_name: 'circle' } } } - if defined? ::Tramway::Partner - ::Tramway::Partner::Partnership.partnership_type.values.each do |partnership_type| = render 'tramway/landing/blocks/templates/features_list', block: OpenStruct.new(title: t("enumerize.tramway/partner/partnership.partnership_type.#{partnership_type}")), collection: partners[partnership_type]