radiant-concurrent_draft-extension 1.0.6 → 1.0.7

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.6
1
+ 1.0.7
@@ -1,34 +1,33 @@
1
+ - include_stylesheet 'admin/concurrent_draft'
1
2
  - include_javascript 'admin/concurrent_draft'
2
3
  - resource = "#{@controller.model.display_name} #{@controller.model_class.to_s.downcase}"
3
4
 
4
5
  - 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
6
+ #draft-controls-container
7
+ #draft-controls
8
+ .status
9
+ - if @controller.model.has_draft_promotion_scheduled?
10
+ = t('concurrent_draft.scheduled') + ' ' + @controller.model.draft_promotion_scheduled_at.strftime('%m/%d/%y %I:%M%p')
11
+ - elsif @controller.model.publishable? && ! @controller.model.published?
12
+ %em= t('concurrent_draft.unpublished')
13
+ - else
14
+ %em= t('concurrent_draft.draft_promotion_unscheduled')
15
+ %ul.dropdown{:id => "draft_options"}
16
+ - if @controller.authorized_user?
17
+ %li.schedule_draft= link_to t('concurrent_draft.schedule_promotion'), '#schedule-draft-popup', :class => 'popup'
18
+ %li.publish
19
+ - form_for @controller.model, :url => {:action => 'schedule_draft_promotion', :commit => @controller.model_class.promote_now_text}, :html => {:method => :post} do |f|
20
+ = link_to_function t('concurrent_draft.promote_now'), "$(this).up('form').submit();showStatus('" + t('concurrent_draft.promoting', :resource => resource) + "', true)"
10
21
  - if @controller.model.has_draft_promotion_scheduled?
11
- = link_to t('concurrent_draft.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('concurrent_draft.unpublished'), "#draft_options", :class => "action dropdown"
14
- - else
15
- %em= link_to t('concurrent_draft.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('concurrent_draft.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('concurrent_draft.promote_now'), "$(this).up('form').submit();showStatus('" + t('concurrent_draft.promoting', :resource => 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('concurrent_draft.cancel_promotion'), "$(this).up('form').submit();showStatus('" + t('concurrent_draft.canceling', :resource => 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('concurrent_draft.unpublish'), "$(this).up('form').submit();showStatus('" + t('concurrent_draft.unpublishing', :resource => resource) + "', true)"
30
- - if @controller.model.has_draft_promoted?
31
- %li.revert= link_to image('page_refresh') + ' ' + t('concurrent_draft.revert_draft'), '#revert-draft-popup', :class => 'popup'
22
+ %li.cancel
23
+ - form_for @controller.model, :url => {:action => 'schedule_draft_promotion', :commit => @controller.model_class.cancel_promotion_text}, :html => {:method => :post} do |f|
24
+ = link_to_function t('concurrent_draft.cancel_promotion'), "$(this).up('form').submit();showStatus('" + t('concurrent_draft.canceling', :resource => resource) + "', true)"
25
+ - if @controller.model.publishable? && @controller.model.published?
26
+ %li.unpublish
27
+ - form_for @controller.model, :url => {:action => 'unpublish', :method => :post} do |f|
28
+ = link_to_function t('concurrent_draft.unpublish'), "$(this).up('form').submit();showStatus('" + t('concurrent_draft.unpublishing', :resource => resource) + "', true)"
29
+ - if @controller.model.has_draft_promoted?
30
+ %li.revert= link_to t('concurrent_draft.revert_draft'), '#revert-draft-popup', :class => 'popup'
32
31
 
33
32
  - content_for :popups do
34
33
  - if @controller.authorized_user?
@@ -52,35 +51,4 @@
52
51
  %br/
53
52
  %br/
54
53
  %em= t('concurrent_draft.revert_draft_save_message')
55
- %span{:style => 'padding-left:8px'}= link_to_function 'OK', "$(this).closePopup();"
56
-
57
- - content_for :page_css do
58
- :sass
59
- .draft_controls
60
- float: right
61
- width: 300px
62
- background: #7E7E7E
63
- table.index
64
- margin: -2px 0 0 0
65
- border: none
66
- tr, td.label, td.actions
67
- border: none
68
- padding: 0px
69
- background: #7E7E7E
70
- td.label
71
- text-align: right
72
- padding-right: 6px
73
- td.actions
74
- width: 178px
75
- a.action, span.action.disabled
76
- color: white
77
- text-decoration: underline
78
- margin: 0
79
- &:hover
80
- color: black
81
- text-decoration: none
82
- background: #eee image_url('admin/buttons_background.png') repeat-x
83
- &.selected
84
- color: black
85
- text-decoration: none
86
- background: #c5e0f5
54
+ %span{:style => 'padding-left:8px'}= link_to_function 'OK', "$(this).closePopup();"
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{radiant-concurrent_draft-extension}
8
- s.version = "1.0.6"
8
+ s.version = "1.0.7"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Andrew vonderLuft", "Sean Cribbs"]
12
- s.date = %q{2011-07-06}
12
+ s.date = %q{2011-07-11}
13
13
  s.description = %q{Enables draft versions of pages, snippets and layouts, which can be scheduled for promotion.}
14
14
  s.email = %q{avonderluft@avlux.net}
15
15
  s.extra_rdoc_files = [
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: 27
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 6
10
- version: 1.0.6
9
+ - 7
10
+ version: 1.0.7
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-07-06 00:00:00 -07:00
19
+ date: 2011-07-11 00:00:00 -07:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency