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 +4 -4
- data/enjoy_cms_faq.gemspec +1 -1
- data/lib/enjoy/faq/admin/question.rb +15 -10
- data/lib/enjoy/faq/admin/question_category.rb +33 -21
- data/lib/enjoy/faq/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f74523e085f8b1d0f5dc74c225e0c8551fef7549
|
4
|
+
data.tar.gz: 7b0afe4a8218f10880c14a3b7a32a56ab9726042
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d4290543bccf56d27246cc51f0f77b5d5ff7acb5ef21bbe4a1147d14b72a001fb5ef15a994380739886168dbd9c38bbef0b6fc7a9b93d458cbe1cf145c517524
|
7
|
+
data.tar.gz: 3b6f23463593ebf576887bd511d9501c2f98c479e65934e7c31c4b9450a6f050ae5dc8986f3ad2d09d6261370658de50f8a7759a07e72073410b6f97f80a33fc
|
data/enjoy_cms_faq.gemspec
CHANGED
@@ -17,20 +17,24 @@ module Enjoy::Faq
|
|
17
17
|
field :question_categories
|
18
18
|
field :enabled, :toggle
|
19
19
|
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
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
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
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
|
-
|
50
|
-
|
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
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
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
|
data/lib/enjoy/faq/version.rb
CHANGED
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.
|
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-
|
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.
|
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.
|
54
|
+
version: 0.3.2
|
55
55
|
description: FAQ system with EnjoyCMS support.
|
56
56
|
email:
|
57
57
|
- dev@enjoycreate.ru
|