enjoy_cms_faq 0.3.1 → 0.3.2

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
  SHA1:
3
- metadata.gz: 37ed8091abc44567d63df88cde15e7f76a2b2dd1
4
- data.tar.gz: 659f30fd41419339d0b72257a1bc593520964b81
3
+ metadata.gz: f74523e085f8b1d0f5dc74c225e0c8551fef7549
4
+ data.tar.gz: 7b0afe4a8218f10880c14a3b7a32a56ab9726042
5
5
  SHA512:
6
- metadata.gz: 55e42e99d2b32cfa4bb3917ad9fb35b3b963bee3e490544878760c48a7bb384afebcb64a541e130a56caab9f4272043cd51d513188ca13a4fdfd4014a542c767
7
- data.tar.gz: 9463dd508539f2265da0e81c31edc4d2e7564bc9bb5929e3f9d6920d91741128dacef3efac23defd36d09b63e8015668894d9a1e071e8c710e8997d0471e1f67
6
+ metadata.gz: d4290543bccf56d27246cc51f0f77b5d5ff7acb5ef21bbe4a1147d14b72a001fb5ef15a994380739886168dbd9c38bbef0b6fc7a9b93d458cbe1cf145c517524
7
+ data.tar.gz: 3b6f23463593ebf576887bd511d9501c2f98c479e65934e7c31c4b9450a6f050ae5dc8986f3ad2d09d6261370658de50f8a7759a07e72073410b6f97f80a33fc
@@ -30,5 +30,5 @@ Gem::Specification.new do |spec|
30
30
  spec.add_development_dependency "bundler", "~> 1.10"
31
31
  spec.add_development_dependency "rake", "~> 10.0"
32
32
 
33
- spec.add_dependency 'enjoy_cms', "~> 0.3.0"
33
+ spec.add_dependency 'enjoy_cms', "~> 0.3.2"
34
34
  end
@@ -17,20 +17,24 @@ module Enjoy::Faq
17
17
  field :question_categories
18
18
  field :enabled, :toggle
19
19
 
20
- field :slugs, :enum do
21
- enum_method do
22
- :slugs
23
- end
24
- visible do
25
- bindings[:view].current_user.admin?
26
- end
27
- multiple do
28
- true
20
+ group :URL do
21
+ active false
22
+ field :slugs, :enum do
23
+ enum_method do
24
+ :slugs
25
+ end
26
+ visible do
27
+ bindings[:view].current_user.admin?
28
+ end
29
+ multiple do
30
+ true
31
+ end
29
32
  end
33
+ field :text_slug
30
34
  end
31
- field :text_slug
32
35
 
33
36
  group 'Данные вопроса' do
37
+ active false
34
38
  field :question_text, :text
35
39
  field :question_text_after_editing, :enjoy_html
36
40
  field :author_name, :string
@@ -39,6 +43,7 @@ module Enjoy::Faq
39
43
  end
40
44
 
41
45
  group 'Данные ответа' do
46
+ active false
42
47
  field :answered, :toggle
43
48
  field :answer_text, :enjoy_html
44
49
  field :answered_time
@@ -29,25 +29,33 @@ module Enjoy::Faq
29
29
  field :enabled, :toggle
30
30
  field :name
31
31
  # field :sidebar_title, :string
32
- field :slugs, :enum do
33
- enum_method do
34
- :slugs
35
- end
36
- visible do
37
- bindings[:view].current_user.admin?
38
- end
39
- multiple do
40
- true
32
+
33
+ group :URL do
34
+ active false
35
+ field :slugs, :enum do
36
+ enum_method do
37
+ :slugs
38
+ end
39
+ visible do
40
+ bindings[:view].current_user.admin?
41
+ end
42
+ multiple do
43
+ true
44
+ end
41
45
  end
46
+ field :text_slug
42
47
  end
43
- field :text_slug
44
48
  # field :image, :jcrop do
45
49
  # jcrop_options do
46
50
  # :image_jcrop_options
47
51
  # end
48
52
  # end
49
- field :excerpt, :enjoy_html
50
- field :content, :enjoy_html
53
+
54
+ group :content do
55
+ active false
56
+ field :excerpt, :enjoy_html
57
+ field :content, :enjoy_html
58
+ end
51
59
 
52
60
  group :seo do
53
61
  active false
@@ -74,16 +82,20 @@ module Enjoy::Faq
74
82
  end
75
83
  end
76
84
 
77
- field :questions do
78
- read_only true
79
- help 'Список вопросов'
80
85
 
81
- pretty_value do
82
- bindings[:object].questions.to_a.map { |q|
83
- route = (bindings[:view] || bindings[:controller])
84
- model_name = q.rails_admin_model
85
- route.link_to(q.name, route.rails_admin.show_path(model_name: model_name, id: q.id), title: q.full_name)
86
- }.join("<br>").html_safe
86
+ group :questions do
87
+ active false
88
+ field :questions do
89
+ read_only true
90
+ help 'Список вопросов'
91
+
92
+ pretty_value do
93
+ bindings[:object].questions.to_a.map { |q|
94
+ route = (bindings[:view] || bindings[:controller])
95
+ model_name = q.rails_admin_model
96
+ route.link_to(q.name, route.rails_admin.show_path(model_name: model_name, id: q.id), title: q.full_name)
97
+ }.join("<br>").html_safe
98
+ end
87
99
  end
88
100
  end
89
101
  end
@@ -1,5 +1,5 @@
1
1
  module Enjoy
2
2
  module Faq
3
- VERSION = "0.3.1"
3
+ VERSION = "0.3.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: enjoy_cms_faq
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Kiseliev
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-02-29 00:00:00.000000000 Z
11
+ date: 2016-03-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 0.3.0
47
+ version: 0.3.2
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: 0.3.0
54
+ version: 0.3.2
55
55
  description: FAQ system with EnjoyCMS support.
56
56
  email:
57
57
  - dev@enjoycreate.ru