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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 586d423dd5415f61518228ee369e4352e15acaed
4
- data.tar.gz: d145d232f2d491f7e9d4cda7ba9043ccc0d3d407
3
+ metadata.gz: 98d552831bfdc1857ec2037e19401f3e91a5d584
4
+ data.tar.gz: 50d11a36e85e89f0fed4ec5e1c254beb326dedc9
5
5
  SHA512:
6
- metadata.gz: 5a6014124a22169e131c74aced643229f53b6e0ac90bc30014b14f59645bd6244c84f5ef25592373def1f57a697420a6bb2ffd6a483196c7ee396d717565fd7a
7
- data.tar.gz: 1c02965973fd900dbf9f011f78039930b7b468abf4989d1fc87f49fbe10fe36aa9e124307fb342477c75d5430aa88a7adb7edb9e2e648f05e5e2149961af433c
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 -30px;
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: -20px 0 0 -30px;
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
- margin-left: 220px;
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
- @use_page_cache = !request.fullpath.starts_with?('/admin')
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
- @crumb_trail = Caboose::Page.crumb_trail(@page)
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
- 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))
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
- @crumb_trail = Caboose::Page.crumb_trail(@page)
84
- @subnav = Caboose::Page.subnav(@page, session['use_redirect_urls'], @user)
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
 
@@ -17,7 +17,7 @@ module Caboose
17
17
 
18
18
  # @route PUT /admin/social
19
19
  def admin_update
20
- return if !user_is_allowed('sites', 'edit')
20
+ return if !user_is_allowed('social', 'edit')
21
21
 
22
22
  resp = StdClass.new
23
23
  sc = @site.social_config
@@ -84,9 +84,9 @@ end
84
84
  </div>
85
85
  </div>
86
86
  <div id='content_wrapper'>
87
- <div id='content'>
87
+ <div id='content' class='clearfix'>
88
88
 
89
- <%= yield %>
89
+ <%= yield %>
90
90
 
91
91
  </div>
92
92
  </div>
@@ -1,3 +1,3 @@
1
1
  module Caboose
2
- VERSION = '0.9.122'
2
+ VERSION = '0.9.123'
3
3
  end
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.122
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-05 00:00:00.000000000 Z
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.5.1
1241
+ rubygems_version: 2.2.0
1242
1242
  signing_key:
1243
1243
  specification_version: 4
1244
1244
  summary: CMS built on rails.