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 +4 -4
- data/app/decorators/tramway/conference/unity_decorator.rb +3 -3
- data/app/forms/admin/tramway/conference/unity_form.rb +3 -2
- data/app/models/tramway/conference/unity.rb +2 -0
- data/app/views/tramway/conference/web/welcome/index.html.haml +7 -6
- data/config/initializers/tramway.rb +1 -1
- data/lib/tramway/conference/generates/install_generator.rb +3 -0
- data/lib/tramway/conference/generates/templates/add_favicon_to_tramway_conference_unities.rb +7 -0
- data/lib/tramway/conference/generates/templates/add_name_to_tramway_conference_unities.rb +7 -0
- data/lib/tramway/conference/generates/templates/add_public_name_to_tramway_conference_unities.rb +7 -0
- data/lib/tramway/conference/version.rb +1 -1
- metadata +5 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4a0454a097c0928c8a7461de7c84125fc4c9ef195aa77fa4ceb3f53eddc90fc3
|
4
|
+
data.tar.gz: 27a52d3547cdf383d728a4d85fe7774a819d195051d22da2adcbd411a6b3abc5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
[
|
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
|
-
[
|
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
|
@@ -28,14 +28,15 @@
|
|
28
28
|
- @collection_news = @news
|
29
29
|
|
30
30
|
%br
|
31
|
-
.
|
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
|
-
|
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.
|
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"
|
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
|
+
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-
|
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
|