radiant-drag_order-extension 0.4.0.beta.2 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +9 -2
- data/VERSION +1 -1
- data/app/views/admin/pages/_handle.html.haml +1 -1
- data/app/views/admin/pages/_node.html.haml +18 -19
- data/app/views/admin/pages/index.html.haml +1 -6
- data/drag_order_extension.rb +1 -0
- data/lib/drag_order/controllers/admin/pages_controller.rb +6 -3
- data/lib/drag_order/helpers/admin/node_helper.rb +33 -0
- data/public/javascripts/admin/extensions/drag_order/drag_order.js +63 -19
- data/public/javascripts/admin/sitemap.js +13 -17
- data/public/stylesheets/sass/admin/extensions/drag_order/drag_order.sass +23 -105
- data/public/stylesheets/sass/admin/partials/_index.sass +172 -0
- data/radiant-drag_order-extension.gemspec +5 -3
- metadata +10 -12
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# DragOrder for Radiant 0.9.
|
1
|
+
# DragOrder for Radiant 0.9.2+
|
2
2
|
|
3
3
|
Created by Bright 4, February 2009. Inspired by and based on Sean Cribbs' Reorder extension.
|
4
4
|
|
@@ -6,7 +6,7 @@ Created by Bright 4, February 2009. Inspired by and based on Sean Cribbs' Reorde
|
|
6
6
|
|
7
7
|
Only designers and admins have the ability to re-order pages
|
8
8
|
|
9
|
-
|
9
|
+
Is now only compatible with Radiant above 0.9.1 (especially as a gem)
|
10
10
|
|
11
11
|
## Installation
|
12
12
|
|
@@ -17,6 +17,13 @@ Master should work with Radiant Edge. Use git tag radiant-0.9.1 with the Radiant
|
|
17
17
|
|
18
18
|
## Version History
|
19
19
|
|
20
|
+
### v0.4.2 - 2010-11-27
|
21
|
+
|
22
|
+
* Made compatible with edge, otherwise we can't override views
|
23
|
+
* Tidied up a lot of internal javascript
|
24
|
+
* Overrode some helpers
|
25
|
+
* Rewrote more of sitemap.js
|
26
|
+
|
20
27
|
### v0.3.7 - 2010-11-22
|
21
28
|
|
22
29
|
* Turned into a gem
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.4.
|
1
|
+
0.4.2
|
@@ -1,2 +1,2 @@
|
|
1
|
-
%span.handle
|
1
|
+
%span.handle.attribute
|
2
2
|
= level > 0 ? order_dragger : ""
|
@@ -1,26 +1,25 @@
|
|
1
1
|
%li.node.page{:class =>"level_#{level}#{children_class}#{virtual_class}", :id => "page_#{page.id}", :'data-page_id' => page.id, :'data-level' => level}
|
2
|
-
.attributes
|
2
|
+
.attributes{:style => "padding-left: #{padding_left(level)}px"}
|
3
3
|
- render_region :node, :locals => {:page => page, :level => level, :simple => simple} do |node|
|
4
4
|
- node.title_column do
|
5
|
-
%span.attribute.
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
= page_type
|
13
|
-
= spinner
|
5
|
+
%span.attribute.name
|
6
|
+
- if simple
|
7
|
+
= icon
|
8
|
+
= node_title
|
9
|
+
- else
|
10
|
+
= expander + link_to("#{icon} #{node_title}", edit_admin_page_url(page), :title => page.url)
|
11
|
+
= page_type
|
14
12
|
- node.status_column do
|
15
13
|
- unless simple
|
16
|
-
%span.
|
17
|
-
- node.
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
%span.attribute.remove= link_to t('remove'), remove_admin_page_url(page)
|
14
|
+
%span.status{:class => "#{page.status.name.downcase}_status", :title => "#{timestamp(page.published_at) if page.published_at}"}= t(page.status.name.downcase)
|
15
|
+
- node.actions_column do
|
16
|
+
%span.attribute.actions
|
17
|
+
= child_link_for(page)
|
18
|
+
= link_to image('minus') + ' ' + t('remove'), remove_admin_page_url(page), :class => "action"
|
19
|
+
= child_menu_for(page)
|
23
20
|
|
24
|
-
%ol.children{:id => "#{level == 0 ? '
|
21
|
+
%ol.children{:id => "#{level == 0 ? 'parent_pages' : "page_#{page.id}_pages"}"}
|
25
22
|
- page.children.each do |child|
|
26
|
-
= render_node child, :level => level + 1, :simple => simple
|
23
|
+
= render_node child, :level => level + 1, :simple => simple
|
24
|
+
|
25
|
+
|
@@ -1,13 +1,8 @@
|
|
1
|
-
- @javascripts << 'admin/dragdrop.js'
|
2
|
-
- @javascripts << 'admin/sortable_tree.js'
|
3
|
-
- @javascripts << 'admin/extensions/drag_order/drag_order.js'
|
4
|
-
- @stylesheets << 'admin/extensions/drag_order/drag_order.css'
|
5
|
-
|
6
1
|
- @page_title = t('pages') + ' - ' + default_page_title
|
7
2
|
|
8
3
|
.outset
|
9
4
|
= render_region :top
|
10
|
-
%ol#
|
5
|
+
%ol#pages.index{:summary=>"Page hierarchy of the current site"}
|
11
6
|
- if @homepage
|
12
7
|
= render_node @homepage
|
13
8
|
- else
|
data/drag_order_extension.rb
CHANGED
@@ -7,6 +7,7 @@ class DragOrderExtension < Radiant::Extension
|
|
7
7
|
Page.send :include, DragOrder::Models::Page
|
8
8
|
StandardTags.send :include, DragOrder::Tags::Core
|
9
9
|
Admin::PagesController.send :include, DragOrder::Controllers::Admin::PagesController
|
10
|
+
Admin::NodeHelper.send :include, DragOrder::Helpers::Admin::NodeHelper
|
10
11
|
|
11
12
|
admin.pages.index.add :node, "handle", :before => "title_column"
|
12
13
|
end
|
@@ -6,7 +6,7 @@ module DragOrder
|
|
6
6
|
def self.included(base)
|
7
7
|
base.class_eval do
|
8
8
|
|
9
|
-
|
9
|
+
before_filter :drag_assets, :only => [:index, :remove]
|
10
10
|
|
11
11
|
def sort
|
12
12
|
begin
|
@@ -30,8 +30,11 @@ module DragOrder
|
|
30
30
|
|
31
31
|
private
|
32
32
|
|
33
|
-
def
|
34
|
-
|
33
|
+
def drag_assets
|
34
|
+
@javascripts << 'admin/dragdrop.js'
|
35
|
+
@javascripts << 'admin/sortable_tree.js'
|
36
|
+
@javascripts << 'admin/extensions/drag_order/drag_order.js'
|
37
|
+
@stylesheets << 'admin/extensions/drag_order/drag_order.css'
|
35
38
|
end
|
36
39
|
|
37
40
|
end
|
@@ -0,0 +1,33 @@
|
|
1
|
+
module DragOrder
|
2
|
+
module Helpers
|
3
|
+
module Admin
|
4
|
+
module NodeHelper
|
5
|
+
|
6
|
+
def self.included(base)
|
7
|
+
base.class_eval do
|
8
|
+
|
9
|
+
def order_dragger
|
10
|
+
%{<img src="/images/admin/extensions/drag_order/handle.png" alt ="Drag this icon to move the page" />}
|
11
|
+
end
|
12
|
+
|
13
|
+
def padding_left(level)
|
14
|
+
(level * 23) + 31
|
15
|
+
end
|
16
|
+
|
17
|
+
def expander
|
18
|
+
image((expanded ? "collapse" : "expand"),
|
19
|
+
:class => "expander #{needs_expanding ? 'visible' : 'hidden'}", :alt => 'toggle children',
|
20
|
+
:title => '')
|
21
|
+
end
|
22
|
+
|
23
|
+
def needs_expanding
|
24
|
+
@current_node.children.present? and @current_node.parent.present?
|
25
|
+
end
|
26
|
+
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
@@ -3,6 +3,11 @@ document.observe("dom:loaded", function() {
|
|
3
3
|
drag_order_index.initialize();
|
4
4
|
})
|
5
5
|
|
6
|
+
Event.addBehavior({
|
7
|
+
'.index#pages': SiteMapBehavior(),
|
8
|
+
'.index': RuledTableBehavior(),
|
9
|
+
});
|
10
|
+
|
6
11
|
var DragOrderIndex = Class.create({
|
7
12
|
|
8
13
|
initialize: function() {
|
@@ -10,7 +15,7 @@ var DragOrderIndex = Class.create({
|
|
10
15
|
},
|
11
16
|
|
12
17
|
sortPages: function() {
|
13
|
-
var tree = new SortableTree('
|
18
|
+
var tree = new SortableTree('parent_pages', {
|
14
19
|
draggable: {
|
15
20
|
handle: 'handle',
|
16
21
|
ghosting: false,
|
@@ -23,41 +28,80 @@ var DragOrderIndex = Class.create({
|
|
23
28
|
}
|
24
29
|
},
|
25
30
|
onDrop: function(drag, drop, event){
|
26
|
-
var parent = drag.element.up('.page')
|
27
|
-
var children = '';
|
28
|
-
|
29
31
|
this.moveHandles(drag.element);
|
30
|
-
|
31
|
-
parent.down('.children').immediateDescendants().each(function(page) {
|
32
|
-
children += page.readAttribute('data-page_id') + ','
|
33
|
-
});
|
34
|
-
children = children.slice(0,-1);
|
32
|
+
this.assignExpanders(drag.element);
|
35
33
|
|
36
34
|
new Ajax.Request('/admin/pages/sort.js', {
|
37
35
|
method: 'put',
|
38
36
|
parameters: {
|
39
|
-
'parent_id':
|
40
|
-
'children' :
|
37
|
+
'parent_id': this.getPageID(drag.element.up('.page')),
|
38
|
+
'children' : this.buildChildrenString(drag.element)
|
41
39
|
}
|
42
|
-
})
|
43
|
-
|
40
|
+
});
|
44
41
|
}.bind(this)
|
45
42
|
});
|
46
43
|
tree.setSortable();
|
47
44
|
},
|
48
45
|
|
46
|
+
assignExpanders: function(element) {
|
47
|
+
element.up('#pages').select('.page').each(function(page) {
|
48
|
+
var children = page.down('.children').immediateDescendants();
|
49
|
+
|
50
|
+
// If there are children, it's not the home and it doesn't have children_visible
|
51
|
+
if (children.length > 0) {
|
52
|
+
if (!page.hasClassName('level_0') && !page.hasClassName('children_visible')) {
|
53
|
+
// Toggle Expand Class (we want an expander)
|
54
|
+
page.down('.expander').addClassName('visible');
|
55
|
+
page.down('.expander').removeClassName('hidden');
|
56
|
+
|
57
|
+
// Toggle Children Identifier Classes (there are children)
|
58
|
+
page.addClassName('children_visible');
|
59
|
+
page.removeClassName('no_children');
|
60
|
+
page.removeClassName('children_hidden');
|
61
|
+
}
|
62
|
+
}
|
63
|
+
// Else if there is not already a class of no children
|
64
|
+
else if (!page.hasClassName('no_children')) {
|
65
|
+
// Toggle Expand Class
|
66
|
+
page.down('.expander').addClassName('hidden');
|
67
|
+
page.down('.expander').removeClassName('visible');
|
68
|
+
|
69
|
+
// Toggle Children Identifier Classes
|
70
|
+
page.addClassName('no_children');
|
71
|
+
page.removeClassName('children_visible');
|
72
|
+
page.removeClassName('children_hidden');
|
73
|
+
}
|
74
|
+
});
|
75
|
+
},
|
76
|
+
|
49
77
|
moveHandles: function(page) {
|
50
78
|
var level = parseInt(page.up('.page').getAttribute('data-level'))
|
51
|
-
|
79
|
+
|
80
|
+
level += 1;
|
52
81
|
page.setAttribute('data-level', level)
|
53
|
-
page.down('.
|
82
|
+
page.down('.attributes').setStyle({ paddingLeft: ((level * 23) + 31) + 'px' });
|
54
83
|
|
55
84
|
page.select('.children').each(function(container) {
|
56
|
-
level += 1
|
57
|
-
container.select('.page').each(function(
|
58
|
-
|
59
|
-
|
85
|
+
level += 1;
|
86
|
+
container.select('.page').each(function(page) {
|
87
|
+
page.setAttribute('data-level', level);
|
88
|
+
page.down('.attributes').setStyle({ paddingLeft: ((level * 23) + 31) + 'px' });
|
60
89
|
});
|
61
90
|
});
|
91
|
+
},
|
92
|
+
|
93
|
+
buildChildrenString: function(page) {
|
94
|
+
var drag_order = this;
|
95
|
+
|
96
|
+
var children = drag_order.getPageID(page);
|
97
|
+
|
98
|
+
page.siblings('.page').each(function(page) {
|
99
|
+
children += ',' + drag_order.getPageID(page);
|
100
|
+
})
|
101
|
+
return children
|
102
|
+
},
|
103
|
+
|
104
|
+
getPageID: function(page) {
|
105
|
+
return page.readAttribute('data-page_id');
|
62
106
|
}
|
63
107
|
})
|
@@ -75,24 +75,24 @@ var SiteMapBehavior = Behavior.create({
|
|
75
75
|
toggleExpanded: function(row, img) {
|
76
76
|
if (!img) img = this.getExpanderImageForRow(row);
|
77
77
|
if (this.isExpanded(row)) {
|
78
|
-
|
79
|
-
row.removeClassName('children_visible');
|
80
|
-
row.addClassName('children_hidden');
|
81
|
-
this.persistCollapsed(row);
|
78
|
+
this.hideBranch(rom,image);
|
82
79
|
} else {
|
83
|
-
|
84
|
-
row.removeClassName('children_hidden');
|
85
|
-
row.addClassName('children_visible');
|
86
|
-
this.persistExpanded(row);
|
80
|
+
this.showBranch(rom,image);
|
87
81
|
}
|
88
82
|
},
|
89
83
|
|
90
|
-
hideBranch: function(
|
91
|
-
|
84
|
+
hideBranch: function(row, img) {
|
85
|
+
img.src = img.src.replace('collapse', 'expand');
|
86
|
+
row.removeClassName('children_visible');
|
87
|
+
row.addClassName('children_hidden');
|
88
|
+
this.persistCollapsed(row);
|
92
89
|
},
|
93
90
|
|
94
|
-
showBranch: function(
|
95
|
-
|
91
|
+
showBranch: function(row, img) {
|
92
|
+
img.src = img.src.replace('expand', 'collapse');
|
93
|
+
row.removeClassName('children_hidden');
|
94
|
+
row.addClassName('children_visible');
|
95
|
+
this.persistExpanded(row);
|
96
96
|
},
|
97
97
|
|
98
98
|
toggleBranch: function(row, img) {
|
@@ -104,8 +104,4 @@ var SiteMapBehavior = Behavior.create({
|
|
104
104
|
}
|
105
105
|
}
|
106
106
|
}
|
107
|
-
});
|
108
|
-
|
109
|
-
Event.addBehavior({
|
110
|
-
'#site_map': SiteMapBehavior()
|
111
|
-
})
|
107
|
+
});
|
@@ -1,120 +1,38 @@
|
|
1
|
-
#
|
2
|
-
|
3
|
-
#pages
|
4
|
-
padding-left: 7px
|
1
|
+
.index#pages
|
5
2
|
|
6
3
|
.page
|
7
|
-
position: relative
|
8
4
|
|
9
5
|
&.drop_hover
|
10
|
-
background-color: #
|
6
|
+
background-color: #FBFBFB
|
7
|
+
border-color: transparent
|
8
|
+
|
9
|
+
li
|
10
|
+
border-color: transparent
|
11
11
|
|
12
12
|
&.drop_insert
|
13
|
-
background-color: #
|
13
|
+
background-color: #F6F8FF
|
14
|
+
border-color: transparent
|
15
|
+
|
16
|
+
li
|
17
|
+
border-color: transparent
|
14
18
|
|
15
19
|
&.drag_move
|
16
20
|
.children
|
17
21
|
opacity: 0.25
|
18
|
-
|
19
|
-
.attributes
|
20
|
-
width: 100%
|
21
|
-
height: 31px
|
22
|
-
line-height: 31px
|
23
|
-
padding: 4px 0 4px 10px
|
24
|
-
overflow: hidden
|
25
|
-
text-decoration: none
|
26
|
-
padding-left: 5px
|
27
|
-
|
28
|
-
.handle
|
29
|
-
position: absolute
|
30
|
-
cursor: move
|
31
|
-
|
32
|
-
.attribute
|
33
|
-
display: block
|
34
|
-
float: left
|
35
|
-
padding-right: 5px
|
36
|
-
|
37
|
-
&.title
|
38
|
-
padding-left: 20px
|
39
|
-
|
40
|
-
a
|
41
|
-
text-decoration: none !important
|
42
|
-
|
43
|
-
.title
|
44
|
-
color: black
|
45
|
-
font-size: 100%
|
46
|
-
font-weight: bold
|
47
|
-
text-decoration: none
|
48
|
-
|
49
|
-
&:hover
|
50
|
-
color: #0066cc
|
51
|
-
text-decoration: underline
|
52
|
-
|
53
|
-
.info
|
54
|
-
color: #9eb3bf
|
55
|
-
font-style: italic
|
56
|
-
font-weight: normal
|
57
|
-
|
58
|
-
&.virtual .page a .title
|
59
|
-
color: #9eb3bf
|
60
|
-
|
61
|
-
.w1
|
62
|
-
display: block
|
63
|
-
|
64
|
-
.expander
|
65
|
-
position: absolute
|
66
|
-
left: 0
|
67
|
-
top: 13px
|
68
|
-
padding: 0 3px
|
69
|
-
|
70
|
-
.add_child, .remove
|
71
|
-
position: absolute
|
72
|
-
top: 3px
|
73
|
-
font-size: 14px
|
74
|
-
width: 100px
|
75
|
-
|
76
|
-
.add_child
|
77
|
-
right: 100px
|
78
|
-
padding-left: 0
|
79
|
-
a
|
80
|
-
color: black
|
81
|
-
text-decoration: none
|
82
|
-
font-size: 80%
|
83
|
-
padding: 0 0 0 20px
|
84
|
-
background: url(/images/admin/plus.png) 4px 0 no-repeat
|
85
|
-
.remove
|
86
|
-
right: 0
|
87
|
-
padding-left: 0
|
88
|
-
a
|
89
|
-
color: black
|
90
|
-
text-decoration: none
|
91
|
-
font-size: 80%
|
92
|
-
padding: 0 0 0 20px
|
93
|
-
background: url(/images/admin/minus.png) 4px 0 no-repeat
|
94
|
-
.disabled
|
95
|
-
color: #ccc
|
96
|
-
font-size: 80%
|
97
|
-
padding: 0 0 0 20px
|
98
|
-
background: url(/images/admin/minus_disabled.png) 4px 0 no-repeat
|
99
22
|
|
100
|
-
|
101
|
-
.children
|
102
|
-
li
|
103
|
-
display: block
|
104
|
-
&.children_hidden
|
105
|
-
.children
|
106
|
-
li
|
107
|
-
display: none
|
23
|
+
.attributes
|
108
24
|
|
109
|
-
|
110
|
-
border-top: 1px solid #FAFAFA
|
25
|
+
.attribute
|
111
26
|
|
112
|
-
|
113
|
-
|
114
|
-
|
27
|
+
&.handle
|
28
|
+
position: absolute
|
29
|
+
cursor: move
|
30
|
+
left: 9px
|
31
|
+
width: 24px
|
115
32
|
|
116
|
-
|
117
|
-
|
33
|
+
img
|
34
|
+
cursor: move
|
118
35
|
|
119
|
-
|
120
|
-
|
36
|
+
.inset
|
37
|
+
.handle
|
38
|
+
display: none
|
@@ -0,0 +1,172 @@
|
|
1
|
+
=status-badge($background: transparent, $color: black, $width: 5em)
|
2
|
+
float: left
|
3
|
+
height: 14px
|
4
|
+
line-height: 14px
|
5
|
+
font-size: 10px
|
6
|
+
color: $color
|
7
|
+
background: $background
|
8
|
+
display: block
|
9
|
+
padding: 0 6px
|
10
|
+
position: absolute
|
11
|
+
right: 215px
|
12
|
+
top: 14px
|
13
|
+
width: $width
|
14
|
+
text-align: center
|
15
|
+
+border-radius(100px)
|
16
|
+
|
17
|
+
#main
|
18
|
+
// Support floated elements, avoid horizontal scrollbar
|
19
|
+
overflow: hidden
|
20
|
+
|
21
|
+
.index
|
22
|
+
font-size: 90%
|
23
|
+
margin-bottom: 2emasset
|
24
|
+
width: 100%
|
25
|
+
border-bottom: 1px solid white
|
26
|
+
li
|
27
|
+
position: relative
|
28
|
+
text-align: left
|
29
|
+
&:first-child
|
30
|
+
border-top: 1px solid white
|
31
|
+
.attributes
|
32
|
+
width: auto
|
33
|
+
height: 31px
|
34
|
+
line-height: 31px
|
35
|
+
padding: 4px 0 4px 10px
|
36
|
+
overflow: hidden
|
37
|
+
text-decoration: none
|
38
|
+
padding-left: 5px
|
39
|
+
border-top: 1px solid #fafafa
|
40
|
+
border-bottom: 1px solid transparent
|
41
|
+
&:hover
|
42
|
+
border-top: 1px solid #d5f0ff
|
43
|
+
border-bottom: 1px solid #c5dff5
|
44
|
+
background: #c5dff5 image_url('admin/row_highlight.png') repeat-x center top
|
45
|
+
+linear-gradient(color_stops(#e5f5ff, #c5dff5))
|
46
|
+
.attribute
|
47
|
+
display: block
|
48
|
+
float: left
|
49
|
+
padding-right: 5px
|
50
|
+
.actions
|
51
|
+
float: right
|
52
|
+
margin-top: -2px
|
53
|
+
a.action, span.action.disabled
|
54
|
+
padding: 6px
|
55
|
+
margin: 0 25px 0 1px
|
56
|
+
font-size: 10px
|
57
|
+
img
|
58
|
+
vertical-align: -10%
|
59
|
+
a.action
|
60
|
+
color: black
|
61
|
+
text-decoration: none
|
62
|
+
&:hover
|
63
|
+
background: #eee image_url('admin/buttons_background.png') repeat-x
|
64
|
+
border: 1px solid #a5c9df
|
65
|
+
margin: 0 24px 0 0
|
66
|
+
+border-radius
|
67
|
+
&.selected
|
68
|
+
background: #c5e0f5
|
69
|
+
+linear-gradient(color_stops(#e5f5ff, #c5e0ff))
|
70
|
+
border: 1px solid #a5c9df
|
71
|
+
margin: 0 24px 0 0
|
72
|
+
+border-top-radius
|
73
|
+
+border-bottom-radius(0)
|
74
|
+
span.action.disabled
|
75
|
+
color: #ccc
|
76
|
+
&.empty
|
77
|
+
color: silver
|
78
|
+
font-size: 85%
|
79
|
+
font-style: italic
|
80
|
+
padding: 3em
|
81
|
+
text-align: center
|
82
|
+
&.name
|
83
|
+
font-size: 115%
|
84
|
+
font-weight: bold
|
85
|
+
img
|
86
|
+
vertical-align: center
|
87
|
+
a
|
88
|
+
color: black
|
89
|
+
text-decoration: none
|
90
|
+
&:hover
|
91
|
+
color: #0066cc
|
92
|
+
text-decoration: underline
|
93
|
+
&.actions
|
94
|
+
float: right
|
95
|
+
font-size: 85%
|
96
|
+
white-space: nowrap
|
97
|
+
|
98
|
+
.index#pages
|
99
|
+
.page
|
100
|
+
&.level_0 .attributes .attribute.name
|
101
|
+
font-size: 120%
|
102
|
+
font-weight: bold
|
103
|
+
&.level_1 .attributes .attribute.name
|
104
|
+
font-size: 115%
|
105
|
+
font-weight: bold
|
106
|
+
&.level_2 .attributes .attribute.name
|
107
|
+
font-size: 115%
|
108
|
+
&.level_3 .attributes .attribute.name
|
109
|
+
font-size: 105%
|
110
|
+
&.virtual .attributes .attribute.name a .title
|
111
|
+
color: #9eb3bf
|
112
|
+
&.children_visible
|
113
|
+
.children
|
114
|
+
display: block
|
115
|
+
&.children_hidden
|
116
|
+
.children
|
117
|
+
display: none
|
118
|
+
.attributes
|
119
|
+
.attribute.name
|
120
|
+
font-size: 105%
|
121
|
+
a
|
122
|
+
text-decoration: none
|
123
|
+
.title
|
124
|
+
color: black
|
125
|
+
text-decoration: none
|
126
|
+
&:hover .title
|
127
|
+
color: #0066cc
|
128
|
+
text-decoration: underline
|
129
|
+
.info
|
130
|
+
color: #9eb3bf
|
131
|
+
font-style: italic
|
132
|
+
font-weight: normal
|
133
|
+
font-size: 90%
|
134
|
+
.attribute.name
|
135
|
+
position: relative
|
136
|
+
img.expander
|
137
|
+
position: absolute
|
138
|
+
left: -25px
|
139
|
+
top: 8px
|
140
|
+
padding: 0 3px
|
141
|
+
&.hidden
|
142
|
+
visibility: hidden
|
143
|
+
.attribute.status
|
144
|
+
font-size: 80%
|
145
|
+
|
146
|
+
.status
|
147
|
+
+status-badge
|
148
|
+
a
|
149
|
+
+plain-link
|
150
|
+
.draft_status
|
151
|
+
+status-badge(#cc494c, white)
|
152
|
+
.hidden_status
|
153
|
+
+status-badge(#9eb3bf, white)
|
154
|
+
|
155
|
+
.index#users
|
156
|
+
.name
|
157
|
+
padding-top: 8px
|
158
|
+
padding-bottom: 8px
|
159
|
+
img.avatar
|
160
|
+
margin-right: 4px
|
161
|
+
vertical-align: center
|
162
|
+
.login
|
163
|
+
color: #9eb3bf
|
164
|
+
font-size: 90%
|
165
|
+
font-style: italic
|
166
|
+
font-weight: normal
|
167
|
+
|
168
|
+
.inset
|
169
|
+
li
|
170
|
+
list-style: none
|
171
|
+
.actions
|
172
|
+
display: none
|
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{radiant-drag_order-extension}
|
8
|
-
s.version = "0.4.
|
8
|
+
s.version = "0.4.2"
|
9
9
|
|
10
|
-
s.required_rubygems_version = Gem::Requirement.new("
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Dirk Kelly"]
|
12
|
-
s.date = %q{2010-11-
|
12
|
+
s.date = %q{2010-11-27}
|
13
13
|
s.description = %q{Radiant DragOrder allows you to reorder pages funly}
|
14
14
|
s.email = %q{dk@dirkkelly.com}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -27,6 +27,7 @@ Gem::Specification.new do |s|
|
|
27
27
|
"db/migrate/02_add_default_position.rb",
|
28
28
|
"drag_order_extension.rb",
|
29
29
|
"lib/drag_order/controllers/admin/pages_controller.rb",
|
30
|
+
"lib/drag_order/helpers/admin/node_helper.rb",
|
30
31
|
"lib/drag_order/models/page.rb",
|
31
32
|
"lib/drag_order/tags/core.rb",
|
32
33
|
"lib/radiant-drag_order-extension.rb",
|
@@ -39,6 +40,7 @@ Gem::Specification.new do |s|
|
|
39
40
|
"public/javascripts/admin/sitemap.js",
|
40
41
|
"public/javascripts/admin/sortable_tree.js",
|
41
42
|
"public/stylesheets/sass/admin/extensions/drag_order/drag_order.sass",
|
43
|
+
"public/stylesheets/sass/admin/partials/_index.sass",
|
42
44
|
"radiant-drag_order-extension.gemspec",
|
43
45
|
"spec/controllers/pages_controller_spec.rb",
|
44
46
|
"spec/datasets/sort_pages.rb",
|
metadata
CHANGED
@@ -1,15 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: radiant-drag_order-extension
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
5
|
-
prerelease:
|
4
|
+
hash: 11
|
5
|
+
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 4
|
9
|
-
- 0
|
10
|
-
- beta
|
11
9
|
- 2
|
12
|
-
version: 0.4.
|
10
|
+
version: 0.4.2
|
13
11
|
platform: ruby
|
14
12
|
authors:
|
15
13
|
- Dirk Kelly
|
@@ -17,7 +15,7 @@ autorequire:
|
|
17
15
|
bindir: bin
|
18
16
|
cert_chain: []
|
19
17
|
|
20
|
-
date: 2010-11-
|
18
|
+
date: 2010-11-27 00:00:00 +08:00
|
21
19
|
default_executable:
|
22
20
|
dependencies:
|
23
21
|
- !ruby/object:Gem::Dependency
|
@@ -56,6 +54,7 @@ files:
|
|
56
54
|
- db/migrate/02_add_default_position.rb
|
57
55
|
- drag_order_extension.rb
|
58
56
|
- lib/drag_order/controllers/admin/pages_controller.rb
|
57
|
+
- lib/drag_order/helpers/admin/node_helper.rb
|
59
58
|
- lib/drag_order/models/page.rb
|
60
59
|
- lib/drag_order/tags/core.rb
|
61
60
|
- lib/radiant-drag_order-extension.rb
|
@@ -68,6 +67,7 @@ files:
|
|
68
67
|
- public/javascripts/admin/sitemap.js
|
69
68
|
- public/javascripts/admin/sortable_tree.js
|
70
69
|
- public/stylesheets/sass/admin/extensions/drag_order/drag_order.sass
|
70
|
+
- public/stylesheets/sass/admin/partials/_index.sass
|
71
71
|
- radiant-drag_order-extension.gemspec
|
72
72
|
- spec/controllers/pages_controller_spec.rb
|
73
73
|
- spec/datasets/sort_pages.rb
|
@@ -94,14 +94,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
94
94
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
95
95
|
none: false
|
96
96
|
requirements:
|
97
|
-
- - "
|
97
|
+
- - ">="
|
98
98
|
- !ruby/object:Gem::Version
|
99
|
-
hash:
|
99
|
+
hash: 3
|
100
100
|
segments:
|
101
|
-
-
|
102
|
-
|
103
|
-
- 1
|
104
|
-
version: 1.3.1
|
101
|
+
- 0
|
102
|
+
version: "0"
|
105
103
|
requirements: []
|
106
104
|
|
107
105
|
rubyforge_project:
|