cms-fortress 1.1.8 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. data/Gemfile +1 -1
  2. data/Gemfile.lock +82 -74
  3. data/VERSION +1 -1
  4. data/app/assets/javascripts/cms/fortress/media.js.coffee +2 -2
  5. data/app/assets/stylesheets/cms/fortress/admin_overrides.css +8 -14
  6. data/app/assets/stylesheets/cms/fortress/session.css +1 -3
  7. data/app/assets/stylesheets/cms/fortress/themes/wide.css.scss +5 -1
  8. data/app/controllers/cms/fortress/admin_controller.rb +4 -4
  9. data/app/controllers/cms/fortress/roles_controller.rb +5 -4
  10. data/app/controllers/cms/fortress/users_controller.rb +5 -3
  11. data/app/helpers/cms/fortress/application_helper.rb +7 -7
  12. data/app/models/cms/page_workflow.rb +1 -1
  13. data/app/models/cms_ability.rb +5 -5
  14. data/app/views/cms/fortress/roles/_form.html.haml +5 -18
  15. data/app/views/cms/fortress/roles/edit.html.haml +5 -1
  16. data/app/views/cms/fortress/roles/index.html.haml +4 -4
  17. data/app/views/cms/fortress/roles/new.html.haml +5 -1
  18. data/app/views/cms/fortress/roles/show.html.haml +3 -3
  19. data/app/views/cms/fortress/shared/_media_items.html.haml +6 -9
  20. data/app/views/cms/fortress/shared/_mediaboxes.html.haml +11 -9
  21. data/app/views/cms/fortress/shared/_menu.html.haml +43 -0
  22. data/app/views/cms/fortress/shared/_navbar.html.haml +10 -7
  23. data/app/views/cms/fortress/shared/_page_extend.html.haml +2 -2
  24. data/app/views/cms/fortress/shared/_page_extend_js.html.haml +1 -1
  25. data/app/views/cms/fortress/themes/wide/_body.html.haml +11 -9
  26. data/app/views/cms/fortress/themes/wide/{_admin_topnav.html.haml → _menu.html.haml} +1 -0
  27. data/app/views/cms/fortress/users/_form.html.haml +9 -34
  28. data/app/views/cms/fortress/users/edit.html.haml +7 -2
  29. data/app/views/cms/fortress/users/index.html.haml +6 -4
  30. data/app/views/cms/fortress/users/new.html.haml +5 -1
  31. data/app/views/cms/fortress/users/sessions/new.html.haml +12 -8
  32. data/app/views/{admin → comfy/admin}/cms/pages/_form.html.haml +16 -18
  33. data/app/views/comfy/admin/cms/partials/_body_before.html.haml +1 -0
  34. data/app/views/layouts/cms/fortress/session.html.haml +15 -0
  35. data/app/views/layouts/comfy/admin/cms/_body.html.haml +22 -0
  36. data/app/views/layouts/{admin → comfy/admin}/cms/_footer.html.haml +0 -0
  37. data/app/views/layouts/{admin → comfy/admin}/cms/_head.html.haml +10 -6
  38. data/app/views/layouts/{admin → comfy/admin}/cms/_left.html.haml +3 -6
  39. data/cms-fortress.gemspec +14 -19
  40. data/db/migrate/05_add_caching_info_to_pages.rb +1 -1
  41. data/lib/cms-fortress.rb +5 -5
  42. data/lib/cms/fortress/application_controller_methods.rb +6 -6
  43. data/lib/cms/fortress/content_renderer.rb +11 -1
  44. data/lib/cms/fortress/rails/engine.rb +14 -14
  45. metadata +14 -19
  46. data/app/assets/javascripts/cms/fortress/bootstrap.js +0 -2280
  47. data/app/assets/stylesheets/cms/fortress/bootstrap-responsive.css +0 -1109
  48. data/app/assets/stylesheets/cms/fortress/bootstrap.css +0 -6167
  49. data/app/views/admin/cms/partials/_body_before.html.haml +0 -1
  50. data/app/views/cms/fortress/shared/_admin_topnav.html.haml +0 -37
  51. data/app/views/layouts/admin/cms/.DS_Store +0 -0
  52. data/app/views/layouts/admin/cms/_body.html.haml +0 -22
  53. data/app/views/layouts/cms/fortress/default.html.erb +0 -96
  54. data/app/views/layouts/cms/fortress/session.html.erb +0 -31
data/Gemfile CHANGED
@@ -1,7 +1,7 @@
1
1
  source "http://rubygems.org"
2
2
  # Add dependencies required to use your gem here.
3
3
  gem 'rails', '>=4.0.0'
4
- gem 'comfortable_mexican_sofa', '~>1.11.0'
4
+ gem 'comfortable_mexican_sofa', '~>1.12.0'
5
5
  gem 'devise', '~>3.2'
6
6
  gem 'cancan', '>=1.6.9'
7
7
  gem 'delayed_job', '~>4'
data/Gemfile.lock CHANGED
@@ -1,43 +1,47 @@
1
1
  GEM
2
2
  remote: http://rubygems.org/
3
3
  specs:
4
- actionmailer (4.0.3)
5
- actionpack (= 4.0.3)
4
+ actionmailer (4.1.1)
5
+ actionpack (= 4.1.1)
6
+ actionview (= 4.1.1)
6
7
  mail (~> 2.5.4)
7
- actionpack (4.0.3)
8
- activesupport (= 4.0.3)
9
- builder (~> 3.1.0)
10
- erubis (~> 2.7.0)
8
+ actionpack (4.1.1)
9
+ actionview (= 4.1.1)
10
+ activesupport (= 4.1.1)
11
11
  rack (~> 1.5.2)
12
12
  rack-test (~> 0.6.2)
13
+ actionview (4.1.1)
14
+ activesupport (= 4.1.1)
15
+ builder (~> 3.1)
16
+ erubis (~> 2.7.0)
13
17
  active_link_to (1.0.2)
14
18
  actionpack
15
- activemodel (4.0.3)
16
- activesupport (= 4.0.3)
17
- builder (~> 3.1.0)
18
- activerecord (4.0.3)
19
- activemodel (= 4.0.3)
20
- activerecord-deprecated_finders (~> 1.0.2)
21
- activesupport (= 4.0.3)
22
- arel (~> 4.0.0)
23
- activerecord-deprecated_finders (1.0.3)
24
- activesupport (4.0.3)
25
- i18n (~> 0.6, >= 0.6.4)
26
- minitest (~> 4.2)
27
- multi_json (~> 1.3)
19
+ activemodel (4.1.1)
20
+ activesupport (= 4.1.1)
21
+ builder (~> 3.1)
22
+ activerecord (4.1.1)
23
+ activemodel (= 4.1.1)
24
+ activesupport (= 4.1.1)
25
+ arel (~> 5.0.0)
26
+ activesupport (4.1.1)
27
+ i18n (~> 0.6, >= 0.6.9)
28
+ json (~> 1.7, >= 1.7.7)
29
+ minitest (~> 5.1)
28
30
  thread_safe (~> 0.1)
29
- tzinfo (~> 0.3.37)
30
- addressable (2.3.5)
31
- arel (4.0.2)
32
- atomic (1.1.14)
33
- bcrypt-ruby (3.1.2)
34
- builder (3.1.4)
31
+ tzinfo (~> 1.1)
32
+ addressable (2.3.6)
33
+ arel (5.0.1.20140414130214)
34
+ bcrypt (3.1.7)
35
+ bootstrap-sass (3.1.1.1)
36
+ sass (~> 3.2)
37
+ bootstrap_form (2.1.1)
38
+ builder (3.2.2)
35
39
  cancan (1.6.10)
36
40
  climate_control (0.0.3)
37
41
  activesupport (>= 3.0)
38
- cocaine (0.5.3)
42
+ cocaine (0.5.4)
39
43
  climate_control (>= 0.0.3, < 1.0)
40
- codemirror-rails (3.21)
44
+ codemirror-rails (4.1)
41
45
  railties (>= 3.0, < 5)
42
46
  coffee-rails (4.0.1)
43
47
  coffee-script (>= 2.2.0)
@@ -46,11 +50,12 @@ GEM
46
50
  coffee-script-source
47
51
  execjs
48
52
  coffee-script-source (1.7.0)
49
- comfortable_mexican_sofa (1.11.2)
53
+ comfortable_mexican_sofa (1.12.0)
50
54
  active_link_to (>= 1.0.0)
55
+ bootstrap-sass (~> 3.1.0)
56
+ bootstrap_form (~> 2.1.1)
51
57
  codemirror-rails (>= 3.0.0)
52
58
  coffee-rails (>= 3.1.0)
53
- formatted_form (>= 2.1.0)
54
59
  haml-rails (>= 0.3.0)
55
60
  jquery-rails (>= 3.0.0)
56
61
  jquery-ui-rails (>= 4.0.0)
@@ -59,25 +64,25 @@ GEM
59
64
  paperclip (>= 3.4.0)
60
65
  rails (~> 4.0)
61
66
  rails-i18n (~> 4.0.0)
62
- sass-rails (>= 3.1.0)
63
- delayed_job (4.0.0)
64
- activesupport (>= 3.0, < 4.1)
65
- descendants_tracker (0.0.3)
66
- devise (3.2.2)
67
- bcrypt-ruby (~> 3.0)
67
+ sass-rails (>= 4.0.3)
68
+ tinymce-rails (>= 4.0.0)
69
+ delayed_job (4.0.1)
70
+ activesupport (>= 3.0, < 4.2)
71
+ descendants_tracker (0.0.4)
72
+ thread_safe (~> 0.3, >= 0.3.1)
73
+ devise (3.2.4)
74
+ bcrypt (~> 3.0)
68
75
  orm_adapter (~> 0.1)
69
76
  railties (>= 3.2.6, < 5)
70
77
  thread_safe (~> 0.1)
71
78
  warden (~> 1.2.3)
72
- docile (1.1.1)
79
+ docile (1.1.3)
73
80
  erubis (2.7.0)
74
81
  execjs (2.0.2)
75
82
  faraday (0.9.0)
76
83
  multipart-post (>= 1.2, < 3)
77
- formatted_form (2.1.2)
78
- rails (>= 3.1)
79
84
  git (1.2.6)
80
- github_api (0.11.2)
85
+ github_api (0.11.3)
81
86
  addressable (~> 2.3)
82
87
  descendants_tracker (~> 0.0.1)
83
88
  faraday (~> 0.8, < 0.10)
@@ -92,8 +97,8 @@ GEM
92
97
  activesupport (>= 4.0.1)
93
98
  haml (>= 3.1, < 5.0)
94
99
  railties (>= 4.0.1)
95
- hashie (2.0.5)
96
- highline (1.6.20)
100
+ hashie (2.1.1)
101
+ highline (1.6.21)
97
102
  hike (1.2.3)
98
103
  i18n (0.6.9)
99
104
  jeweler (2.0.1)
@@ -108,26 +113,26 @@ GEM
108
113
  jquery-rails (3.1.0)
109
114
  railties (>= 3.0, < 5.0)
110
115
  thor (>= 0.14, < 2.0)
111
- jquery-ui-rails (4.2.0)
116
+ jquery-ui-rails (4.2.1)
112
117
  railties (>= 3.2.16)
113
118
  json (1.8.1)
114
- jwt (0.1.11)
119
+ jwt (0.1.13)
115
120
  multi_json (>= 1.5)
116
121
  kaminari (0.15.1)
117
122
  actionpack (>= 3.0.0)
118
123
  activesupport (>= 3.0.0)
119
- kramdown (1.3.2)
124
+ kramdown (1.3.3)
120
125
  mail (2.5.4)
121
126
  mime-types (~> 1.16)
122
127
  treetop (~> 1.4.8)
123
128
  mime-types (1.25.1)
124
- mini_portile (0.5.2)
125
- minitest (4.7.5)
126
- multi_json (1.8.4)
129
+ mini_portile (0.6.0)
130
+ minitest (5.3.4)
131
+ multi_json (1.10.0)
127
132
  multi_xml (0.5.5)
128
133
  multipart-post (2.0.0)
129
- nokogiri (1.6.1)
130
- mini_portile (~> 0.5.0)
134
+ nokogiri (1.6.2.1)
135
+ mini_portile (= 0.6.0)
131
136
  oauth2 (0.9.3)
132
137
  faraday (>= 0.8, < 0.10)
133
138
  jwt (~> 0.1.8)
@@ -135,7 +140,7 @@ GEM
135
140
  multi_xml (~> 0.5)
136
141
  rack (~> 1.2)
137
142
  orm_adapter (0.5.0)
138
- paperclip (4.1.0)
143
+ paperclip (4.1.1)
139
144
  activemodel (>= 3.0.0)
140
145
  activesupport (>= 3.0.0)
141
146
  cocaine (~> 0.5.3)
@@ -144,30 +149,33 @@ GEM
144
149
  rack (1.5.2)
145
150
  rack-test (0.6.2)
146
151
  rack (>= 1.0)
147
- rails (4.0.3)
148
- actionmailer (= 4.0.3)
149
- actionpack (= 4.0.3)
150
- activerecord (= 4.0.3)
151
- activesupport (= 4.0.3)
152
+ rails (4.1.1)
153
+ actionmailer (= 4.1.1)
154
+ actionpack (= 4.1.1)
155
+ actionview (= 4.1.1)
156
+ activemodel (= 4.1.1)
157
+ activerecord (= 4.1.1)
158
+ activesupport (= 4.1.1)
152
159
  bundler (>= 1.3.0, < 2.0)
153
- railties (= 4.0.3)
154
- sprockets-rails (~> 2.0.0)
155
- rails-i18n (4.0.1)
160
+ railties (= 4.1.1)
161
+ sprockets-rails (~> 2.0)
162
+ rails-i18n (4.0.2)
156
163
  i18n (~> 0.6)
157
- rails (~> 4.0)
158
- railties (4.0.3)
159
- actionpack (= 4.0.3)
160
- activesupport (= 4.0.3)
164
+ rails (>= 4.0)
165
+ railties (4.1.1)
166
+ actionpack (= 4.1.1)
167
+ activesupport (= 4.1.1)
161
168
  rake (>= 0.8.7)
162
169
  thor (>= 0.18.1, < 2.0)
163
- rake (10.1.1)
170
+ rake (10.3.2)
164
171
  rdoc (4.1.1)
165
172
  json (~> 1.4)
166
- sass (3.2.14)
167
- sass-rails (4.0.1)
173
+ sass (3.2.19)
174
+ sass-rails (4.0.3)
168
175
  railties (>= 4.0.0, < 5.0)
169
- sass (>= 3.1.10)
170
- sprockets-rails (~> 2.0.0)
176
+ sass (~> 3.2.0)
177
+ sprockets (~> 2.8, <= 2.11.0)
178
+ sprockets-rails (~> 2.0)
171
179
  simplecov (0.8.2)
172
180
  docile (~> 1.1.0)
173
181
  multi_json
@@ -178,20 +186,20 @@ GEM
178
186
  multi_json (~> 1.0)
179
187
  rack (~> 1.0)
180
188
  tilt (~> 1.1, != 1.3.0)
181
- sprockets-rails (2.0.1)
189
+ sprockets-rails (2.1.3)
182
190
  actionpack (>= 3.0)
183
191
  activesupport (>= 3.0)
184
192
  sprockets (~> 2.8)
185
- thor (0.18.1)
186
- thread_safe (0.1.3)
187
- atomic
193
+ thor (0.19.1)
194
+ thread_safe (0.3.3)
188
195
  tilt (1.4.1)
189
- tinymce-rails (4.0.16)
196
+ tinymce-rails (4.0.19)
190
197
  railties (>= 3.1.1)
191
198
  treetop (1.4.15)
192
199
  polyglot
193
200
  polyglot (>= 0.3.1)
194
- tzinfo (0.3.38)
201
+ tzinfo (1.1.0)
202
+ thread_safe (~> 0.1)
195
203
  warden (1.2.3)
196
204
  rack (>= 1.0)
197
205
 
@@ -201,7 +209,7 @@ PLATFORMS
201
209
  DEPENDENCIES
202
210
  bundler
203
211
  cancan (>= 1.6.9)
204
- comfortable_mexican_sofa (~> 1.11.0)
212
+ comfortable_mexican_sofa (~> 1.12.0)
205
213
  delayed_job (~> 4)
206
214
  devise (~> 3.2)
207
215
  jeweler
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.8
1
+ 1.2.0
@@ -11,7 +11,7 @@ window.media =
11
11
  showImageDialog: (ed) ->
12
12
  this.ed = ed
13
13
  this.dlg.modal(show: true, backdrop: false)
14
- .css("left", $(document).width() - (this.dlg.width() / 2))
14
+ #.css("left", $(document).width() - (this.dlg.width() / 2))
15
15
  .find(".title").html("Image Selector")
16
16
 
17
17
  $("#modal-body").html(this.loading).load this.imagesPath, ->
@@ -22,7 +22,7 @@ window.media =
22
22
  showVideoDialog: (ed) ->
23
23
  this.ed = ed
24
24
  this.dlg.modal(show: true, backdrop: false)
25
- .css("left", $(document).width() - (this.dlg.width() / 2))
25
+ #.css("left", $(document).width() - (this.dlg.width() / 2))
26
26
  .find(".title").html("Video Selector")
27
27
 
28
28
  $("#modal-body").html(this.loading).load this.videosPath, ->
@@ -1,20 +1,14 @@
1
- body#comfy .body-wrapper {
2
- margin-top: 2.9em;
3
- }
4
-
5
- .navbar-container, .footer-container {
6
- margin-left: 1.4em;
7
- }
8
1
 
9
- .footer-container {
10
- margin-top: 1em;
2
+ .alert-notice {
3
+ background-color: #dff0d8;
4
+ border-color: #d6e9c6;
5
+ color: #3c763d;
11
6
  }
12
7
 
13
- body#comfy form.formatted.form-horizontal .control-group .controls select.status-control,
14
- body#comfy form.formatted.form-horizontal .control-group .controls input[type='text'].status-control {
15
- width: 30%;
8
+ .alert-notice hr {
9
+ border-top-color: #c9e2b3;
16
10
  }
17
11
 
18
- body#comfy .nav-height {
19
-
12
+ .alert-notice .alert-link {
13
+ color: #2b542c;
20
14
  }
@@ -1,10 +1,8 @@
1
1
  /*
2
- *= require ./bootstrap
3
- *= require ./bootstrap-responsive
2
+ *= require bootstrap
4
3
  */
5
4
 
6
5
  body {
7
- padding-top: 40px;
8
6
  padding-bottom: 40px;
9
7
  background-color: #f5f5f5;
10
8
  }
@@ -1,6 +1,7 @@
1
-
2
1
  body#comfy {
3
2
  background-color: inherit;
3
+
4
+ /**
4
5
  font-size: 13px;
5
6
  line-height: 18px;
6
7
 
@@ -27,6 +28,7 @@ body#comfy {
27
28
  height: 20px;
28
29
  }
29
30
 
31
+ **/
30
32
  .footer {
31
33
  height: 60px;
32
34
  padding: 20px 10px 10px;
@@ -37,4 +39,6 @@ body#comfy {
37
39
  border-top: solid 1px #f5f5f5;
38
40
  }
39
41
  }
42
+
43
+
40
44
  }
@@ -1,13 +1,13 @@
1
1
  module Cms
2
2
  module Fortress
3
- class AdminController < Admin::Cms::BaseController
3
+ class AdminController < Comfy::Admin::Cms::BaseController
4
4
 
5
5
  def roles
6
6
  @roles = Role.all
7
7
  end
8
8
 
9
9
  def images
10
- @files = Cms::File.images
10
+ @files = Comfy::Cms::File.images
11
11
  respond_to do |format|
12
12
  format.html { render partial: 'cms/fortress/shared/media_items', locals: {media: @files, type: :image} }
13
13
  format.json { render json: @files }
@@ -15,7 +15,7 @@ module Cms
15
15
  end
16
16
 
17
17
  def videos
18
- @files = Cms::File.videos
18
+ @files = Comfy::Cms::File.videos
19
19
  respond_to do |format|
20
20
  format.html { render partial: 'cms/fortress/shared/media_items', locals: {media: @files, type: :video} }
21
21
  format.json { render json: @files }
@@ -23,7 +23,7 @@ module Cms
23
23
  end
24
24
 
25
25
  def other_files
26
- @files = Cms::File.others.map {|f| {title: f.label, value: f.file.url}}
26
+ @files = Comfy::Cms::File.others.map {|f| {title: f.label, value: f.file.url}}
27
27
  respond_to do |format|
28
28
  format.html { render partial: 'cms/fortress/shared/media_items', locals: {media: @files, type: :others} }
29
29
  format.json { render json: @files }
@@ -1,4 +1,4 @@
1
- class Cms::Fortress::RolesController < Admin::Cms::BaseController
1
+ class Cms::Fortress::RolesController < Comfy::Admin::Cms::BaseController
2
2
  before_filter do
3
3
  authorize! :manage, Cms::Fortress::Role
4
4
  end
@@ -65,8 +65,8 @@ class Cms::Fortress::RolesController < Admin::Cms::BaseController
65
65
 
66
66
  respond_to do |format|
67
67
  if @cms_fortress_role.save
68
-
69
- format.html { redirect_to @cms_fortress_role, notice: 'Role was successfully created.' }
68
+ flash[:success] = "Role was successfully created."
69
+ format.html { redirect_to @cms_fortress_role }
70
70
  format.json { render json: @cms_fortress_role, status: :created, location: @cms_fortress_role }
71
71
  else
72
72
  format.html { render action: "new" }
@@ -82,7 +82,8 @@ class Cms::Fortress::RolesController < Admin::Cms::BaseController
82
82
 
83
83
  respond_to do |format|
84
84
  if @cms_fortress_role.update_attributes(role_params)
85
- format.html { redirect_to @cms_fortress_role, notice: 'Role was successfully updated.' }
85
+ flash[:success] = "Role was successfully updated."
86
+ format.html { redirect_to @cms_fortress_role }
86
87
  format.json { head :no_content }
87
88
  else
88
89
  format.html { render action: "edit" }
@@ -1,4 +1,4 @@
1
- class Cms::Fortress::UsersController < Admin::Cms::BaseController
1
+ class Cms::Fortress::UsersController < Comfy::Admin::Cms::BaseController
2
2
  before_filter do
3
3
  authorize! :manage, Cms::Fortress::User
4
4
  end
@@ -48,7 +48,8 @@ class Cms::Fortress::UsersController < Admin::Cms::BaseController
48
48
 
49
49
  respond_to do |format|
50
50
  if @cms_fortress_user.save
51
- format.html { redirect_to cms_fortress_users_path, notice: 'User was successfully created.' }
51
+ flash[:success] = "User was successfully created."
52
+ format.html { redirect_to cms_fortress_users_path }
52
53
  format.json { render json: @cms_fortress_user, status: :created, location: @cms_fortress_user }
53
54
  else
54
55
  format.html { render action: "new" }
@@ -70,7 +71,8 @@ class Cms::Fortress::UsersController < Admin::Cms::BaseController
70
71
 
71
72
  respond_to do |format|
72
73
  if @cms_fortress_user.update_attributes(user)
73
- format.html { redirect_to cms_fortress_users_path, notice: 'User was successfully updated.' }
74
+ flash[:success] = "User was successfully updated."
75
+ format.html { redirect_to cms_fortress_users_path }
74
76
  format.json { head :no_content }
75
77
  else
76
78
  format.html { render action: "edit" }