tramway-event 1.12.3.2 → 1.12.3.7

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: 31e0a33d06507e1ec4360f7ed5202190b7eff90ccc3ddd28de57af9646d6d333
4
- data.tar.gz: 4732391a8653ed16662136553b1201814c4c6b910c9fb0bc7d90e872ea5073ea
3
+ metadata.gz: 750aa0c60f787cbaa08e0de2b8918aeef960fd5e3dc76639d3d4bbd7a8e94d4f
4
+ data.tar.gz: d31fea495ff54e472f60507e98b2c48b01d3ca9452fec86daab6f6cb0d16250f
5
5
  SHA512:
6
- metadata.gz: 5ecc58fc35a0408efe4feb309b6a037e0502f0816d73fefac35b9d354b21872a8f79e6605dc17176caec476d87051799098ad646539837279789dd03d22dc8d6
7
- data.tar.gz: 798ab7fba9ee38bce25d8a2246e2ff365fdb3c0863ded3345492cb6e57f4f401ea4bfb7e222a1df2687a1fcfca2ad1fb325239993a05f0f7ac2fac333969303f
6
+ metadata.gz: 2253d1a8d00c90676403737a2dd48643a1974aab4b97123d65ca2cb93f2018bb8c70d892a5d2b67f12f99e3bd2fb0d393d734942dfedb435782ce8400b2fb0cc
7
+ data.tar.gz: ea1972a689ccacce9bc68753cc1a60d8b5ca37c654774f3d63dbd4b0f180654452333a1a9566119629bc23601e4c348f609511b18f969ca62b2ff20b2de2774f
@@ -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
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- class Tramway::Event::EventLinkDecorator < ::Tramway::Landing::LinkDecorator
3
+ class Tramway::Event::EventLinkDecorator < ::Tramway::Landing::Navbar::LinkDecorator
4
4
  delegate :title, to: :object
5
5
 
6
6
  def link
@@ -50,6 +50,6 @@ class Admin::Tramway::Event::ParticipantFormFieldForm < ::Tramway::Core::Extende
50
50
  end
51
51
 
52
52
  def options=(value)
53
- super value == '' ? value : JSON.parse(value)
53
+ model.options = value == '' ? value : JSON.parse(value)
54
54
  end
55
55
  end
@@ -8,6 +8,7 @@ module Tramway
8
8
  include ::FontAwesome5::Rails::IconHelper
9
9
  include ::Tramway::Collections::Helper
10
10
  include ::Tramway::Profiles::LinksHelper
11
+ include ::Tramway::Landing::ApplicationHelper
11
12
  end
12
13
  end
13
14
  end
@@ -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
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Tramway
4
4
  module Event
5
- VERSION = '1.12.3.2'
5
+ VERSION = '1.12.3.7'
6
6
  end
7
7
  end
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.2
4
+ version: 1.12.3.7
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-04-13 00:00:00.000000000 Z
11
+ date: 2020-06-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: configus