brightcontent-pages 2.0.28 → 2.0.29

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,24 +1,24 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- brightcontent-pages (2.0.28)
4
+ brightcontent-pages (2.0.29)
5
5
  awesome_nested_set
6
- brightcontent-attachments (= 2.0.28)
7
- brightcontent-core (= 2.0.28)
6
+ brightcontent-attachments (= 2.0.29)
7
+ brightcontent-core (= 2.0.29)
8
8
  the_sortable_tree (~> 2.3.0)
9
9
 
10
10
  PATH
11
11
  remote: ../attachments
12
12
  specs:
13
- brightcontent-attachments (2.0.28)
14
- brightcontent-core (= 2.0.28)
13
+ brightcontent-attachments (2.0.29)
14
+ brightcontent-core (= 2.0.29)
15
15
  jquery-fileupload-rails
16
16
  paperclip
17
17
 
18
18
  PATH
19
19
  remote: ../core
20
20
  specs:
21
- brightcontent-core (2.0.28)
21
+ brightcontent-core (2.0.29)
22
22
  bcrypt-ruby
23
23
  bootstrap-wysihtml5-rails
24
24
  has_scope
@@ -0,0 +1,74 @@
1
+ /*
2
+ *= require tree
3
+ *= require nested_options
4
+ */
5
+
6
+ .sortable_tree{
7
+ margin: 0; padding: 0;
8
+
9
+ ol{
10
+ margin: 0 0 0 13px;
11
+ padding: 0 0 0 15px;
12
+ border-left: 1px dashed #ddd;
13
+ list-style: none outside none;
14
+ }
15
+
16
+ li{
17
+ position: relative;
18
+ list-style: none outside none;
19
+ }
20
+
21
+ a{
22
+ font-weight:normal;
23
+ text-decoration:none;
24
+ margin-left:30px;
25
+ margin-right:120px;
26
+ display:block;
27
+ font-size: 14px;
28
+ padding: 12px 7px;
29
+ }
30
+
31
+ h4 {
32
+ margin: 0
33
+ }
34
+
35
+ .handle{
36
+ background: url(brightcontent/move.png) no-repeat;
37
+
38
+ width: 10px;
39
+ height: 10px;
40
+ position: absolute;
41
+ top: 18px;
42
+ left: 13px;
43
+ cursor: move;
44
+ }
45
+
46
+ .item{
47
+ background: #fff;
48
+ border: 1px solid #ddd;
49
+ margin-bottom: -1px;
50
+ a { font-weight: bold; }
51
+ &:hover{ background: #ffc; }
52
+ }
53
+
54
+ .nested_set .item {
55
+ background: #f7f7f7;
56
+ a { font-weight: normal; color: #333; }
57
+ &:hover{ background: #ffc; }
58
+ }
59
+
60
+ .nested_set .nested_set .item {
61
+ background: #eee;
62
+ &:hover{ background: #ffc; }
63
+ }
64
+
65
+ .placeholder {
66
+ background-color: #d9edf7;
67
+ }
68
+
69
+ .ui-nestedSortable-error {
70
+ background: #FAA;
71
+ color: #8a1f11;
72
+ }
73
+
74
+ }
@@ -20,10 +20,9 @@ module RenderSortableTreeHelper
20
20
  <li id='#{ node.id }_#{ options[:klass] }'>
21
21
  <div class='item #{"page-hidden" if node.hidden? }'>
22
22
  <i class='handle'></i>
23
- #{ show_link }
24
- #{ controls }
23
+ #{show_link}
25
24
  </div>
26
- #{ children }
25
+ #{children}
27
26
  </li>
28
27
  "
29
28
  end
@@ -34,21 +33,7 @@ module RenderSortableTreeHelper
34
33
  url = h.url_for(ns + [node])
35
34
  title_field = options[:title]
36
35
 
37
- "<h4>#{ h.link_to(node.send(title_field), url) }</h4>"
38
- end
39
-
40
- def controls
41
- node = options[:node]
42
-
43
- edit_path = h.url_for(:controller => options[:klass].pluralize, :action => :edit, :id => node)
44
- show_path = h.url_for(:controller => options[:klass].pluralize, :action => :show, :id => node)
45
-
46
- "
47
- <div class='controls'>
48
- #{ h.link_to '', edit_path, :class => :edit }
49
- #{ h.link_to '', show_path, :class => :delete, :method => :delete, :data => { :confirm => 'Are you sure?' } }
50
- </div>
51
- "
36
+ h.link_to(node.send(title_field), url)
52
37
  end
53
38
 
54
39
  def children
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: brightcontent-pages
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.28
4
+ version: 2.0.29
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -18,7 +18,7 @@ dependencies:
18
18
  requirements:
19
19
  - - '='
20
20
  - !ruby/object:Gem::Version
21
- version: 2.0.28
21
+ version: 2.0.29
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - '='
28
28
  - !ruby/object:Gem::Version
29
- version: 2.0.28
29
+ version: 2.0.29
30
30
  - !ruby/object:Gem::Dependency
31
31
  name: brightcontent-attachments
32
32
  requirement: !ruby/object:Gem::Requirement
@@ -34,7 +34,7 @@ dependencies:
34
34
  requirements:
35
35
  - - '='
36
36
  - !ruby/object:Gem::Version
37
- version: 2.0.28
37
+ version: 2.0.29
38
38
  type: :runtime
39
39
  prerelease: false
40
40
  version_requirements: !ruby/object:Gem::Requirement
@@ -42,7 +42,7 @@ dependencies:
42
42
  requirements:
43
43
  - - '='
44
44
  - !ruby/object:Gem::Version
45
- version: 2.0.28
45
+ version: 2.0.29
46
46
  - !ruby/object:Gem::Dependency
47
47
  name: awesome_nested_set
48
48
  requirement: !ruby/object:Gem::Requirement
@@ -166,8 +166,9 @@ files:
166
166
  - Gemfile.lock
167
167
  - Rakefile
168
168
  - app/assets/images/brightcontent/.gitkeep
169
+ - app/assets/images/brightcontent/move.png
169
170
  - app/assets/javascripts/pages.js
170
- - app/assets/stylesheets/pages.css
171
+ - app/assets/stylesheets/pages.css.scss
171
172
  - app/controllers/brightcontent/page_base_controller.rb
172
173
  - app/controllers/brightcontent/pages_controller.rb
173
174
  - app/helpers/brightcontent/pages_helper.rb
@@ -251,7 +252,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
251
252
  version: '0'
252
253
  segments:
253
254
  - 0
254
- hash: 2314282457410771759
255
+ hash: -1629708074464329576
255
256
  required_rubygems_version: !ruby/object:Gem::Requirement
256
257
  none: false
257
258
  requirements:
@@ -260,7 +261,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
260
261
  version: '0'
261
262
  segments:
262
263
  - 0
263
- hash: 2314282457410771759
264
+ hash: -1629708074464329576
264
265
  requirements: []
265
266
  rubyforge_project:
266
267
  rubygems_version: 1.8.24
@@ -1,5 +0,0 @@
1
- /*
2
- *= require tree
3
- *= require sortable_tree
4
- *= require nested_options
5
- */