caboose-cms 0.9.122 → 0.9.123
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/stylesheets/caboose/admin_main.css +13 -3
- data/app/controllers/caboose/application_controller.rb +3 -3
- data/app/controllers/caboose/block_types_controller.rb +2 -2
- data/app/controllers/caboose/pages_controller.rb +2 -2
- data/app/controllers/caboose/social_controller.rb +1 -1
- data/app/views/layouts/caboose/admin.html.erb +2 -2
- data/lib/caboose/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 98d552831bfdc1857ec2037e19401f3e91a5d584
|
4
|
+
data.tar.gz: 50d11a36e85e89f0fed4ec5e1c254beb326dedc9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 96356f4ba8608bfddcb660a30dba3405c5f9edf36532b1836d70ee3f44a3b2ed52b360d06374e1f529f657b3f26f16adaf40203bb11ce4c6b2325af1c4f70d8e
|
7
|
+
data.tar.gz: 5fe03ee90cc07a29b31b80e86e756e3fdd7e85a0f6953d11f57b698a7ac6d800507678d158466c3d9f9b488dc4f070a631bd53b86988a9b057124a0661de2b29
|
@@ -175,7 +175,8 @@ h1,h2,h3,h4,h5,h6 {
|
|
175
175
|
}
|
176
176
|
|
177
177
|
#content h1 {
|
178
|
-
margin: 0 0 20px
|
178
|
+
margin: 0 0 20px 0;
|
179
|
+
width: calc(100% + 30px);
|
179
180
|
padding: 0 2% 0 50px;
|
180
181
|
height: 53px;
|
181
182
|
background: #dcdcdc;
|
@@ -184,6 +185,8 @@ h1,h2,h3,h4,h5,h6 {
|
|
184
185
|
line-height: 54px;
|
185
186
|
overflow: hidden;
|
186
187
|
color: #2d2d2d;
|
188
|
+
position: relative;
|
189
|
+
right: 30px;
|
187
190
|
}
|
188
191
|
|
189
192
|
#content h1.model_attribute_h1 {
|
@@ -561,9 +564,12 @@ Page Bar Generator
|
|
561
564
|
left: 0;
|
562
565
|
*/
|
563
566
|
list-style: none;
|
564
|
-
margin:
|
567
|
+
margin: 0 0 0 0;
|
565
568
|
padding: 0;
|
566
569
|
border-top: #ccc 0px solid;
|
570
|
+
position: relative;
|
571
|
+
right: 30px;
|
572
|
+
bottom: 20px;
|
567
573
|
}
|
568
574
|
#tabs li {
|
569
575
|
list-style: none;
|
@@ -593,7 +599,11 @@ Page Bar Generator
|
|
593
599
|
font-weight: bold;
|
594
600
|
}
|
595
601
|
#content2 {
|
596
|
-
|
602
|
+
width: calc(100% - 200px);
|
603
|
+
float: right;
|
604
|
+
padding: 20px 20px 20px 0;
|
605
|
+
position: relative;
|
606
|
+
bottom: 20px;
|
597
607
|
}
|
598
608
|
|
599
609
|
#crumbtrail {
|
@@ -13,7 +13,7 @@ module Caboose
|
|
13
13
|
# Modify the built-in params array with URL params if necessary
|
14
14
|
parse_url_params if Caboose.use_url_params
|
15
15
|
|
16
|
-
|
16
|
+
# @use_page_cache = !request.fullpath.starts_with?('/admin')
|
17
17
|
|
18
18
|
# Get the site we're working with
|
19
19
|
@domain = Domain.where(:domain => request.host_with_port).first
|
@@ -49,7 +49,7 @@ module Caboose
|
|
49
49
|
|
50
50
|
#if @find_page
|
51
51
|
@page = Page.page_with_uri(request.host_with_port, request.fullpath)
|
52
|
-
|
52
|
+
# @crumb_trail = Caboose::Page.crumb_trail(@page)
|
53
53
|
#end
|
54
54
|
|
55
55
|
|
@@ -57,7 +57,7 @@ module Caboose
|
|
57
57
|
# Sets an instance variable of the logged in user
|
58
58
|
@logged_in_user = logged_in_user
|
59
59
|
|
60
|
-
@nav = Caboose.plugin_hook('admin_nav', [], @logged_in_user, @page, @site)
|
60
|
+
@nav = Caboose.plugin_hook('admin_nav', [], @logged_in_user, @page, @site) if request.fullpath.include?('/admin')
|
61
61
|
|
62
62
|
# Initialize the card
|
63
63
|
init_cart if @site && @site.use_store && !@domain.under_construction
|
@@ -146,8 +146,8 @@ module Caboose
|
|
146
146
|
end
|
147
147
|
|
148
148
|
# Trigger the page cache to be updated
|
149
|
-
|
150
|
-
|
149
|
+
# query = ["update page_cache set refresh = true where page_id in (select distinct(page_id) from blocks where block_type_id = ?)", bt.id]
|
150
|
+
# ActiveRecord::Base.connection.execute(ActiveRecord::Base.send(:sanitize_sql_array, query))
|
151
151
|
# PageCacher.delay(:queue => 'caboose_cache').refresh
|
152
152
|
|
153
153
|
resp.success = save && bt.save
|
@@ -80,8 +80,8 @@ module Caboose
|
|
80
80
|
@page = page
|
81
81
|
@user = user
|
82
82
|
@editmode = !params['edit'].nil? && user.is_allowed('pages', 'edit') ? true : false
|
83
|
-
|
84
|
-
|
83
|
+
# @crumb_trail = Caboose::Page.crumb_trail(@page)
|
84
|
+
# @subnav = Caboose::Page.subnav(@page, session['use_redirect_urls'], @user)
|
85
85
|
|
86
86
|
#@subnav.links = @tasks.collect {|href, task| {'href' => href, 'text' => task, 'is_current' => uri == href}}
|
87
87
|
|
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.9.
|
4
|
+
version: 0.9.123
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- William Barry
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-04-
|
11
|
+
date: 2018-04-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pg
|
@@ -1238,7 +1238,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
1238
1238
|
version: '0'
|
1239
1239
|
requirements: []
|
1240
1240
|
rubyforge_project:
|
1241
|
-
rubygems_version: 2.
|
1241
|
+
rubygems_version: 2.2.0
|
1242
1242
|
signing_key:
|
1243
1243
|
specification_version: 4
|
1244
1244
|
summary: CMS built on rails.
|