tramway-conference 1.9.4 → 1.9.5

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: 80dad35275e28c7198083c54a0416ab12fa4f8bd52cb7c476c60cbbd20518772
4
- data.tar.gz: 83031cef6b14bc24086635d1e6ffe228df353e3c37c0c96050e3a37091b89fee
3
+ metadata.gz: 4a0454a097c0928c8a7461de7c84125fc4c9ef195aa77fa4ceb3f53eddc90fc3
4
+ data.tar.gz: 27a52d3547cdf383d728a4d85fe7774a819d195051d22da2adcbd411a6b3abc5
5
5
  SHA512:
6
- metadata.gz: 8b90b9a0010c7125c8a617479f75122211fdfb3046cb35418ce2c00969716a82910eb96537db5784c70b91ce3fd70ef27370738d6d528364fab8c6b7638c722f
7
- data.tar.gz: e86e04e45a6f6c9e43799a585d3e1e216f4168bfc638554b127b815b4249788b9a8983234aa9c81a30bdc75030e1f73079f67e25569181faaf6627c0bcbfcfd8
6
+ metadata.gz: ed2dc7489fe604be221690b4f66ccea6721c7ffca6dcd95cd90dede638ad59d8574fbc7e25923217a588d69621223cc2f4c524060d14441b4167d0d8e91baff8
7
+ data.tar.gz: df7903aef714e2f5ac01bceb1e8762a74131002542f66c6d53e704906faaa6f5c64a91ba7c4992adef16cfacb7867b32c38832dfff6898e20140101dac09833d
@@ -7,15 +7,15 @@ 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 favicon]
11
11
  end
12
12
 
13
13
  def show_associations
14
- [ :social_networks ]
14
+ [:social_networks]
15
15
  end
16
16
  end
17
17
 
18
- delegate_attributes :title, :logo, :tagline, :address, :phone, :latitude, :longtitude, :url, :found_date, :email
18
+ delegate_attributes :title, :logo, :tagline, :address, :phone, :latitude, :longtitude, :url, :found_date, :email, :favicon
19
19
 
20
20
  decorate_association :social_networks
21
21
  end
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class Admin::Tramway::Conference::UnityForm < ::Tramway::Core::ApplicationForm
4
- properties :title, :tagline, :logo, :state, :phone, :address, :longtitude, :latitude, :url, :found_date, :email
4
+ properties :title, :tagline, :logo, :state, :phone, :address, :longtitude, :latitude, :url, :found_date, :email, :favicon
5
5
 
6
6
  def initialize(object)
7
7
  super(object).tap do
@@ -13,7 +13,8 @@ class Admin::Tramway::Conference::UnityForm < ::Tramway::Core::ApplicationForm
13
13
  longtitude: :string,
14
14
  url: :string,
15
15
  found_date: :date_picker,
16
- email: :string
16
+ email: :string,
17
+ favicon: :file
17
18
  end
18
19
  end
19
20
  end
@@ -5,5 +5,7 @@ module Tramway::Conference
5
5
  has_many :social_networks, as: :record, class_name: 'Tramway::Profiles::SocialNetwork'
6
6
 
7
7
  include ::Tramway::Partner::Scopes
8
+
9
+ uploader :favicon, :ico
8
10
  end
9
11
  end
@@ -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,
@@ -28,6 +28,9 @@ module Tramway::Conference::Generators
28
28
  add_found_date_to_tramway_conference_unities
29
29
  add_email_to_tramway_conference_unities
30
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
31
34
  ]
32
35
  migrations.each do |migration_name|
33
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 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.4'
5
+ VERSION = '1.9.5'
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.4
4
+ version: 1.9.5
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-30 00:00:00.000000000 Z
12
+ date: 2020-05-26 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Engine for Conference web sites
15
15
  email:
@@ -49,8 +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
53
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
54
57
  - lib/tramway/conference/generates/templates/add_url_to_tramway_conference_unities.rb
55
58
  - lib/tramway/conference/generates/templates/create_tramway_conference_unities.rb
56
59
  - lib/tramway/conference/version.rb