caboose-cms 0.4.137 → 0.4.138
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.
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NTc5NzQ4N2E0YTVmZjM4NDllYjc0ZjA3NzczMTU5ZDZmM2FlNDJiYw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NWViNWVjYmYxZGJjODE0YzQ0ZjEzYTliZmE4Y2YzZDdkMjBmNGYzYw==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
N2RlZTk3M2FlZGIwYzY1MjYxM2RmZTZjYmI4NmQwMTZjNmI3OTk0MzBhZDVi
|
10
|
+
MDhhMGVmMThlNGQzNTFkNDE0OTI5ZjRmM2Y3M2U5MTI3NGI2ZmU5NDZlMzQ0
|
11
|
+
MzYzZDQ1ZmJiNjNkNmUxY2ZlZGI4NzlkZWRmN2NiZWIxMGY1NGI=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ODAzYzE4ZDllYzNlODY1MzNiY2VjNmQyNWI3YThjZjQ3NTgxNWI2OGViNDAy
|
14
|
+
NGNiZmIzZDM2MmUyMTI0YTY1NmIwNWFmZjY5YjYwOWU5YWRlMDQzNTBlY2Rk
|
15
|
+
YTAwNTVhYTBlMTM3MTU2MzI3ZDU1YTAyOGExZTFmMTZjZjNjYmY=
|
@@ -104,7 +104,8 @@ ModelBinder.prototype = {
|
|
104
104
|
if (attrib.type == 'text') control = new BoundText(opts);
|
105
105
|
else if (attrib.type == 'select') control = new BoundSelect(opts);
|
106
106
|
else if (attrib.type == 'checkbox') control = new BoundCheckbox(opts);
|
107
|
-
else if (attrib.type == 'checkbox-multiple') control = new BoundCheckboxMultiple(opts);
|
107
|
+
else if (attrib.type == 'checkbox-multiple') control = new BoundCheckboxMultiple(opts);
|
108
|
+
else if (attrib.type == 'checkbox_multiple') control = new BoundCheckboxMultiple(opts);
|
108
109
|
else if (attrib.type == 'textarea') control = new BoundTextarea(opts);
|
109
110
|
else if (attrib.type == 'richtext') control = new BoundRichText(opts);
|
110
111
|
else if (attrib.type == 'image') control = new BoundImage(opts);
|
@@ -1,6 +1,6 @@
|
|
1
1
|
module Caboose
|
2
2
|
class LoginController < Caboose::ApplicationController
|
3
|
-
layout 'caboose/modal'
|
3
|
+
#layout 'caboose/modal'
|
4
4
|
|
5
5
|
# GET /login
|
6
6
|
def index
|
@@ -12,6 +12,7 @@ module Caboose
|
|
12
12
|
@return_url = params[:return_url].nil? ? "/" : params[:return_url]
|
13
13
|
@modal = params[:modal].nil? ? false : params[:modal]
|
14
14
|
redirect_to @return_url and return if logged_in?
|
15
|
+
render :layout => Caboose::login_layout
|
15
16
|
end
|
16
17
|
|
17
18
|
# POST /login
|
@@ -51,6 +52,7 @@ module Caboose
|
|
51
52
|
@return_url = params[:return_url].nil? ? "/" : params[:return_url]
|
52
53
|
@modal = params[:modal].nil? ? false : params[:modal]
|
53
54
|
redirect_to @return_url if logged_in?
|
55
|
+
render :layout => Caboose::login_layout
|
54
56
|
end
|
55
57
|
|
56
58
|
# POST /login/forgot-password
|
@@ -94,7 +96,8 @@ module Caboose
|
|
94
96
|
redirect_to @return_url if logged_in?
|
95
97
|
|
96
98
|
@reset_id = params[:reset_id]
|
97
|
-
@user = Caboose::User.user_for_reset_id(@reset_id)
|
99
|
+
@user = Caboose::User.user_for_reset_id(@reset_id)
|
100
|
+
render :layout => Caboose::login_layout
|
98
101
|
end
|
99
102
|
|
100
103
|
# POST /login/reset-password
|
@@ -1,12 +1,13 @@
|
|
1
1
|
module Caboose
|
2
2
|
class RegisterController < Caboose::ApplicationController
|
3
|
-
layout 'caboose/modal'
|
3
|
+
#layout 'caboose/modal'
|
4
4
|
|
5
5
|
# GET /register
|
6
6
|
def index
|
7
7
|
@return_url = params[:return_url].nil? ? "/" : params[:return_url];
|
8
8
|
@modal = params[:modal].nil? ? false : params[:modal]
|
9
9
|
redirect_to @return_url if logged_in?
|
10
|
+
render :layout => Caboose::register_layout
|
10
11
|
end
|
11
12
|
|
12
13
|
# POST /register
|
data/lib/caboose.rb
CHANGED
@@ -65,6 +65,14 @@ module Caboose
|
|
65
65
|
|
66
66
|
# Default timezone
|
67
67
|
mattr_accessor :timezone
|
68
|
-
@@timezone = 'Central Time (US & Canada)'
|
68
|
+
@@timezone = 'Central Time (US & Canada)'
|
69
|
+
|
70
|
+
# Register layout
|
71
|
+
mattr_accessor :register_layout
|
72
|
+
@@register_layout = 'caboose/modal'
|
73
|
+
|
74
|
+
# Login layout
|
75
|
+
mattr_accessor :login_layout
|
76
|
+
@@login_layout = 'caboose/modal'
|
69
77
|
|
70
78
|
end
|
data/lib/caboose/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: caboose-cms
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.138
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- William Barry
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-10-
|
11
|
+
date: 2014-10-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|