locomotive_cms 0.0.4.beta9 → 0.0.4.beta10

Sign up to get free protection for your applications and to get access to all the features.
@@ -16,7 +16,7 @@ module Admin
16
16
  @js_and_css_assets = (@assets[:javascripts] || []) + (@assets[:stylesheets] || [])
17
17
 
18
18
  if request.xhr?
19
- @images = @assets[:images]
19
+ @images = @assets[:images] || []
20
20
  render :action => 'images', :layout => false and return
21
21
  else
22
22
  @snippets = current_site.snippets.order_by([[:name, :asc]]).all.to_a
@@ -1,7 +1,11 @@
1
1
  class ThemeUploader < ::CarrierWave::Uploader::Base
2
2
 
3
3
  def store_dir
4
- "sites/#{model.id}/tmp/themes"
4
+ if Locomotive.config.delayed_job
5
+ "sites/#{model.id}/tmp/themes"
6
+ else
7
+ "#{Rails.root}/tmp/themes"
8
+ end
5
9
  end
6
10
 
7
11
  def cache_dir
data/config/assets.yml CHANGED
@@ -1,8 +1,8 @@
1
1
  embed_assets: off
2
2
 
3
3
  s3_bucket: <%= ENV['S3_BUCKET'] %>
4
- s3_access_key_id: <%= ENV['S3_ACCESS_KEY_ID'] %>
5
- s3_secret_access_key: <%= ENV['S3_SECRET_ACCESS_KEY'] %>
4
+ s3_access_key_id: <%= ENV['S3_KEY_ID'] %>
5
+ s3_secret_access_key: <%= ENV['S3_SECRET_KEY'] %>
6
6
 
7
7
  javascripts:
8
8
  box:
@@ -1,3 +1,3 @@
1
1
  module Locomotive #:nodoc
2
- VERSION = "0.0.4.beta9"
2
+ VERSION = "0.0.4.beta10"
3
3
  end
@@ -27,7 +27,7 @@ div.notice p {
27
27
 
28
28
  p.no-items {
29
29
  padding: 15px 0px;
30
- background: transparent url(/images/admin/list/none.png) no-repeat 0 0;
30
+ background: transparent url(/images/admin/list/none.png) no-repeat center 0;
31
31
  text-align: center;
32
32
  color: #9d8963 !important;
33
33
  font-size: 1.1em !important;
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: locomotive_cms
3
3
  version: !ruby/object:Gem::Version
4
- hash: -1848230059
4
+ hash: -1967355474
5
5
  prerelease: true
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
9
  - 4
10
- - beta9
11
- version: 0.0.4.beta9
10
+ - beta10
11
+ version: 0.0.4.beta10
12
12
  platform: ruby
13
13
  authors:
14
14
  - Didier Lafforgue