Sha256: 71110fb24702467907705d9d7cdd2cdcbd2b763c0b64dd251f40d7e7f5a3181c
Contents?: true
Size: 1.86 KB
Versions: 2
Compression:
Stored size: 1.86 KB
Contents
require_dependency "tramway/sport_school/application_controller" class Tramway::SportSchool::Web::WelcomeController < ::Tramway::SportSchool::ApplicationController def index @kind_sports = ::Tramway::SportSchool::KindSport.active.published.map { |k| ::Tramway::SportSchool::Features::KindSportDecorator.new k } @documents = ::Tramway::SportSchool::Document.active.published @trainers = ::Tramway::SportSchool::Trainer.active.published.map { |t| ::Tramway::SportSchool::Cards::TrainerDecorator.new t } @institution = ::Tramway::SportSchool::Institution.includes(:social_networks).first blocks = ::Tramway::Landing::Block.on_main_page @links = ::Tramway::Landing::BlockDecorator.decorate blocks.with_navbar_link @blocks = ::Tramway::Landing::BlockDecorator.decorate blocks.where block_type: :header @organizations = ::Tramway::SportSchool::Organization.published @news = ::Tramway::News::News.active.last(3).reverse.map { |t| ::Tramway::Landing::Cards::NewsDecorator.new t } @education_documents = ::Tramway::SportSchool::Document.published.education.map { |t| ::Tramway::SportSchool::Cards::DocumentDecorator.new t } @school_info_documents = ::Tramway::SportSchool::Document.published.school_info.map { |t| ::Tramway::SportSchool::Cards::DocumentDecorator.new t } @provision_documents = ::Tramway::SportSchool::Document.published.provision.map { |t| ::Tramway::SportSchool::Cards::DocumentDecorator.new t } @headers_documents = ::Tramway::SportSchool::Document.published.headers.map { |t| ::Tramway::SportSchool::Cards::DocumentDecorator.new t } @finance_documents = ::Tramway::SportSchool::Document.published.finance.map { |t| ::Tramway::SportSchool::Cards::DocumentDecorator.new t } @materially_documents = ::Tramway::SportSchool::Document.published.materially.map { |t| ::Tramway::SportSchool::Cards::DocumentDecorator.new t } end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
tramway-sport_school-1.2.5 | app/controllers/tramway/sport_school/web/welcome_controller.rb |
tramway-sport_school-1.2.4 | app/controllers/tramway/sport_school/web/welcome_controller.rb |