app/views/tramway/event/events/show.html.haml in tramway-event-1.2.2 vs app/views/tramway/event/events/show.html.haml in tramway-event-1.2.3
- old
+ new
@@ -1,39 +1,4 @@
- content_for :title do
= @event.title
- content_for :body_content do
- = stylesheet_link_tag 'tramway/event/events/show'
- - if params[:flash] == 'success'
- .alert.alert-success{role: "alert"}
- %button.close{"aria-label" => "Close", "data-dismiss" => "alert", type: "button"}
- %span{"aria-hidden" => "true"} ×
- %h4.alert-heading Заявка успешно отправлена!
- %p Орг.комитет мероприятия свяжется с вами по одному из указанных вами каналов связи: телефон, email, страница ВКонтакте
- %hr/
- %p.mb-0
- По всем вопросам обращайтесь по телефону
- = tel_tag '+79278023244'
- или пишите на email
- = mail_to 'kalashnikov@ulmic.ru'
- - if params[:flash] == 'error'
- .alert.alert-danger{role: "alert"}
- %button.close{"aria-label" => "Close", "data-dismiss" => "alert", type: "button"}
- %span{"aria-hidden" => "true"} ×
- %h4.alert-heading Ошибка при отправлении заявки!
- %p Подробности ошибки описаны ниже в форме приёма заявок
- %hr/
- %p.mb-0
- Если ошибка повторяется или не отображается, обращайтесь по телефону
- = tel_tag '+79278023244'
- или пишите на email
- = mail_to 'kalashnikov@ulmic.ru'
- = render 'tramway/landing/blocks/templates/full_page', block: @event, buttons: []
- %main
- .container
- = render 'tramway/landing/blocks/templates/features_list', block: OpenStruct.new(title: "Направления IT Way'18", description: "Вы можете выбрать любое из направлений", anchor: :features), collection: @sections_as_features
- %hr
- = render 'tramway/event/participants/form'
- %br
- - @sections.each_with_index do |section, index|
- = render 'tramway/landing/blocks/templates/section_with_image_and_text', block: section
- - if index < @sections.count - 1
- %br
+ = render 'tramway/event/events/show_page', event: @event, sections: @sections, sections_as_features: @sections_as_features