tramway-event 1.11.5.1 → 1.12

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: afaee769dfd67ef2fd5df5f12a1415b47c9f33a33ddda58cd533b5ac1e9d6ce4
4
- data.tar.gz: 6f761a13347db57f972e0783b8b50e232116ea3c9d398919e6629a36fdd2d3ac
3
+ metadata.gz: c4346908bef28bd8fc02c3e3ffa5eadc70c3c984fa777bfdcac1b5bbb2dd083e
4
+ data.tar.gz: 95ff1569b4efa5bb3db915652cc1f1e469ba55fac9b1b680f15bafa95c41028a
5
5
  SHA512:
6
- metadata.gz: 9614904b698ce7e34ecf51e7dfd9256e27ac55a41d0bdf6e1ae6a21b7014b1ceb2e94a3aec2abda05866ca6675ef153d64476edd322586fb097a47a955640bff
7
- data.tar.gz: 590f609d44efeb81ae5eb41a4b4f61e480126adc58866aa076cee7b1a0ba8002678a39ee8f6a99b543f924efb8ef6ea5dca80f4d3b3406bc42f04c7623b695e9
6
+ metadata.gz: 1cc8ff84f9168eed351be3fb5ec9a4407057186aeaedd6feae3230d78c5bbcd7ff78db31382bdebddfb4acf46972731cac78abd1dd710d1099e307df1be29918
7
+ data.tar.gz: 0627d80603bfcb547bcbf2fa4e5121db895426f439a49e6f14e1db03a966c44b5b64f5acb35bcca64b38f625b2c2b06d7cf90155209db8e3b0e6377711826a26
@@ -13,7 +13,3 @@ body
13
13
  &.form
14
14
  h1
15
15
  margin-bottom: 100px
16
-
17
- main.event.show
18
- .row.description
19
- margin-top: 150px
@@ -46,7 +46,8 @@ class Tramway::Event::Events::Show::EventDecorator < ::Tramway::Core::Applicatio
46
46
  def responsible_person
47
47
  {
48
48
  phone: (object.creator.phone if object.creator&.phone&.present?),
49
- email: (object.creator.email if object.creator&.email&.present?)
49
+ email: (object.creator.email if object.creator&.email&.present?),
50
+ social_networks: (object.creator.social_networks.active if object.creator.respond_to?(:social_networks))
50
51
  }
51
52
  end
52
53
  end
@@ -7,6 +7,7 @@ module Tramway
7
7
  module ApplicationHelper
8
8
  include ::FontAwesome5::Rails::IconHelper
9
9
  include ::Tramway::Collections::Helper
10
+ include ::Tramway::Profiles::LinksHelper
10
11
  end
11
12
  end
12
13
  end
@@ -0,0 +1,11 @@
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,32 +1,15 @@
1
1
  = stylesheet_link_tag 'tramway/event/events/show'
2
2
  - if params[:flash] == 'success'
3
- .alert.alert-success{role: "alert"}
4
- %button.close{"aria-label" => "Close", "data-dismiss" => "alert", type: "button"}
5
- %span{"aria-hidden" => "true"} ×
6
- %h4.alert-heading Заявка успешно отправлена!
7
- %hr/
8
- %p.mb-0
9
- По всем вопросам обращайтесь по телефону
10
- = tel_tag @event.responsible_person[:phone] || @application.phone
11
- или пишите на email
12
- = mail_to @event.responsible_person[:email] || @application.email
3
+ = render 'tramway/event/events/success'
13
4
  - if params[:flash] == 'error'
14
- .alert.alert-danger{ role: "alert" }
15
- %button.close{"aria-label" => "Close", "data-dismiss" => "alert", type: "button"}
16
- %span{"aria-hidden" => "true"} ×
17
- %h4.alert-heading Ошибка при отправлении заявки!
18
- %p Подробности ошибки описаны ниже в форме приёма заявок
19
- %hr/
20
- %p.mb-0
21
- Если ошибка повторяется или не отображается, обращайтесь по телефону
22
- = tel_tag @event.responsible_person[:phone] || @application.phone
23
- или пишите на email
24
- = mail_to @event.responsible_person[:email] || @application.email
5
+ = render 'tramway/event/events/error'
25
6
  = render 'tramway/landing/blocks/templates/full_page', block: event, buttons: [OpenStruct.new(title: t('.registration'), anchor: '#registration')]
26
7
  - content_for :main_image do
27
8
  = request.protocol + request.host_with_port + event.background.url
28
9
  %main.event.show
29
10
  .container
11
+ - if @event.responsible_person[:social_networks]&.any? || @event.responsible_person[:phone].present? || @event.responsible_person[:email].present?
12
+ = render 'tramway/landing/blocks/block_types/contacts', block: OpenStruct.new(title: 'Контакты'), social_networks: @event.responsible_person[:social_networks], email: @event.responsible_person[:email], phone: @event.responsible_person[:phone]
30
13
  - if defined? sections_as_features
31
14
  = render 'tramway/landing/blocks/templates/features_list', collection: sections_as_features
32
15
  .row.description
@@ -0,0 +1,10 @@
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
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Tramway
4
4
  module Event
5
- VERSION = '1.11.5.1'
5
+ VERSION = '1.12'
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.11.5.1
4
+ version: '1.12'
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-17 00:00:00.000000000 Z
11
+ date: 2020-03-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: configus
@@ -76,7 +76,9 @@ 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
79
80
  - app/views/tramway/event/events/_show_page.html.haml
81
+ - app/views/tramway/event/events/_success.html.haml
80
82
  - app/views/tramway/event/events/show.html.haml
81
83
  - app/views/tramway/event/participants/_form.html.haml
82
84
  - app/views/tramway/event/sections/_show_page.html.haml
@@ -135,7 +137,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
135
137
  - !ruby/object:Gem::Version
136
138
  version: '0'
137
139
  requirements: []
138
- rubygems_version: 3.0.1
140
+ rubygems_version: 3.1.2
139
141
  signing_key:
140
142
  specification_version: 4
141
143
  summary: Rails engine for events