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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a4764dca9a464fe4a849fa5b3eb4987d6461469c94ff40425f29cc1fc4179a82
|
4
|
+
data.tar.gz: 17b6d4245524e5b18b047c447a88c6adaa7417fd7b06a65a72a52db15838cd09
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
-
-
|
41
|
-
|
42
|
-
|
43
|
-
.
|
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]
|
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.
|
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-
|
12
|
+
date: 2020-03-04 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: Engine for Conference web sites
|
15
15
|
email:
|