radiant-drag_order-extension 0.4.8 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/VERSION +1 -1
- data/lib/tasks/drag_order_extension_tasks.rake +29 -1
- data/public/javascripts/admin/extensions/drag_order/drag_order.js +1 -0
- data/public/stylesheets/sass/admin/extensions/drag_order/drag_order.sass +3 -2
- data/public/stylesheets/sass/admin/partials/_index.sass +23 -20
- data/radiant-drag_order-extension.gemspec +2 -2
- metadata +9 -9
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.5.0
|
@@ -7,21 +7,49 @@ namespace :radiant do
|
|
7
7
|
require 'radiant/extension_migrator'
|
8
8
|
if ENV["VERSION"]
|
9
9
|
DragOrderExtension.migrator.migrate(ENV["VERSION"].to_i)
|
10
|
+
Rake::Task['db:schema:dump'].invoke
|
10
11
|
else
|
11
12
|
DragOrderExtension.migrator.migrate
|
13
|
+
Rake::Task['db:schema:dump'].invoke
|
12
14
|
end
|
13
15
|
end
|
14
16
|
|
15
|
-
desc "Copies public assets of the DragOrder
|
17
|
+
desc "Copies public assets of the DragOrder to the instance public/ directory."
|
16
18
|
task :update => :environment do
|
17
19
|
is_svn_or_dir = proc {|path| path =~ /\.svn/ || File.directory?(path) }
|
20
|
+
puts "Copying assets from DragOrderExtension"
|
18
21
|
Dir[DragOrderExtension.root + "/public/**/*"].reject(&is_svn_or_dir).each do |file|
|
19
22
|
path = file.sub(DragOrderExtension.root, '')
|
20
23
|
directory = File.dirname(path)
|
21
24
|
mkdir_p RAILS_ROOT + directory, :verbose => false
|
22
25
|
cp file, RAILS_ROOT + path, :verbose => false
|
23
26
|
end
|
27
|
+
unless DragOrderExtension.root.starts_with? RAILS_ROOT # don't need to copy vendored tasks
|
28
|
+
puts "Copying rake tasks from DragOrderExtension"
|
29
|
+
local_tasks_path = File.join(RAILS_ROOT, %w(lib tasks))
|
30
|
+
mkdir_p local_tasks_path, :verbose => false
|
31
|
+
Dir[File.join DragOrderExtension.root, %w(lib tasks *.rake)].each do |file|
|
32
|
+
cp file, local_tasks_path, :verbose => false
|
33
|
+
end
|
34
|
+
end
|
24
35
|
end
|
36
|
+
|
37
|
+
desc "Syncs all available translations for this ext to the English ext master"
|
38
|
+
task :sync => :environment do
|
39
|
+
# The main translation root, basically where English is kept
|
40
|
+
language_root = DragOrderExtension.root + "/config/locales"
|
41
|
+
words = TranslationSupport.get_translation_keys(language_root)
|
42
|
+
|
43
|
+
Dir["#{language_root}/*.yml"].each do |filename|
|
44
|
+
next if filename.match('_available_tags')
|
45
|
+
basename = File.basename(filename, '.yml')
|
46
|
+
puts "Syncing #{basename}"
|
47
|
+
(comments, other) = TranslationSupport.read_file(filename, basename)
|
48
|
+
words.each { |k,v| other[k] ||= words[k] } # Initializing hash variable as empty if it does not exist
|
49
|
+
other.delete_if { |k,v| !words[k] } # Remove if not defined in en.yml
|
50
|
+
TranslationSupport.write_file(filename, basename, comments, other)
|
51
|
+
end
|
52
|
+
end
|
25
53
|
end
|
26
54
|
end
|
27
55
|
end
|
@@ -25,6 +25,7 @@
|
|
25
25
|
&.drag_move
|
26
26
|
.children
|
27
27
|
opacity: 0.25
|
28
|
+
filter: alpha(opacity = 25)
|
28
29
|
|
29
30
|
.attributes
|
30
31
|
|
@@ -35,7 +36,7 @@
|
|
35
36
|
cursor: move
|
36
37
|
left: 9px
|
37
38
|
width: 24px
|
38
|
-
|
39
|
+
visibility: hidden
|
39
40
|
|
40
41
|
img
|
41
42
|
cursor: move
|
@@ -43,7 +44,7 @@
|
|
43
44
|
&:hover
|
44
45
|
.attribute
|
45
46
|
&.handle
|
46
|
-
|
47
|
+
visibility: visible
|
47
48
|
|
48
49
|
.inset
|
49
50
|
.handle
|
@@ -13,6 +13,17 @@
|
|
13
13
|
text-align: center
|
14
14
|
+border-radius(100px)
|
15
15
|
|
16
|
+
=object_name
|
17
|
+
font-size: 115%
|
18
|
+
font-weight: bold
|
19
|
+
img
|
20
|
+
vertical-align: center
|
21
|
+
a
|
22
|
+
color: black
|
23
|
+
text-decoration: none
|
24
|
+
&:hover
|
25
|
+
color: #0066cc
|
26
|
+
text-decoration: underline
|
16
27
|
#main
|
17
28
|
// Support floated elements, avoid horizontal scrollbar
|
18
29
|
overflow: hidden
|
@@ -22,7 +33,7 @@ ol.index
|
|
22
33
|
|
23
34
|
.index
|
24
35
|
font-size: 90%
|
25
|
-
margin-bottom:
|
36
|
+
margin-bottom: 2em
|
26
37
|
width: 100%
|
27
38
|
th
|
28
39
|
text-align: left
|
@@ -61,27 +72,19 @@ ol.index
|
|
61
72
|
display: block
|
62
73
|
float: left
|
63
74
|
padding-right: 5px
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
font-weight: bold
|
73
|
-
img
|
74
|
-
vertical-align: center
|
75
|
-
a
|
76
|
-
color: black
|
77
|
-
text-decoration: none
|
78
|
-
&:hover
|
79
|
-
color: #0066cc
|
80
|
-
text-decoration: underline
|
75
|
+
&.empty
|
76
|
+
color: silver
|
77
|
+
font-size: 85%
|
78
|
+
font-style: italic
|
79
|
+
padding: 3em
|
80
|
+
text-align: center
|
81
|
+
&.name
|
82
|
+
+object_name
|
81
83
|
li .attributes .actions
|
82
84
|
float: right
|
83
|
-
td.
|
84
|
-
width:
|
85
|
+
td.name
|
86
|
+
width: 80%
|
87
|
+
+object_name
|
85
88
|
li .attributes .actions, td.actions
|
86
89
|
a.action, span.action.disabled
|
87
90
|
padding: 6px
|
@@ -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.
|
8
|
+
s.version = "0.5.0"
|
9
9
|
|
10
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-12-
|
12
|
+
s.date = %q{2010-12-14}
|
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 = [
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: radiant-drag_order-extension
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 11
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
-
|
10
|
-
version: 0.
|
8
|
+
- 5
|
9
|
+
- 0
|
10
|
+
version: 0.5.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Dirk Kelly
|
@@ -15,13 +15,13 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-12-
|
18
|
+
date: 2010-12-14 00:00:00 +08:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
22
|
-
|
22
|
+
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
|
24
|
+
version_requirements: &id001 !ruby/object:Gem::Requirement
|
25
25
|
none: false
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
@@ -32,8 +32,8 @@ dependencies:
|
|
32
32
|
- 9
|
33
33
|
- 1
|
34
34
|
version: 0.9.1
|
35
|
-
|
36
|
-
|
35
|
+
name: radiant
|
36
|
+
requirement: *id001
|
37
37
|
description: Radiant DragOrder allows you to reorder pages funly
|
38
38
|
email: dk@dirkkelly.com
|
39
39
|
executables: []
|