tramway-conference 1.9.3.1 → 1.9.4.4

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: 2d94f3fe1fd805bcf35a898a49efbf7b39a6125a78e94834ceedccb21ddbb656
4
- data.tar.gz: c2835b7acb38e5530fa32f4a8fa29eda5116481d0f22df39e6cf380438f7a415
3
+ metadata.gz: c1d6d0f12b768d54e0c51d3ecfc949b4cc5c9229ebc20f6ffe117f2da61fe15d
4
+ data.tar.gz: 2bf31b0cdf14bb21cb695b70d16c2a6ea80b45657a263ebda2b0f86aaf2989bb
5
5
  SHA512:
6
- metadata.gz: 5cac62266aa8b9c2b20fcce1026205bff1a06b07abbb57206d63d4ed196a780edfd0d86afceac889ba2b6a75c0af173cad56205fe93419e951f0d2d0fb360777
7
- data.tar.gz: 8b7c8804b1acb4e4f970908c560246acfc1f2fb23ba96a295bb13dd76b089105c8bf41856c8448290e1cc96f5ac3c45b399afab3dabfc0d592d67f87c8fc5f0a
6
+ metadata.gz: 7103fe737f20b6be1a04bb77898bce61431a755395bf68e3c4c875cbf9b0b4b72ab20de75c4b1290213dfd6dd91298b20c7155dcd23f805af121ac194ddac192
7
+ data.tar.gz: 2fecac16606e15eada41a86f2091213b34959d97e7b7ac3fa9f8b7ad46dcb0b86e8d76bc8f6c38628444416d1d09f7137d0b2a0ac33da1421f0baf008d167e3c
@@ -7,11 +7,11 @@ class Tramway::Conference::UnityDecorator < ::Tramway::Core::ApplicationDecorato
7
7
  end
8
8
 
9
9
  def show_attributes
10
- [ :title, :tagline, :logo, :address, :phone, :latitude, :longtitude, :url, :found_date, :email]
10
+ %i[title tagline logo address phone latitude longtitude url found_date email]
11
11
  end
12
12
 
13
13
  def show_associations
14
- [ :social_networks ]
14
+ [:social_networks]
15
15
  end
16
16
  end
17
17
 
@@ -28,14 +28,15 @@
28
28
  - @collection_news = @news
29
29
 
30
30
  %br
31
- .container
32
- .row-fluid
33
- %h1.text-center
34
- Ближайшие мероприятия
35
- - @close_events.each do |event|
31
+ - if @close_events.any?
36
32
  .container
37
33
  .row-fluid
38
- = render 'tramway/landing/templates/section_with_image_and_text', block: event
34
+ %h1.text-center
35
+ Ближайшие мероприятия
36
+ - @close_events.each do |event|
37
+ .container
38
+ .row-fluid
39
+ = render 'tramway/landing/templates/section_with_image_and_text', block: event
39
40
 
40
41
  - content_for :main_image do
41
42
  = request.protocol + request.host_with_port + @blocks.select { |block| block.model.block_type.header? }.first.background.url
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- ::Tramway::Auth.root_path = '/admin'
3
+ ::Tramway::Auth.root_path_for Tramway::User::User => '/admin'
4
4
  ::Tramway::Admin.set_singleton_models ::Tramway::Conference::Unity, project: :conference
5
5
  ::Tramway::Admin.set_available_models(::Tramway::Event::Event,
6
6
  ::Tramway::Event::ParticipantFormField,
@@ -27,6 +27,10 @@ module Tramway::Conference::Generators
27
27
  add_url_to_tramway_conference_unities
28
28
  add_found_date_to_tramway_conference_unities
29
29
  add_email_to_tramway_conference_unities
30
+ add_main_image_to_tramway_conference_unities
31
+ add_favicon_to_tramway_conference_unities
32
+ add_name_to_tramway_conference_unities
33
+ add_public_name_to_tramway_conference_unities
30
34
  ]
31
35
  migrations.each do |migration_name|
32
36
  migration_template "#{migration_name}.rb", "db/migrate/#{migration_name}.rb"
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ class AddFaviconToTramwayConferenceUnities < ActiveRecord::Migration[5.1]
4
+ def change
5
+ add_column :tramway_conference_unities, :favicon, :text
6
+ end
7
+ end
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ class AddMainImageToTramwayConferenceUnities < ActiveRecord::Migration[5.1]
4
+ def change
5
+ add_column :tramway_conference_unities, :main_image, :text
6
+ end
7
+ end
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ class AddNameToTramwayConferenceUnities < ActiveRecord::Migration[5.1]
4
+ def change
5
+ add_column :tramway_conference_unities, :name, :text
6
+ end
7
+ end
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ class AddPublicNameToTramwayConferenceUnities < ActiveRecord::Migration[5.1]
4
+ def change
5
+ add_column :tramway_conference_unities, :public_name, :text
6
+ end
7
+ end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Tramway
4
4
  module Conference
5
- VERSION = '1.9.3.1'
5
+ VERSION = '1.9.4.4'
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.3.1
4
+ version: 1.9.4.4
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-28 00:00:00.000000000 Z
12
+ date: 2020-05-25 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Engine for Conference web sites
15
15
  email:
@@ -49,7 +49,11 @@ files:
49
49
  - lib/tramway/conference/engine.rb
50
50
  - lib/tramway/conference/generates/install_generator.rb
51
51
  - lib/tramway/conference/generates/templates/add_email_to_tramway_conference_unities.rb
52
+ - lib/tramway/conference/generates/templates/add_favicon_to_tramway_conference_unities.rb
52
53
  - lib/tramway/conference/generates/templates/add_found_date_to_tramway_conference_unities.rb
54
+ - lib/tramway/conference/generates/templates/add_main_image_to_tramway_conference_unities.rb
55
+ - lib/tramway/conference/generates/templates/add_name_to_tramway_conference_unities.rb
56
+ - lib/tramway/conference/generates/templates/add_public_name_to_tramway_conference_unities.rb
53
57
  - lib/tramway/conference/generates/templates/add_url_to_tramway_conference_unities.rb
54
58
  - lib/tramway/conference/generates/templates/create_tramway_conference_unities.rb
55
59
  - lib/tramway/conference/version.rb