radiant-concurrent_draft-extension 1.0.0 → 1.0.1
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
|
-
1.0.
|
1
|
+
1.0.1
|
@@ -1,33 +1,34 @@
|
|
1
1
|
- include_javascript 'admin/concurrent_draft'
|
2
2
|
- resource = "#{@controller.model.display_name} #{@controller.model_class.to_s.downcase}"
|
3
3
|
|
4
|
-
.
|
5
|
-
|
6
|
-
%
|
7
|
-
%
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
4
|
+
- unless @controller.model.id == nil ## resource has not been saved.
|
5
|
+
.draft_controls
|
6
|
+
%table.index
|
7
|
+
%tr
|
8
|
+
%td.label Draft Controls >
|
9
|
+
%td.actions
|
10
|
+
- if @controller.model.has_draft_promotion_scheduled?
|
11
|
+
= link_to t('scheduled') + ' ' + @controller.model.draft_promotion_scheduled_at.strftime('%m/%d/%y %I:%M%p'), "#draft_options", :class => "action dropdown"
|
12
|
+
- elsif @controller.model.publishable? && ! @controller.model.published?
|
13
|
+
%em= link_to t('unpublished'), "#draft_options", :class => "action dropdown"
|
14
|
+
- else
|
15
|
+
%em= link_to t('draft_promotion_unscheduled'), "#draft_options", :class => "action dropdown"
|
16
|
+
%ul.menu{:id => "draft_options"}
|
17
|
+
- if @controller.authorized_user?
|
18
|
+
%li.schedule_draft= link_to image('clock') + ' ' + t('schedule_promotion'), '#schedule-draft-popup', :class => 'popup'
|
19
|
+
%li.publish
|
20
|
+
- form_for @controller.model, :url => {:action => 'schedule_draft_promotion', :commit => @controller.model_class.promote_now_text}, :html => {:method => :post} do |f|
|
21
|
+
= link_to_function image('tick') + ' ' + t('promote_now'), "$(this).up('form').submit();showStatus('Promoting #{resource}', true)"
|
22
|
+
- if @controller.model.has_draft_promotion_scheduled?
|
23
|
+
%li.cancel
|
24
|
+
- form_for @controller.model, :url => {:action => 'schedule_draft_promotion', :commit => @controller.model_class.cancel_promotion_text}, :html => {:method => :post} do |f|
|
25
|
+
= link_to_function image('cancel') + ' ' + t('cancel_promotion'), "$(this).up('form').submit();showStatus('Canceling scheduled promotion of #{resource}', true)"
|
26
|
+
- if @controller.model.publishable? && @controller.model.published?
|
27
|
+
%li.unpublish
|
28
|
+
- form_for @controller.model, :url => {:action => 'unpublish', :method => :post} do |f|
|
29
|
+
= link_to_function image('page_delete') + ' ' + t('unpublish'), "$(this).up('form').submit();showStatus('Unpublishing #{resource}', true)"
|
30
|
+
- if @controller.model.has_draft_promoted?
|
31
|
+
%li.revert= link_to image('page_refresh') + ' ' + t('revert_draft'), '#revert-draft-popup', :class => 'popup'
|
31
32
|
|
32
33
|
- content_for :popups do
|
33
34
|
- if @controller.authorized_user?
|
Binary file
|
@@ -0,0 +1,103 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
|
+
# -*- encoding: utf-8 -*-
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = %q{radiant-concurrent_draft-extension}
|
8
|
+
s.version = "1.0.1"
|
9
|
+
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
+
s.authors = ["Andrew vonderLuft", "Sean Cribbs"]
|
12
|
+
s.date = %q{2011-03-28}
|
13
|
+
s.description = %q{Enables draft versions of pages, snippets and layouts, which can be scheduled for promotion.}
|
14
|
+
s.email = %q{avonderluft@avlux.net}
|
15
|
+
s.extra_rdoc_files = [
|
16
|
+
"README.textile"
|
17
|
+
]
|
18
|
+
s.files = [
|
19
|
+
"HELP.rdoc",
|
20
|
+
"README.textile",
|
21
|
+
"Rakefile",
|
22
|
+
"VERSION",
|
23
|
+
"app/views/admin/_draft_controls.html.haml",
|
24
|
+
"app/views/admin/_edit_buttons.html.haml",
|
25
|
+
"app/views/admin/layouts/_edit_content.html.haml",
|
26
|
+
"app/views/admin/page_parts/_page_part.html.haml",
|
27
|
+
"app/views/admin/pages/_edit_layout_and_type.html.haml",
|
28
|
+
"app/views/admin/pages/_published_meta.html.haml",
|
29
|
+
"app/views/admin/snippets/_edit_content.html.haml",
|
30
|
+
"app/views/admin/users/_edit_roles.html.haml",
|
31
|
+
"concurrent_draft_extension.rb",
|
32
|
+
"config/initializers/radiant_config.rb",
|
33
|
+
"config/locales/en.yml",
|
34
|
+
"config/routes.rb",
|
35
|
+
"db/migrate/001_update_schemata.rb",
|
36
|
+
"db/migrate/002_create_draft_page_elements.rb",
|
37
|
+
"db/migrate/003_add_publisher_role.rb",
|
38
|
+
"lib/concurrent_draft/admin_controller_extensions.rb",
|
39
|
+
"lib/concurrent_draft/helper_extensions.rb",
|
40
|
+
"lib/concurrent_draft/model_extensions.rb",
|
41
|
+
"lib/concurrent_draft/page_extensions.rb",
|
42
|
+
"lib/concurrent_draft/site_controller_extensions.rb",
|
43
|
+
"lib/concurrent_draft/tags.rb",
|
44
|
+
"lib/tasks/concurrent_draft_extension_tasks.rake",
|
45
|
+
"pkg/radiant-concurrent_draft-extension-1.0.0.gem",
|
46
|
+
"public/images/admin/cancel.png",
|
47
|
+
"public/images/admin/clock.png",
|
48
|
+
"public/images/admin/page_delete.png",
|
49
|
+
"public/images/admin/page_edit.png",
|
50
|
+
"public/images/admin/page_refresh.png",
|
51
|
+
"public/images/admin/tick.png",
|
52
|
+
"public/javascripts/admin/concurrent_draft.js",
|
53
|
+
"public/stylesheets/admin/concurrent_draft.css",
|
54
|
+
"radiant-concurrent_draft-extension.gemspec",
|
55
|
+
"spec/controllers/admin_controller_extensions_spec.rb",
|
56
|
+
"spec/controllers/site_controller_extensions_spec.rb",
|
57
|
+
"spec/matchers/concurrent_draft_matcher.rb",
|
58
|
+
"spec/models/model_extensions_spec.rb",
|
59
|
+
"spec/models/page_extensions_spec.rb",
|
60
|
+
"spec/models/tags_spec.rb",
|
61
|
+
"spec/spec.opts",
|
62
|
+
"spec/spec_helper.rb",
|
63
|
+
"test/helpers/caching_test_helper.rb",
|
64
|
+
"test/helpers/page_part_test_helper.rb",
|
65
|
+
"test/helpers/page_test_helper.rb",
|
66
|
+
"vendor/plugins/12_hour_time/CHANGELOG",
|
67
|
+
"vendor/plugins/12_hour_time/README",
|
68
|
+
"vendor/plugins/12_hour_time/Rakefile",
|
69
|
+
"vendor/plugins/12_hour_time/init.rb",
|
70
|
+
"vendor/plugins/12_hour_time/lib/12_hour_time.rb",
|
71
|
+
"vendor/plugins/12_hour_time/test/12_hour_time_test.rb",
|
72
|
+
"vendor/plugins/12_hour_time/test/test_helper.rb"
|
73
|
+
]
|
74
|
+
s.homepage = %q{https://github.com/avonderluft/radiant-concurrent_draft-extension}
|
75
|
+
s.require_paths = ["lib"]
|
76
|
+
s.rubygems_version = %q{1.5.2}
|
77
|
+
s.summary = %q{Concurrent Draft Extension for Radiant CMS}
|
78
|
+
s.test_files = [
|
79
|
+
"spec/controllers/admin_controller_extensions_spec.rb",
|
80
|
+
"spec/controllers/site_controller_extensions_spec.rb",
|
81
|
+
"spec/matchers/concurrent_draft_matcher.rb",
|
82
|
+
"spec/models/model_extensions_spec.rb",
|
83
|
+
"spec/models/page_extensions_spec.rb",
|
84
|
+
"spec/models/tags_spec.rb",
|
85
|
+
"spec/spec_helper.rb",
|
86
|
+
"test/helpers/caching_test_helper.rb",
|
87
|
+
"test/helpers/page_part_test_helper.rb",
|
88
|
+
"test/helpers/page_test_helper.rb"
|
89
|
+
]
|
90
|
+
|
91
|
+
if s.respond_to? :specification_version then
|
92
|
+
s.specification_version = 3
|
93
|
+
|
94
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
95
|
+
s.add_runtime_dependency(%q<radiant>, [">= 0.9.1"])
|
96
|
+
else
|
97
|
+
s.add_dependency(%q<radiant>, [">= 0.9.1"])
|
98
|
+
end
|
99
|
+
else
|
100
|
+
s.add_dependency(%q<radiant>, [">= 0.9.1"])
|
101
|
+
end
|
102
|
+
end
|
103
|
+
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: radiant-concurrent_draft-extension
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 21
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 1.0.
|
9
|
+
- 1
|
10
|
+
version: 1.0.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Andrew vonderLuft
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2011-03-
|
19
|
+
date: 2011-03-28 00:00:00 -07:00
|
20
20
|
default_executable:
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|
@@ -70,6 +70,7 @@ files:
|
|
70
70
|
- lib/concurrent_draft/site_controller_extensions.rb
|
71
71
|
- lib/concurrent_draft/tags.rb
|
72
72
|
- lib/tasks/concurrent_draft_extension_tasks.rake
|
73
|
+
- pkg/radiant-concurrent_draft-extension-1.0.0.gem
|
73
74
|
- public/images/admin/cancel.png
|
74
75
|
- public/images/admin/clock.png
|
75
76
|
- public/images/admin/page_delete.png
|
@@ -78,6 +79,7 @@ files:
|
|
78
79
|
- public/images/admin/tick.png
|
79
80
|
- public/javascripts/admin/concurrent_draft.js
|
80
81
|
- public/stylesheets/admin/concurrent_draft.css
|
82
|
+
- radiant-concurrent_draft-extension.gemspec
|
81
83
|
- spec/controllers/admin_controller_extensions_spec.rb
|
82
84
|
- spec/controllers/site_controller_extensions_spec.rb
|
83
85
|
- spec/matchers/concurrent_draft_matcher.rb
|
@@ -126,7 +128,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
126
128
|
requirements: []
|
127
129
|
|
128
130
|
rubyforge_project:
|
129
|
-
rubygems_version: 1.
|
131
|
+
rubygems_version: 1.5.2
|
130
132
|
signing_key:
|
131
133
|
specification_version: 3
|
132
134
|
summary: Concurrent Draft Extension for Radiant CMS
|