caboose-cms 0.4.140 → 0.4.141
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/app/controllers/caboose/pages_controller.rb +13 -16
- data/lib/caboose/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
M2ZlYzBkYzNmMzNmMDhkNWUzZGQ0NGM4NGFkYmEyNGFjYWEzNTM0Nw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NmY0MjRiNGEwOTZkOWI1NDUwNGI2NTNiMmQxNTljNmZhYjAxZWQ4Mg==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZTE2Yjc3ZTI5YjFhZDRiZTQ5MjU1OWUyYjI4NTZkOTNlYmEyZTczMmM0YWQ4
|
10
|
+
NzYyNDAzNWJkNzE4MGU2OWFiNmMwNDQ3MDQ1ODAwZTc2NzRlNzAxMTIwNzBj
|
11
|
+
MTZkMWRjNDY1NTk4YTQ0Yjg5ODAxYjQxZWU2N2M1NjhhZWIxZjY=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
OTk4MDgyMDY5MTYyNjkwMWFkMDNiZmM2MTgzMjdkYjQ0MzUyNDQxOTFjMTNm
|
14
|
+
MTQ3ZGQwMjBhMjE2NDk3NTkwNGM0Y2Q4NzQ2MmQyZmU3ZjFhNDAwYjdjYzMw
|
15
|
+
ZTAxOWNiNzJiZjc5YmJlMGMyNWY0MDU2ZGE2ZDI2YWUwMTVlYjg=
|
@@ -14,23 +14,20 @@ module Caboose
|
|
14
14
|
# Find the page with an exact URI match
|
15
15
|
page = Page.page_with_uri(request.host_with_port, request.fullpath, false)
|
16
16
|
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
else
|
27
|
-
render :file => 'caboose/application/under_construction', :layout => false
|
28
|
-
end
|
29
|
-
return
|
30
|
-
else
|
31
|
-
Caboose.log("domain id = #{d.id}")
|
17
|
+
# Make sure we're not under construction
|
18
|
+
d = Caboose::Domain.where(:domain => request.host_with_port).first
|
19
|
+
if d.nil?
|
20
|
+
Caboose.log("Could not find domain for #{request.host_with_port}\nAdd this domain to the caboose site.")
|
21
|
+
elsif d.under_construction == true
|
22
|
+
if d.site.under_construction_html && d.site.under_construction_html.strip.length > 0
|
23
|
+
render :text => d.site.under_construction_html
|
24
|
+
else
|
25
|
+
render :file => 'caboose/application/under_construction', :layout => false
|
32
26
|
end
|
33
|
-
|
27
|
+
return
|
28
|
+
end
|
29
|
+
|
30
|
+
if !page
|
34
31
|
asset
|
35
32
|
return
|
36
33
|
end
|
data/lib/caboose/version.rb
CHANGED