tramway-event 1.12.3.1 → 1.12.3.6
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/event/action_decorator.rb +4 -0
- data/app/decorators/tramway/event/event_link_decorator.rb +1 -1
- data/app/decorators/tramway/event/events/show/event_decorator.rb +1 -1
- data/app/forms/admin/tramway/event/participant_form_field_form.rb +1 -1
- data/app/models/tramway/event/event.rb +1 -1
- data/lib/tramway/event/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 240a1d98655e2d71b4901ce6602c0d7215b4e477ad2ae2cc096e8285280e2955
|
4
|
+
data.tar.gz: 1e616d3af7bdd6fbae65e3e9e50b36d5a3c67f3f7663f7aca745cb6f6064104d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3aa3bb0ca75a4c35ffc9cd9fe142ddab5a4e430af45b0d95596965b8413738781bccc01ae8761de02f560506fedf9fbc065a2429ae5a608106e3958de7b78102
|
7
|
+
data.tar.gz: 8ef4a9674d2cd67351a8968cfed70efb85a4f20a578c0ab0f2fd483e58e2d88a3c813d13f322c7a450eb077743a15a9e464f5ab8ffb837200687bc8a00bd6cda
|
@@ -10,6 +10,10 @@ class Tramway::Event::ActionDecorator < Tramway::Core::ApplicationDecorator
|
|
10
10
|
"#{object.title} - #{date_view(object.deadline)} - #{state_machine_view(object, :action_state)}"
|
11
11
|
end
|
12
12
|
|
13
|
+
def title
|
14
|
+
object.title
|
15
|
+
end
|
16
|
+
|
13
17
|
def action_state_button_color(event)
|
14
18
|
case event
|
15
19
|
when :do
|
@@ -45,7 +45,7 @@ class Tramway::Event::Events::Show::EventDecorator < ::Tramway::Core::Applicatio
|
|
45
45
|
|
46
46
|
def responsible_person
|
47
47
|
{
|
48
|
-
title: Tramway::User::UserDecorator.decorate(object.creator)
|
48
|
+
title: Tramway::User::UserDecorator.decorate(object.creator)&.name,
|
49
49
|
phone: (object.creator.phone if object.creator&.phone&.present?),
|
50
50
|
email: (object.creator.email if object.creator&.email&.present?),
|
51
51
|
social_networks: (object.creator.social_networks.active if object.creator.respond_to?(:social_networks))
|
@@ -7,7 +7,7 @@ class Tramway::Event::Event < ::Tramway::Event::ApplicationRecord
|
|
7
7
|
|
8
8
|
def check_dimensions
|
9
9
|
if photo.present?
|
10
|
-
errors.add :photo, :too_small_image if photo.width < 1920 || photo.height < 1080
|
10
|
+
errors.add :photo, :too_small_image if photo.width.present? && (photo.width < 1920 || photo.height < 1080)
|
11
11
|
end
|
12
12
|
end
|
13
13
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tramway-event
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.12.3.
|
4
|
+
version: 1.12.3.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pavel Kalashnikov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-05-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: configus
|