tramway-conference 1.9.0.2 → 1.9.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: 36b2f4f75c5198625c0415656066baeaba7cf1272eefac61f519dd18bf12ad0c
4
- data.tar.gz: 60db649f32bd78c0ae8b9e84d611dce65559c8c26412c5df44face7f20c674c7
3
+ metadata.gz: a4764dca9a464fe4a849fa5b3eb4987d6461469c94ff40425f29cc1fc4179a82
4
+ data.tar.gz: 17b6d4245524e5b18b047c447a88c6adaa7417fd7b06a65a72a52db15838cd09
5
5
  SHA512:
6
- metadata.gz: 6b6f0595f7cbbfd406a57adeacdfda136aab6a58376589d94d4eb2fafe249800a0706b23d6b56af3b99c20d7833fb88ac3d207fab86ad561fffa696027e3edcd
7
- data.tar.gz: aad1e65ae89e672589a95f48d4f8b83d585467d33bbe2fafcdf6f4eb76dd090ae0e1e914829afb088831859fb5b81d8c943947edf540fbea3c3d77aff7f57619
6
+ metadata.gz: 95f34991df93f60b042089737aa220c781a45115272875b71b8bb0c02b6e47a030e40cc1fa84973bb96dc3dfef4348718b4d4c9d26afa1ba590973b77e193bbd
7
+ data.tar.gz: b6b6f9f9122c6c4d62c7f3634ec5a6126140e96d821193d29eea94ceed0c839c91a18b959b2e22df1ce6cba49b6ee54d1df0e3b7de0a7ec5e4a84fd7b5d9069d
@@ -7,21 +7,13 @@ class Tramway::Conference::Web::WelcomeController < ::Tramway::Conference::Appli
7
7
  @unity = ::Tramway::Conference::Unity.includes(:social_networks).first
8
8
  @blocks = ::Tramway::Landing::BlockDecorator.decorate ::Tramway::Landing::Block.on_main_page
9
9
  @news = ::Tramway::News::News.active.first(3).map { |t| ::Tramway::Landing::Cards::NewsDecorator.new t }
10
- past_events = ::Tramway::Event::EventLinkDecorator.decorate ::Tramway::Event::Event.active.past.order begin_date: :desc
10
+ past_events = ::Tramway::Event::EventLinkDecorator.decorate ::Tramway::Event::Event.active.past.open.order begin_date: :desc
11
11
  past_events_links = Tramway::Landing::NavbarDecorator.new [{ past_events: past_events }]
12
- actual_events = ::Tramway::Event::EventLinkDecorator.decorate ::Tramway::Event::Event.active.actual.order :begin_date
12
+ actual_events = ::Tramway::Event::EventLinkDecorator.decorate ::Tramway::Event::Event.active.actual.open.order :begin_date
13
13
  @links = actual_events + past_events_links
14
- main_event = ::Tramway::Event::Event.main_event&.last
15
- @close_events = ::Tramway::Event::Event.actual.map do |event|
14
+ @close_events = ::Tramway::Event::Event.actual.open.map do |event|
16
15
  ::Tramway::Event::EventAsPageWithButtonDecorator.decorate event
17
16
  end
18
- if main_event.present?
19
- @main_event = ::Tramway::Event::Events::Show::EventDecorator.decorate main_event
20
- @sections_as_features = main_event.sections.active.order(position: :asc).map { |s| ::Tramway::Event::SectionFeatureDecorator.decorate s }
21
- @sections = main_event.sections.active.order(position: :asc).map { |s| ::Tramway::Event::SectionDecorator.decorate s }
22
- @participant_form = ::Tramway::Event::ParticipantExtendedFormCreator.create_form_class(request.uuid, main_event).new ::Tramway::Event::Participant.new
23
- @people_as_features = @main_event.partakings.active.map { |p| ::Tramway::Event::PartakingFeatureDecorator.decorate p }
24
- end
25
17
  @partners = ::Tramway::Partner::Partnership.partnership_type.values.reduce({}) do |hash, partnership_type|
26
18
  hash.merge! partnership_type => (@unity.send(partnership_type.to_s.pluralize).active.map do |partner|
27
19
  Tramway::Partner::OrganizationFeatureDecorator.decorate partner
@@ -37,18 +37,7 @@
37
37
  .row-fluid
38
38
  = render 'tramway/landing/blocks/templates/section_with_image_and_text', block: event
39
39
 
40
- - if @main_event.present?
41
- - content_for :main_image do
42
- = request.protocol + request.host_with_port + @main_event.background.url
43
- .row.main_event
44
- .col
45
- %h1.text-center
46
- = @main_event.title
47
- %h3.text-center
48
- = @main_event.duration
49
- = render 'tramway/event/events/show_page', event: @main_event, sections: @sections, sections_as_features: @sections_as_features, people_as_features: @people_as_features, partners: @main_event.partners
50
- - else
51
- - content_for :main_image do
52
- = request.protocol + request.host_with_port + @blocks.select { |block| block.model.block_type.header? }.first.background.url
53
- - ::Tramway::Partner::Partnership.partnership_type.values.each do |partnership_type|
54
- = render 'tramway/landing/blocks/templates/features_list', block: OpenStruct.new(title: t("enumerize.tramway/partner/partnership.partnership_type.#{partnership_type}")), collection: @partners[partnership_type]
40
+ - content_for :main_image do
41
+ = request.protocol + request.host_with_port + @blocks.select { |block| block.model.block_type.header? }.first.background.url
42
+ - ::Tramway::Partner::Partnership.partnership_type.values.each do |partnership_type|
43
+ = render 'tramway/landing/blocks/templates/features_list', block: OpenStruct.new(title: t("enumerize.tramway/partner/partnership.partnership_type.#{partnership_type}")), collection: @partners[partnership_type]
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Tramway
4
4
  module Conference
5
- VERSION = '1.9.0.2'
5
+ VERSION = '1.9.1'
6
6
  end
7
7
  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.9.0.2
4
+ version: 1.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dmitry Korotin
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2020-03-01 00:00:00.000000000 Z
12
+ date: 2020-03-04 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Engine for Conference web sites
15
15
  email: