radiant-copy_move-extension 2.1.2 → 2.2.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 CHANGED
@@ -1 +1 @@
1
- 2.1.2
1
+ 2.2.0
@@ -1,13 +1,13 @@
1
1
  - unless simple
2
2
  %td.copy-move
3
3
  - if page.respond_to?('children')
4
- = link_to_function image('copy-move', :alt => 'CopyMove', :style => "margin: 6px 0 -6px 0"), "$(this).next('ul').toggle();Event.stop(event);", :class => "action"
4
+ = link_to_function image('copy-move', :alt => 'CopyMove', :style => "margin: 6px 0 -6px 0"), "$$('ul.popup-menu').each(function(ul){ul.hide()});$(this).next('ul').toggle();Event.stop(event);", :class => "action"
5
5
  %ul.popup-menu{:style => "display:none"}
6
6
  - if page.children.any?
7
- %li= link_to "Copy page only", copy_page_admin_page_url(page), :style =>"background-image: url(/images/admin/page_white.png)"
8
- %li= link_to "Copy with first-level children", copy_children_admin_page_url(page), :style =>"background-image: url(/images/admin/page_white_copy.png)"
9
- %li= link_to "Copy whole subtree", copy_tree_admin_page_url(page), :style =>"background-image: url(/images/admin/page_white_stack.png)"
10
- %li= link_to "Move entire subtree", move_admin_page_url(page), :style =>"background-image: url(/images/admin/page_white_go.png)"
7
+ %li= link_to t('copy_move.copy_page_only'), copy_page_admin_page_url(page), :style =>"background-image: url(/images/admin/page_white.png)"
8
+ %li= link_to t('copy_move.copy_page_and_direct_children'), copy_children_admin_page_url(page), :style =>"background-image: url(/images/admin/page_white_copy.png)"
9
+ %li= link_to t('copy_move.copy_page_and_all_children'), copy_tree_admin_page_url(page), :style =>"background-image: url(/images/admin/page_white_stack.png)"
10
+ %li= link_to t('copy_move.move_page_and_children'), move_admin_page_url(page), :style =>"background-image: url(/images/admin/page_white_go.png)"
11
11
  - else
12
- %li= link_to "Copy page", copy_page_admin_page_url(page), :style =>"background-image: url(/images/admin/page_white.png)"
13
- %li= link_to "Move page", move_admin_page_url(page), :style =>"background-image: url(/images/admin/page_white_go.png)"
12
+ %li= link_to t('copy_move.copy_page_only'), copy_page_admin_page_url(page), :style =>"background-image: url(/images/admin/page_white.png)"
13
+ %li= link_to t('copy_move.move_page'), move_admin_page_url(page), :style =>"background-image: url(/images/admin/page_white_go.png)"
@@ -2,9 +2,21 @@ en:
2
2
  copy_move:
3
3
  copied:
4
4
  'A copy of <strong>{{page}}</strong> was created under <strong>{{parent}}</strong>.'
5
- immediate_children_copied:
6
- 'Copies of <strong>{{page}}</strong> and its immediate children were created under <strong>{{parent}}</strong>'
5
+ copy_page_only:
6
+ "Copy this page."
7
+ copy_page_and_all_children:
8
+ "Copy this page and all of its children."
9
+ copy_page_and_direct_children:
10
+ "Copy this page and its first-level children."
7
11
  descendants_copied:
8
12
  'Copies of <strong>{{page}}</strong> and all its descendants were created under <strong>{{parent}}</strong>.'
9
13
  descendants_moved:
10
- 'Page <strong>{{page}}</strong> and all its descendants were moved under <strong>{{parent}}</strong>.'
14
+ 'Page <strong>{{page}}</strong> and all its descendants were moved under <strong>{{parent}}</strong>.'
15
+ immediate_children_copied:
16
+ 'Copies of <strong>{{page}}</strong> and its immediate children were created under <strong>{{parent}}</strong>'
17
+ move_page:
18
+ 'Move this page'
19
+ move_page_and_children:
20
+ 'Move this page and its children'
21
+ what_do_you_want_to_do:
22
+ 'What do you want to do?'
@@ -2,9 +2,21 @@ nl:
2
2
  copy_move:
3
3
  copied:
4
4
  'Er werd een kopie van <strong>{{page}}</strong> gemaakt onder <strong>{{parent}}</strong>.'
5
- immediate_children_copied:
6
- "Kopieën van <strong>{{page}}</strong> en de eerst onderliggende pagina's zijn gemaakt onder <strong>{{parent}}</strong>"
5
+ copy_page_only:
6
+ "Pagina kopieëren"
7
+ copy_page_and_all_children:
8
+ "Pagina en alle child-pagina's kopieëren"
9
+ copy_page_and_direct_children:
10
+ "Pagina en directe child-pagina's kopieëren"
7
11
  descendants_copied:
8
- "Kopieën van <strong>{{page}}</strong> en alle onderliggende pagina's zijn gemaakt onder <strong>{{parent}}</strong>."
12
+ "Kopieën van <strong>{{page}}</strong> en alle onderliggende pagina's zijn gemaakt onder <strong>{{parent}}</strong>"
9
13
  descendants_moved:
10
- "De pagina <strong>{{page}}</strong> en alle onderliggende pagina's zijn verplaatst onder <strong>{{parent}}</strong>."
14
+ "De pagina <strong>{{page}}</strong> en alle onderliggende pagina's zijn verplaatst onder <strong>{{parent}}</strong>"
15
+ immediate_children_copied:
16
+ "Kopieën van <strong>{{page}}</strong> en de eerst onderliggende pagina's zijn gemaakt onder <strong>{{parent}}</strong>"
17
+ move_page:
18
+ 'Pagina verplaatsen'
19
+ move_page_and_children:
20
+ "Pagina en child-pagina's verplaatsen"
21
+ what_do_you_want_to_do:
22
+ 'What do you want to do?'
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{radiant-copy_move-extension}
8
- s.version = "2.1.2"
8
+ s.version = "2.2.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Benny Degezelle"]
12
- s.date = %q{2010-10-14}
12
+ s.date = %q{2010-10-15}
13
13
  s.description = %q{Allows you to to copy pages or move them under a new parent. }
14
14
  s.email = %q{benny@gorilla-webdesign.be}
15
15
  s.extra_rdoc_files = [
@@ -28,7 +28,6 @@ Gem::Specification.new do |s|
28
28
  "app/views/admin/pages/_copy_move_extra_td.haml",
29
29
  "app/views/admin/pages/_copy_move_extra_th.haml",
30
30
  "app/views/admin/pages/_copy_move_popup.haml",
31
- "app/views/copy_move/index.html.haml",
32
31
  "config/locales/de.yml",
33
32
  "config/locales/en.yml",
34
33
  "config/locales/nl.yml",
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: radiant-copy_move-extension
3
3
  version: !ruby/object:Gem::Version
4
- hash: 15
4
+ hash: 7
5
5
  prerelease: false
6
6
  segments:
7
7
  - 2
8
- - 1
9
8
  - 2
10
- version: 2.1.2
9
+ - 0
10
+ version: 2.2.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Benny Degezelle
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-10-14 00:00:00 +02:00
18
+ date: 2010-10-15 00:00:00 +02:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -55,7 +55,6 @@ files:
55
55
  - app/views/admin/pages/_copy_move_extra_td.haml
56
56
  - app/views/admin/pages/_copy_move_extra_th.haml
57
57
  - app/views/admin/pages/_copy_move_popup.haml
58
- - app/views/copy_move/index.html.haml
59
58
  - config/locales/de.yml
60
59
  - config/locales/en.yml
61
60
  - config/locales/nl.yml
@@ -1,46 +0,0 @@
1
- - form_tag :action => "copy_move" do
2
- .form-area
3
-
4
- %h2 What do you want to do?
5
-
6
- %input{:type => "radio", :name => "copy_move_action", :id => "copy_move_action_page", :value => "page", :checked => "true"}
7
- %label{:for => "copy_move_action_page"}== Copy only '#{@page.title}' page.
8
-
9
- %br
10
-
11
- %input{:type => "radio", :name => "copy_move_action", :id => "copy_move_action_children", :value => "children"}
12
- %label{:for => "copy_move_action_children"}== Copy '#{@page.title}' and its first-level children.
13
-
14
- %br
15
-
16
- %input{:type => "radio", :name => "copy_move_action", :id => "copy_move_action_tree", :value => "tree"}
17
- %label{:for => "copy_move_action_tree"}== Copy '#{@page.title}' and all of its children.
18
-
19
- %br
20
-
21
- - if @page.parent
22
- %input{:type => "radio", :name => "copy_move_action", :id => "copy_move_action_move", :value => "move"}
23
- %label{:for => "copy_move_action_move"} Only move page.
24
- %br
25
-
26
- %br
27
-
28
- %p
29
- - if @page.parent
30
- %strong Copy or move under
31
- - else
32
- %strong Copy under
33
- %br
34
- = page_parent_select_tag
35
-
36
-
37
- %p
38
- %strong Page status
39
- %br
40
- = select_tag "status_id", options_for_select(Status.find_all.map{ |s| [s.name, s.id] }.unshift(['Use the same status', nil]))
41
-
42
- %p.buttons
43
- = submit_tag "Ok", :class => 'button'
44
- or
45
- = link_to "Cancel", admin_pages_url
46
-