tramway-event 1.12 → 1.12.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c4346908bef28bd8fc02c3e3ffa5eadc70c3c984fa777bfdcac1b5bbb2dd083e
4
- data.tar.gz: 95ff1569b4efa5bb3db915652cc1f1e469ba55fac9b1b680f15bafa95c41028a
3
+ metadata.gz: 9d9f5ee0282d80240ee84fc78f7d3562dd96e5092638db8035fe02274215739a
4
+ data.tar.gz: 6f9c93594ce896586adfceb26e3c46c77a0162667261ebadeca122f2e0da409f
5
5
  SHA512:
6
- metadata.gz: 1cc8ff84f9168eed351be3fb5ec9a4407057186aeaedd6feae3230d78c5bbcd7ff78db31382bdebddfb4acf46972731cac78abd1dd710d1099e307df1be29918
7
- data.tar.gz: 0627d80603bfcb547bcbf2fa4e5121db895426f439a49e6f14e1db03a966c44b5b64f5acb35bcca64b38f625b2c2b06d7cf90155209db8e3b0e6377711826a26
6
+ metadata.gz: 01e5265ac663a60bed6a886109c04093acab7763c12f82777f6797c65d032506a7779f38162278514ecca9cebe52128c81f35704f58bcf9555b8cbffa9b0883d
7
+ data.tar.gz: 2e92bca01081dd30f1bb25f9ddd1d132140818bfdcb2d3a0111881bdced91ece6d6ed2d5713da54e6734fd7e6885a207d7ce5ba69425a4736c124fd2bca2e38d
@@ -1,8 +1,17 @@
1
1
  = stylesheet_link_tag 'tramway/event/events/show'
2
2
  - if params[:flash] == 'success'
3
- = render 'tramway/event/events/success'
3
+ = render 'tramway/landing/templates/alert', alert_type: :success, title: 'Заявка отправлена успешно!' do
4
+ По всем вопросам обращайтесь по телефону
5
+ = tel_tag @event.responsible_person[:phone] || @application.phone
6
+ или пишите на email
7
+ = mail_to @event.responsible_person[:email] || @application.email
4
8
  - if params[:flash] == 'error'
5
- = render 'tramway/event/events/error'
9
+ = render 'tramway/landing/templates/alert', alert_type: :danger, title: 'Ошибка при отправлении заявки!', short_description: 'Подробности ошибки описаны ниже в форме приёма заявок' do
10
+ Если ошибка повторяется или не отображается, обращайтесь по телефону
11
+ = tel_tag @event.responsible_person[:phone] || @application.phone
12
+ или пишите на email
13
+ = mail_to @event.responsible_person[:email] || @application.email
14
+
6
15
  = render 'tramway/landing/blocks/templates/full_page', block: event, buttons: [OpenStruct.new(title: t('.registration'), anchor: '#registration')]
7
16
  - content_for :main_image do
8
17
  = request.protocol + request.host_with_port + event.background.url
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Tramway
4
4
  module Event
5
- VERSION = '1.12'
5
+ VERSION = '1.12.0.1'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tramway-event
3
3
  version: !ruby/object:Gem::Version
4
- version: '1.12'
4
+ version: 1.12.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pavel Kalashnikov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-03-23 00:00:00.000000000 Z
11
+ date: 2020-03-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: configus
@@ -76,9 +76,7 @@ files:
76
76
  - app/models/tramway/event/person.rb
77
77
  - app/models/tramway/event/place.rb
78
78
  - app/models/tramway/event/section.rb
79
- - app/views/tramway/event/events/_error.html.haml
80
79
  - app/views/tramway/event/events/_show_page.html.haml
81
- - app/views/tramway/event/events/_success.html.haml
82
80
  - app/views/tramway/event/events/show.html.haml
83
81
  - app/views/tramway/event/participants/_form.html.haml
84
82
  - app/views/tramway/event/sections/_show_page.html.haml
@@ -1,11 +0,0 @@
1
- .alert.alert-danger{ role: "alert" }
2
- %button.close{"aria-label" => "Close", "data-dismiss" => "alert", type: "button"}
3
- %span{"aria-hidden" => "true"} ×
4
- %h4.alert-heading Ошибка при отправлении заявки!
5
- %p Подробности ошибки описаны ниже в форме приёма заявок
6
- %hr/
7
- %p.mb-0
8
- Если ошибка повторяется или не отображается, обращайтесь по телефону
9
- = tel_tag @event.responsible_person[:phone] || @application.phone
10
- или пишите на email
11
- = mail_to @event.responsible_person[:email] || @application.email
@@ -1,10 +0,0 @@
1
- .alert.alert-success{role: "alert"}
2
- %button.close{"aria-label" => "Close", "data-dismiss" => "alert", type: "button"}
3
- %span{"aria-hidden" => "true"} ×
4
- %h4.alert-heading Заявка успешно отправлена!
5
- %hr/
6
- %p.mb-0
7
- По всем вопросам обращайтесь по телефону
8
- = tel_tag @event.responsible_person[:phone] || @application.phone
9
- или пишите на email
10
- = mail_to @event.responsible_person[:email] || @application.email