tramway-conference 1.5 → 1.5.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: 7ca7ad0fad28b220371b403cc9ad53bf4221e141178fe6a8e3ac4783ed1f0e69
4
- data.tar.gz: 5543fc9205232ac96abb4a44f13877cee11d0b6cc034dc9a5e4dd11874a6fae3
3
+ metadata.gz: e5531ccf5d07d408b3727af1a02607e7e9bd349b6c2a8484643f762f67f2ade7
4
+ data.tar.gz: 1a3afe51ff5b91cdaaea9e79a310015eddce24194efcd50d758e76fc266ae76f
5
5
  SHA512:
6
- metadata.gz: f750379ec7798bd52dbeefb1cb5c4a6434c73ece8262c19cf8aa9709250cdda81de3700203652b23bdf27384a922cdbbc35b18f3398ea329d13eab38e48dea2a
7
- data.tar.gz: fea72612aa0cd5b4c1866af681897a04eedf516aa7feb04d89484ff9fc37a6db360751d5e4928edf2e59e5da8c5fe1648850399eb8fbac1083f14e016d023c10
6
+ metadata.gz: e8d85cc7a8f091c662aa2c7623dab9c7046240b32369f21e9cbbc5385c0da2e0410b9caed5224341d4336b87c6aa7b8e5b54eeb2762717c2b52cbbf303703892
7
+ data.tar.gz: e66eb33f96d8557229556555b6d7d9023d5daed4d7a88c535ffe5c5a38ac22879bd61b0d470e4166c9fc6aaad35a21e8115086cfc111729bce03e392a056ee17
@@ -6,10 +6,12 @@ class Tramway::Conference::Web::WelcomeController < ::Tramway::Conference::Appli
6
6
  @blocks = ::Tramway::Landing::BlockDecorator.decorate ::Tramway::Landing::Block.on_main_page
7
7
  @news = ::Tramway::News::News.active.first(3).map { |t| ::Tramway::Landing::Cards::NewsDecorator.new t }
8
8
  @links = ::Tramway::Event::EventLinkDecorator.decorate ::Tramway::Event::Event.active
9
- main_event = ::Tramway::Event::Event.main_event
10
- @main_event = ::Tramway::Event::EventDecorator.decorate main_event
11
- @sections_as_features = main_event.sections.order(position: :asc).map { |s| ::Tramway::Event::SectionFeatureDecorator.decorate s }
12
- @sections = main_event.sections.order(position: :asc).map { |s| ::Tramway::Event::SectionDecorator.decorate s }
13
- @participant_form = ::Tramway::Event::ParticipantExtendedFormCreator.create_form_class(request.uuid, main_event).new ::Tramway::Event::Participant.new
9
+ main_event = ::Tramway::Event::Event.main_event&.last
10
+ if main_event.present?
11
+ @main_event = ::Tramway::Event::EventDecorator.decorate main_event
12
+ @sections_as_features = main_event.sections.order(position: :asc).map { |s| ::Tramway::Event::SectionFeatureDecorator.decorate s }
13
+ @sections = main_event.sections.order(position: :asc).map { |s| ::Tramway::Event::SectionDecorator.decorate s }
14
+ @participant_form = ::Tramway::Event::ParticipantExtendedFormCreator.create_form_class(request.uuid, main_event).new ::Tramway::Event::Participant.new
15
+ end
14
16
  end
15
17
  end
@@ -1,5 +1,5 @@
1
1
  module Tramway
2
2
  module Conference
3
- VERSION = '1.5'
3
+ VERSION = '1.5.1'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tramway-conference
3
3
  version: !ruby/object:Gem::Version
4
- version: '1.5'
4
+ version: 1.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dmitry Korotin
@@ -10,21 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
  date: 2018-09-25 00:00:00.000000000 Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
15
- name: pg
16
- requirement: !ruby/object:Gem::Requirement
17
- requirements:
18
- - - ">="
19
- - !ruby/object:Gem::Version
20
- version: '0'
21
- type: :development
22
- prerelease: false
23
- version_requirements: !ruby/object:Gem::Requirement
24
- requirements:
25
- - - ">="
26
- - !ruby/object:Gem::Version
27
- version: '0'
13
+ dependencies: []
28
14
  description: Engine for Conference web sites
29
15
  email:
30
16
  - soxat73rus@gmail.com