cms-fortress 1.3.5 → 1.3.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile.lock +68 -56
- data/app/assets/javascripts/cms/fortress/media.js.coffee +5 -0
- data/app/assets/javascripts/cms/fortress/themes/wide.js.erb +3 -3
- data/app/assets/stylesheets/cms/fortress/admin_overrides.css +9 -0
- data/app/helpers/cms/fortress/application_helper.rb +3 -3
- data/app/helpers/cms/fortress/sprocket_helper.rb +17 -14
- data/app/helpers/comfy/admin/cms/pages_helper.rb +4 -4
- data/app/views/cms/fortress/themes/wide/_menu.html.haml +1 -1
- data/app/views/cms/fortress/users/passwords/edit.html.haml +4 -4
- data/app/views/cms/fortress/users/passwords/new.html.haml +2 -2
- data/app/views/comfy/admin/cms/files/_page_form.html.haml +17 -0
- data/app/views/comfy/admin/cms/pages/edit.html.haml +13 -14
- data/app/views/devise/shared/_links.html.haml +18 -0
- data/app/views/layouts/cms/fortress/session.html.haml +0 -1
- data/app/views/layouts/comfy/admin/cms/_head.html.haml +3 -7
- data/cms-fortress.gemspec +7 -7
- data/config/locales/da.yml +22 -1
- data/config/locales/de.yml +21 -1
- data/config/locales/en.yml +22 -1
- data/config/locales/es.yml +22 -1
- data/config/locales/fr.yml +22 -1
- data/config/locales/it.yml +22 -1
- data/config/locales/ja.yml +22 -1
- data/config/locales/nl.yml +22 -1
- data/config/locales/pl.yml +22 -1
- data/config/locales/pt-BR.yml +23 -1
- data/config/locales/ru.yml +23 -1
- data/config/locales/sv.yml +22 -1
- data/config/locales/zh-CN.yml +22 -1
- data/config/routes.rb +0 -0
- data/db/schema.rb +1 -1
- data/lib/cms-fortress.rb +1 -0
- data/lib/cms/fortress/rails/engine.rb +1 -1
- data/test/controllers/comfy/admin/cms/pages_controller_test.rb +1 -1
- data/test/fixtures/comfy/cms/pages.yml +2 -2
- data/test/models/comfy/cms/page_test.rb +0 -1
- metadata +74 -81
@@ -0,0 +1,17 @@
|
|
1
|
+
- block ||= page_form
|
2
|
+
|
3
|
+
- if (files = block.files).present?
|
4
|
+
.files
|
5
|
+
- files.each do |file|
|
6
|
+
.file{:class => dom_id(file)}
|
7
|
+
= link_to file.file.url, :target => '_blank' do
|
8
|
+
-geometry = Paperclip::Geometry.from_file(file.file)
|
9
|
+
#{file.label} | #{file.file_file_name} | #{geometry.width.to_i} x #{geometry.height.to_i} px| #{file.file_content_type} | #{number_to_human_size(file.file_file_size, precision: 4)}
|
10
|
+
%br
|
11
|
+
%img{src: file.file.url(:cms_thumb)}
|
12
|
+
= link_to t('.delete'), comfy_admin_cms_site_file_path(@site, file), :method => :delete, :remote => true, :data => {:confirm => t('.are_you_sure')}, :class => 'btn btn-danger'
|
13
|
+
|
14
|
+
:coffeescript
|
15
|
+
$ ->
|
16
|
+
$("a[data-remote]").on "ajax:success", (e, data, status, xhr) ->
|
17
|
+
location.reload()
|
@@ -2,22 +2,21 @@
|
|
2
2
|
|
3
3
|
= link_to t('.revision', :count => @page.revisions.count), comfy_admin_cms_site_page_revisions_path(@site, @page), :class => 'btn btn-default pull-right'
|
4
4
|
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
5
|
+
%h2.pull-right
|
6
|
+
-if @page.drafted?
|
7
|
+
%span.label.label-info
|
8
|
+
=t('.drafted')
|
9
|
+
-if @page.reviewed?
|
10
|
+
%span.label.label-primary
|
11
|
+
=t('.reviewed')
|
12
|
+
-if @page.scheduled?
|
13
|
+
%span.label.label-warning
|
14
|
+
=t('.scheduled')
|
15
|
+
-if @page.published?
|
16
|
+
%span.label.label-success
|
17
|
+
=t('.published')
|
18
18
|
%h2= t('.title')
|
19
19
|
|
20
|
-
|
21
20
|
- content_for :right_column do
|
22
21
|
= render 'comfy/admin/cms/sites/mirrors', :object => @page
|
23
22
|
|
@@ -0,0 +1,18 @@
|
|
1
|
+
- if controller_name != 'sessions'
|
2
|
+
= link_to t('login.log_in'), new_session_path(resource_name)
|
3
|
+
|
4
|
+
- if devise_mapping.registerable? && controller_name != 'registrations'
|
5
|
+
= link_to t('login.sign_up'), new_registration_path(resource_name)
|
6
|
+
|
7
|
+
- if devise_mapping.recoverable? && controller_name != 'passwords' && controller_name != 'registrations'
|
8
|
+
= link_to t('login.forgot_your_password'), new_password_path(resource_name)
|
9
|
+
|
10
|
+
- if devise_mapping.confirmable? && controller_name != 'confirmations'
|
11
|
+
= link_to t('login.didnt_receive_confirmation_instructions'), new_confirmation_path(resource_name)
|
12
|
+
|
13
|
+
- if devise_mapping.lockable? && resource_class.unlock_strategy_enabled?(:email) && controller_name != 'unlocks'
|
14
|
+
= link_to t('login.didnt_receive_unlock_instructions'), new_unlock_path(resource_name)
|
15
|
+
|
16
|
+
- if devise_mapping.omniauthable?
|
17
|
+
- resource_class.omniauth_providers.each do |provider|
|
18
|
+
= link_to t('login.sign_in_with'), omniauth_authorize_path(resource_name, provider)
|
@@ -3,8 +3,7 @@
|
|
3
3
|
%title= settings.title
|
4
4
|
= csrf_meta_tag
|
5
5
|
|
6
|
-
= stylesheet_link_tag '
|
7
|
-
= stylesheet_link_tag 'comfortable_mexican_sofa/admin/application'
|
6
|
+
= stylesheet_link_tag 'comfy/admin/cms/application'
|
8
7
|
|
9
8
|
= stylesheet_link_tag "cms/fortress/admin_overrides"
|
10
9
|
|
@@ -12,8 +11,7 @@
|
|
12
11
|
= stylesheet_link_tag "cms/fortress/themes/#{ theme_name }"
|
13
12
|
|
14
13
|
|
15
|
-
= javascript_include_tag '
|
16
|
-
= javascript_include_tag 'comfortable_mexican_sofa/admin/application'
|
14
|
+
= javascript_include_tag 'comfy/admin/cms/application'
|
17
15
|
= javascript_include_tag 'cms/fortress/media'
|
18
16
|
|
19
17
|
- unless default_theme?
|
@@ -22,6 +20,4 @@
|
|
22
20
|
|
23
21
|
= yield :head
|
24
22
|
|
25
|
-
= render 'comfy/admin/cms/partials/html_head'
|
26
|
-
|
27
|
-
|
23
|
+
= render 'comfy/admin/cms/partials/html_head'
|
data/cms-fortress.gemspec
CHANGED
@@ -2,10 +2,10 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = "cms-fortress"
|
5
|
-
s.version = "1.3.
|
5
|
+
s.version = "1.3.6"
|
6
6
|
|
7
7
|
s.authors = ["Melvin Sembrano"]
|
8
|
-
s.date = "
|
8
|
+
s.date = "2015-01-24"
|
9
9
|
s.description = "Comfortable Mexican Sofa (CMS) - User and role management extension"
|
10
10
|
s.email = "melvinsembrano@gmail.com"
|
11
11
|
s.extra_rdoc_files = [ "LICENSE.txt", "README.rdoc" ]
|
@@ -19,19 +19,19 @@ Gem::Specification.new do |s|
|
|
19
19
|
s.test_files = s.files.grep(%r{^(test|spec|features)/})
|
20
20
|
s.require_paths = ["lib"]
|
21
21
|
|
22
|
-
s.add_dependency 'rails',
|
23
|
-
s.add_dependency 'comfortable_mexican_sofa',
|
22
|
+
s.add_dependency 'rails', '~> 4.0', '>= 4.0.0'
|
23
|
+
s.add_dependency 'comfortable_mexican_sofa', '~> 1.12', '>= 1.12.5'
|
24
24
|
s.add_dependency 'devise', '~> 3.2'
|
25
25
|
s.add_dependency 'cancancan', '~> 1.9'
|
26
26
|
s.add_dependency 'delayed_job', '~> 4'
|
27
|
-
s.add_dependency 'tinymce-rails',
|
27
|
+
s.add_dependency 'tinymce-rails', '~> 4.1', '>= 4.1.0'
|
28
28
|
s.add_dependency 'tinymce-rails-langs', '~> 4.0'
|
29
|
-
s.add_dependency 'aasm', '~>
|
29
|
+
s.add_dependency 'aasm', '~> 4.0'
|
30
30
|
|
31
31
|
s.add_development_dependency 'rdoc'
|
32
32
|
s.add_development_dependency 'bundler'
|
33
33
|
s.add_development_dependency 'simplecov'
|
34
|
-
s.add_development_dependency 'minitest',
|
34
|
+
s.add_development_dependency 'minitest', '~> 4.7', '>= 4.7.3'
|
35
35
|
s.add_development_dependency 'minitest-rails'
|
36
36
|
s.add_development_dependency 'minitest-spec-rails'
|
37
37
|
s.add_development_dependency 'minitest-reporters'
|
data/config/locales/da.yml
CHANGED
@@ -98,16 +98,25 @@ da:
|
|
98
98
|
admin:
|
99
99
|
cms:
|
100
100
|
pages:
|
101
|
-
form:
|
101
|
+
form: &pages_form
|
102
102
|
review: Approve
|
103
103
|
reviewed: Reviewed
|
104
104
|
schedule: Publish Date
|
105
|
+
scheduled: Scheduled
|
105
106
|
publish: Publish Now
|
106
107
|
published: Published
|
107
108
|
draft: save as draft
|
108
109
|
drafted: Draft
|
109
110
|
reset: Reset to Draft
|
110
111
|
|
112
|
+
edit:
|
113
|
+
<<: *pages_form
|
114
|
+
|
115
|
+
files:
|
116
|
+
form:
|
117
|
+
are_you_sure: Are you sure to delete?
|
118
|
+
delete: Delete!
|
119
|
+
|
111
120
|
activerecord:
|
112
121
|
attributes:
|
113
122
|
cms/fortress/user:
|
@@ -127,3 +136,15 @@ da:
|
|
127
136
|
parent_id: Parent page
|
128
137
|
slug: Slug
|
129
138
|
|
139
|
+
login:
|
140
|
+
forgot_your_password: Forgot your password?
|
141
|
+
send_me_reset_password_instructions: Send me reset password instructions
|
142
|
+
change_your_password: Change your password
|
143
|
+
new_password: New password
|
144
|
+
confirm_new_password: Confirm new password
|
145
|
+
change_my_password: Change my password
|
146
|
+
log_in: Log in
|
147
|
+
sign_up: Sign up
|
148
|
+
didnt_receive_confirmation_instructions: Didn't receive confirmation instructions?
|
149
|
+
didnt_receive_unlock_instructions: Didn't receive unlock instructions?
|
150
|
+
sign_in_with: Sign in with #{provider.to_s.titleize}
|
data/config/locales/de.yml
CHANGED
@@ -95,16 +95,24 @@ de:
|
|
95
95
|
admin:
|
96
96
|
cms:
|
97
97
|
pages:
|
98
|
-
form:
|
98
|
+
form: &pages_form
|
99
99
|
review: Freigeben
|
100
100
|
reviewed: Freigegeben
|
101
101
|
schedule: Publizierung planen
|
102
|
+
scheduled: Geplant
|
102
103
|
publish: Jetzt publizieren
|
103
104
|
published: Publiziert
|
104
105
|
draft: Als Entwurf speichern
|
105
106
|
drafted: Entwurf
|
106
107
|
reset: Auf Entwurf zurücksetzen
|
107
108
|
|
109
|
+
edit:
|
110
|
+
<<: *pages_form
|
111
|
+
files:
|
112
|
+
form:
|
113
|
+
are_you_sure: Wirklich löschen?
|
114
|
+
delete: Löschen!
|
115
|
+
|
108
116
|
activerecord:
|
109
117
|
attributes:
|
110
118
|
cms/fortress/user:
|
@@ -124,3 +132,15 @@ de:
|
|
124
132
|
parent_id: Übergeordnete Seite
|
125
133
|
slug: URL-Pfad
|
126
134
|
|
135
|
+
login:
|
136
|
+
forgot_your_password: Forgot your password?
|
137
|
+
send_me_reset_password_instructions: Send me reset password instructions
|
138
|
+
change_your_password: Change your password
|
139
|
+
new_password: New password
|
140
|
+
confirm_new_password: Confirm new password
|
141
|
+
change_my_password: Change my password
|
142
|
+
log_in: Log in
|
143
|
+
sign_up: Sign up
|
144
|
+
didnt_receive_confirmation_instructions: Didn't receive confirmation instructions?
|
145
|
+
didnt_receive_unlock_instructions: Didn't receive unlock instructions?
|
146
|
+
sign_in_with: Sign in with #{provider.to_s.titleize}
|
data/config/locales/en.yml
CHANGED
@@ -98,16 +98,25 @@ en:
|
|
98
98
|
admin:
|
99
99
|
cms:
|
100
100
|
pages:
|
101
|
-
form:
|
101
|
+
form: &pages_form
|
102
102
|
review: Approve
|
103
103
|
reviewed: Reviewed
|
104
104
|
schedule: Publish Date
|
105
|
+
scheduled: Scheduled
|
105
106
|
publish: Publish Now
|
106
107
|
published: Published
|
107
108
|
draft: save as draft
|
108
109
|
drafted: Draft
|
109
110
|
reset: Reset to Draft
|
110
111
|
|
112
|
+
edit:
|
113
|
+
<<: *pages_form
|
114
|
+
|
115
|
+
files:
|
116
|
+
form:
|
117
|
+
are_you_sure: Are you sure to delete?
|
118
|
+
delete: Delete!
|
119
|
+
|
111
120
|
activerecord:
|
112
121
|
attributes:
|
113
122
|
cms/fortress/user:
|
@@ -126,3 +135,15 @@ en:
|
|
126
135
|
full_path: Path
|
127
136
|
parent_id: Parent page
|
128
137
|
slug: Slug
|
138
|
+
login:
|
139
|
+
forgot_your_password: Forgot your password?
|
140
|
+
send_me_reset_password_instructions: Send me reset password instructions
|
141
|
+
change_your_password: Change your password
|
142
|
+
new_password: New password
|
143
|
+
confirm_new_password: Confirm new password
|
144
|
+
change_my_password: Change my password
|
145
|
+
log_in: Log in
|
146
|
+
sign_up: Sign up
|
147
|
+
didnt_receive_confirmation_instructions: Didn't receive confirmation instructions?
|
148
|
+
didnt_receive_unlock_instructions: Didn't receive unlock instructions?
|
149
|
+
sign_in_with: Sign in with #{provider.to_s.titleize}
|
data/config/locales/es.yml
CHANGED
@@ -98,16 +98,25 @@ es:
|
|
98
98
|
admin:
|
99
99
|
cms:
|
100
100
|
pages:
|
101
|
-
form:
|
101
|
+
form: &pages_form
|
102
102
|
review: Approve
|
103
103
|
reviewed: Reviewed
|
104
104
|
schedule: Publish Date
|
105
|
+
scheduled: Scheduled
|
105
106
|
publish: Publish Now
|
106
107
|
published: Published
|
107
108
|
draft: save as draft
|
108
109
|
drafted: Draft
|
109
110
|
reset: Reset to Draft
|
110
111
|
|
112
|
+
edit:
|
113
|
+
<<: *pages_form
|
114
|
+
|
115
|
+
files:
|
116
|
+
form:
|
117
|
+
are_you_sure: Are you sure to delete?
|
118
|
+
delete: Delete!
|
119
|
+
|
111
120
|
activerecord:
|
112
121
|
attributes:
|
113
122
|
cms/fortress/user:
|
@@ -127,3 +136,15 @@ es:
|
|
127
136
|
parent_id: Parent page
|
128
137
|
slug: Slug
|
129
138
|
|
139
|
+
login:
|
140
|
+
forgot_your_password: Forgot your password?
|
141
|
+
send_me_reset_password_instructions: Send me reset password instructions
|
142
|
+
change_your_password: Change your password
|
143
|
+
new_password: New password
|
144
|
+
confirm_new_password: Confirm new password
|
145
|
+
change_my_password: Change my password
|
146
|
+
log_in: Log in
|
147
|
+
sign_up: Sign up
|
148
|
+
didnt_receive_confirmation_instructions: Didn't receive confirmation instructions?
|
149
|
+
didnt_receive_unlock_instructions: Didn't receive unlock instructions?
|
150
|
+
sign_in_with: Sign in with #{provider.to_s.titleize}
|
data/config/locales/fr.yml
CHANGED
@@ -98,16 +98,25 @@ fr:
|
|
98
98
|
admin:
|
99
99
|
cms:
|
100
100
|
pages:
|
101
|
-
form:
|
101
|
+
form: &pages_form
|
102
102
|
review: Approve
|
103
103
|
reviewed: Reviewed
|
104
104
|
schedule: Publish Date
|
105
|
+
scheduled: Scheduled
|
105
106
|
publish: Publish Now
|
106
107
|
published: Published
|
107
108
|
draft: save as draft
|
108
109
|
drafted: Draft
|
109
110
|
reset: Reset to Draft
|
110
111
|
|
112
|
+
edit:
|
113
|
+
<<: *pages_form
|
114
|
+
|
115
|
+
files:
|
116
|
+
form:
|
117
|
+
are_you_sure: Are you sure to delete?
|
118
|
+
delete: Delete!
|
119
|
+
|
111
120
|
activerecord:
|
112
121
|
attributes:
|
113
122
|
cms/fortress/user:
|
@@ -127,3 +136,15 @@ fr:
|
|
127
136
|
parent_id: Parent page
|
128
137
|
slug: Slug
|
129
138
|
|
139
|
+
login:
|
140
|
+
forgot_your_password: Forgot your password?
|
141
|
+
send_me_reset_password_instructions: Send me reset password instructions
|
142
|
+
change_your_password: Change your password
|
143
|
+
new_password: New password
|
144
|
+
confirm_new_password: Confirm new password
|
145
|
+
change_my_password: Change my password
|
146
|
+
log_in: Log in
|
147
|
+
sign_up: Sign up
|
148
|
+
didnt_receive_confirmation_instructions: Didn't receive confirmation instructions?
|
149
|
+
didnt_receive_unlock_instructions: Didn't receive unlock instructions?
|
150
|
+
sign_in_with: Sign in with #{provider.to_s.titleize}
|
data/config/locales/it.yml
CHANGED
@@ -98,16 +98,25 @@ it:
|
|
98
98
|
admin:
|
99
99
|
cms:
|
100
100
|
pages:
|
101
|
-
form:
|
101
|
+
form: &pages_form
|
102
102
|
review: Approve
|
103
103
|
reviewed: Reviewed
|
104
104
|
schedule: Publish Date
|
105
|
+
scheduled: Scheduled
|
105
106
|
publish: Publish Now
|
106
107
|
published: Published
|
107
108
|
draft: save as draft
|
108
109
|
drafted: Draft
|
109
110
|
reset: Reset to Draft
|
110
111
|
|
112
|
+
edit:
|
113
|
+
<<: *pages_form
|
114
|
+
|
115
|
+
files:
|
116
|
+
form:
|
117
|
+
are_you_sure: Are you sure to delete?
|
118
|
+
delete: Delete!
|
119
|
+
|
111
120
|
activerecord:
|
112
121
|
attributes:
|
113
122
|
cms/fortress/user:
|
@@ -127,3 +136,15 @@ it:
|
|
127
136
|
parent_id: Parent page
|
128
137
|
slug: Slug
|
129
138
|
|
139
|
+
login:
|
140
|
+
forgot_your_password: Forgot your password?
|
141
|
+
send_me_reset_password_instructions: Send me reset password instructions
|
142
|
+
change_your_password: Change your password
|
143
|
+
new_password: New password
|
144
|
+
confirm_new_password: Confirm new password
|
145
|
+
change_my_password: Change my password
|
146
|
+
log_in: Log in
|
147
|
+
sign_up: Sign up
|
148
|
+
didnt_receive_confirmation_instructions: Didn't receive confirmation instructions?
|
149
|
+
didnt_receive_unlock_instructions: Didn't receive unlock instructions?
|
150
|
+
sign_in_with: Sign in with #{provider.to_s.titleize}
|
data/config/locales/ja.yml
CHANGED
@@ -98,16 +98,25 @@ ja:
|
|
98
98
|
admin:
|
99
99
|
cms:
|
100
100
|
pages:
|
101
|
-
form:
|
101
|
+
form: &pages_form
|
102
102
|
review: Approve
|
103
103
|
reviewed: Reviewed
|
104
104
|
schedule: Publish Date
|
105
|
+
scheduled: Scheduled
|
105
106
|
publish: Publish Now
|
106
107
|
published: Published
|
107
108
|
draft: save as draft
|
108
109
|
drafted: Draft
|
109
110
|
reset: Reset to Draft
|
110
111
|
|
112
|
+
edit:
|
113
|
+
<<: *pages_form
|
114
|
+
|
115
|
+
files:
|
116
|
+
form:
|
117
|
+
are_you_sure: Are you sure to delete?
|
118
|
+
delete: Delete!
|
119
|
+
|
111
120
|
activerecord:
|
112
121
|
attributes:
|
113
122
|
cms/fortress/user:
|
@@ -127,3 +136,15 @@ ja:
|
|
127
136
|
parent_id: Parent page
|
128
137
|
slug: Slug
|
129
138
|
|
139
|
+
login:
|
140
|
+
forgot_your_password: Forgot your password?
|
141
|
+
send_me_reset_password_instructions: Send me reset password instructions
|
142
|
+
change_your_password: Change your password
|
143
|
+
new_password: New password
|
144
|
+
confirm_new_password: Confirm new password
|
145
|
+
change_my_password: Change my password
|
146
|
+
log_in: Log in
|
147
|
+
sign_up: Sign up
|
148
|
+
didnt_receive_confirmation_instructions: Didn't receive confirmation instructions?
|
149
|
+
didnt_receive_unlock_instructions: Didn't receive unlock instructions?
|
150
|
+
sign_in_with: Sign in with #{provider.to_s.titleize}
|