tramway-sport_school 1.2.12.5 → 1.2.12.6
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: 5c242fd010f3c69258108167b41453eb1be0b70b278f98f4a3a98ee5b3827f78
|
4
|
+
data.tar.gz: c13d0352ad9438d8ce8e7fad72d5c6080287350e5c88f0955acdeb2bebb6b0b1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0e0862e8a57850ff800c8c6a12dffbef40667b8f5d5f8b2052304393fbf8c3e9f6b59c083bec5d53e0224dced233812e337bbf642886e97277671c3a18bd6b65
|
7
|
+
data.tar.gz: 978dfcb55dc786a243e529f88ea003539e8d0535a9d82aecf75aa258ea2cef92acf218b30c7ec7593159832c8887734c6e4251ee663271c9db54494b76320970
|
@@ -4,15 +4,15 @@ require_dependency 'tramway/sport_school/application_controller'
|
|
4
4
|
|
5
5
|
class Tramway::SportSchool::Web::WelcomeController < ::Tramway::SportSchool::ApplicationController
|
6
6
|
def index
|
7
|
-
@kind_sports = ::Tramway::SportSchool::KindSport.
|
8
|
-
@documents = ::Tramway::SportSchool::Document.
|
9
|
-
@trainers = ::Tramway::SportSchool::Trainer.
|
7
|
+
@kind_sports = ::Tramway::SportSchool::KindSport.published.map { |k| ::Tramway::SportSchool::Features::KindSportDecorator.new k }
|
8
|
+
@documents = ::Tramway::SportSchool::Document.published
|
9
|
+
@trainers = ::Tramway::SportSchool::Trainer.published.map { |t| ::Tramway::SportSchool::Cards::TrainerDecorator.new t }
|
10
10
|
@institution = ::Tramway::SportSchool::Institution.includes(:social_networks).first
|
11
11
|
blocks = ::Tramway::Landing::Block.on_main_page
|
12
12
|
@links = ::Tramway::Landing::BlockLinkDecorator.decorate blocks.with_navbar_link
|
13
13
|
@blocks = ::Tramway::Landing::BlockDecorator.decorate blocks
|
14
14
|
@organizations = ::Tramway::SportSchool::Organization.published
|
15
|
-
@news = ::Tramway::News::News.
|
15
|
+
@news = ::Tramway::News::News.last(3).reverse.map { |t| ::Tramway::Landing::Cards::NewsDecorator.new t }
|
16
16
|
@education_documents = ::Tramway::SportSchool::Document.published.education.map { |t| ::Tramway::SportSchool::Cards::DocumentDecorator.new t }
|
17
17
|
@school_info_documents = ::Tramway::SportSchool::Document.published.school_info.map { |t| ::Tramway::SportSchool::Cards::DocumentDecorator.new t }
|
18
18
|
@provision_documents = ::Tramway::SportSchool::Document.published.provision.map { |t| ::Tramway::SportSchool::Cards::DocumentDecorator.new t }
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tramway-sport_school
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.12.
|
4
|
+
version: 1.2.12.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pavel Kalashnikov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-12-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pg
|
@@ -122,7 +122,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
122
122
|
- !ruby/object:Gem::Version
|
123
123
|
version: '0'
|
124
124
|
requirements: []
|
125
|
-
rubygems_version: 3.1
|
125
|
+
rubygems_version: 3.0.3.1
|
126
126
|
signing_key:
|
127
127
|
specification_version: 4
|
128
128
|
summary: Engine for Sport School web sites
|