tramway-conference 0.1.0 → 1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8239718026f4a61e6ab6d1d27c2dc25c41815a242131a6cbf8ae7d0c1242ee6c
4
- data.tar.gz: e9d3e5cfebc1e1dfc52342e875d503af6e337897e3ef28248ac429cbe5604557
3
+ metadata.gz: 7a53edf9a561a8ea8ffc738ec18b56fec4bf7a580263aee9c2e097c20388413b
4
+ data.tar.gz: 3aaf3d256263818047eef5248a7fbf5a723c634309558cbdd07c579fb6c7eb89
5
5
  SHA512:
6
- metadata.gz: 1ad467141978c5a9d7b3ac8327fa26f52770b3c26edc196b3bcaa2836d21f6bc37a769a239c2e530d0f5650aa67c256515ea89e14c78e938926b7d5775e1014f
7
- data.tar.gz: 2289617b0abf1713c66d54348f25691a8746ef1f6cf53eae13297a4d9a8e19f293626f33ab934db3d863f1310beb9ffef3b0adf65c31ce4c719932ee8240a267
6
+ metadata.gz: 640b642c9172e3ec1ce6d7555e87766be18b963057d0b0a4d6f881e1c9b7bc64eb9aeb9d3986afe63963ac340e3eb37d4e147d64aa40cad3ce89c4aa5d5085c4
7
+ data.tar.gz: 1e635b0ac6934b243784c3d8df80473cf33a53289289b9882badb151496180db62b5f2d901fa79292af3dbc36cc31aabc1d62deaf7a4e1d86e8c1635ccbbc3a7
@@ -1,6 +1,6 @@
1
1
  module Tramway
2
2
  module Conference
3
- class ApplicationController < ActionController::Base
3
+ class ApplicationController < ::Tramway::Core::ApplicationController
4
4
  layout 'tramway/landing/application'
5
5
  protect_from_forgery with: :exception
6
6
  before_action :application
@@ -1,26 +1,24 @@
1
-
2
1
  = content_for :head_content do
3
2
  = stylesheet_link_tag 'tramway/conference/application', media: 'all'
4
3
  = javascript_include_tag 'tramway/conference/application'
5
4
 
6
5
  = content_for :application_name do
7
- = @application.title || t('application.name')
6
+ = @application&.title || t('application.name')
8
7
 
9
8
  = content_for :title do
10
- = @application.title || t('application.name')
9
+ = @application&.title || t('application.name')
11
10
 
12
11
  = content_for :application_tagline do
13
- = @application.tagline || t('application.tagline')
12
+ = @application&.tagline || t('application.tagline')
14
13
 
15
14
  = content_for :address do
16
- = @unity.address
15
+ = @unity&.address
17
16
 
18
17
  = content_for :phone do
19
- = @unity.phone
18
+ = @unity&.phone
20
19
 
21
20
  = content_for :navbar do
22
- - [ :parents, :schoolkids, :adults, :contacts ].each do |block|
23
- = menu_item t("blocks.navbar_links.#{block}"), "##{block}"
21
+ = nil
24
22
 
25
23
  = content_for :footer_links do
26
24
  = nil
@@ -29,9 +27,9 @@
29
27
  = nil
30
28
 
31
29
  = content_for :latitude do
32
- = @unity.latitude
30
+ = @unity&.latitude
33
31
 
34
32
  = content_for :longtitude do
35
- = @unity.longtitude
33
+ = @unity&.longtitude
36
34
 
37
35
  - @collection_news = @news
@@ -1,8 +1,4 @@
1
1
  ::Tramway::User.root_path = '/admin'
2
- #::Tramway::Admin.set_available_models ::Tramway::SportSchool::KindSport,
3
- # ::Tramway::SportSchool::Trainer,
4
- # ::Tramway::SportSchool::Document,
5
- # ::Tramway::SportSchool::Organization
6
- ::Tramway::Admin.set_singleton_models ::Tramway::Conference::Unity
7
- ::Tramway::Core.initialize_application model_class: ::Tramway::Conference::Unity
2
+ ::Tramway::Admin.set_singleton_models(::Tramway::Conference::Unity, project: :conference)
8
3
  ::Tramway::Profiles.records = [ ::Tramway::Conference::Unity ]
4
+ ::Tramway::Core.initialize_application model_class: ::Tramway::Conference::Unity
@@ -4,5 +4,14 @@ require 'font-awesome-rails'
4
4
 
5
5
  module Tramway
6
6
  module Conference
7
+ class << self
8
+ def dependencies
9
+ [ :landing ]
10
+ end
11
+
12
+ def application
13
+ :unity
14
+ end
15
+ end
7
16
  end
8
17
  end
@@ -1,5 +1,5 @@
1
1
  module Tramway
2
2
  module Conference
3
- VERSION = '0.1.0'
3
+ VERSION = '1.0'
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: 0.1.0
4
+ version: '1.0'
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: 2018-04-08 00:00:00.000000000 Z
12
+ date: 2018-07-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: pg
@@ -83,7 +83,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
83
83
  version: '0'
84
84
  requirements: []
85
85
  rubyforge_project:
86
- rubygems_version: 2.7.3
86
+ rubygems_version: 2.7.6
87
87
  signing_key:
88
88
  specification_version: 4
89
89
  summary: Engine for Conference web sites