effective_assets 1.3.0 → 1.3.1
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,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: bb33f2ef8638072c3300c00659ca6af982cf8150
|
|
4
|
+
data.tar.gz: 864b3908b3ad1adf4983f2bd083ba4562a5af4ed
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 534454d49182cc1316444677a002a23503f3f9f87406e2f1513697c9ca140329e6f6fbcc952b5fd1b55d3e2d24df0bb5f275fb4da512ad19145726377a3106ae
|
|
7
|
+
data.tar.gz: 218cb573efe04b1a23162f26328d081922e4d4a7e55de1f11c4d46a6f3a6d35cf1108b74a2450201da1f9c919e39eb2a535348e45695c62535fe7fc82310911c
|
|
@@ -84,7 +84,9 @@ module Inputs
|
|
|
84
84
|
:file_types => @options[:file_types],
|
|
85
85
|
:progress_bar_partial => @options[:progress_bar_partial],
|
|
86
86
|
:drop_files => @options[:uploader_drop_files],
|
|
87
|
-
:
|
|
87
|
+
:drop_files_help_text => @options[:drop_files_help_text],
|
|
88
|
+
:aws_acl => @options[:aws_acl],
|
|
89
|
+
:btn_label => @options[:btn_label]
|
|
88
90
|
}
|
|
89
91
|
).html_safe
|
|
90
92
|
end
|
|
@@ -138,6 +140,7 @@ module Inputs
|
|
|
138
140
|
{
|
|
139
141
|
:uploader => true, # :top, :bottom, true or false
|
|
140
142
|
:uploader_drop_files => false,
|
|
143
|
+
:drop_files_help_text => 'Drop files here',
|
|
141
144
|
:progress_bar_partial => 'asset_box_input/progress_bar_template',
|
|
142
145
|
:attachment_style => :thumbnail, # :thumbnail, :table, or :list
|
|
143
146
|
:attachment_add_to => :bottom, # :bottom or :top (of attachments div)
|
|
@@ -147,7 +150,8 @@ module Inputs
|
|
|
147
150
|
:dialog_url => @template.effective_assets.effective_assets_path,
|
|
148
151
|
:disabled => false,
|
|
149
152
|
:file_types => [:any],
|
|
150
|
-
:aws_acl => EffectiveAssets.aws_acl
|
|
153
|
+
:aws_acl => EffectiveAssets.aws_acl,
|
|
154
|
+
:btn_label => "Upload files..."
|
|
151
155
|
}.merge(opts).tap do |options|
|
|
152
156
|
options[:method] = method.to_s
|
|
153
157
|
options[:box] = method.to_s.pluralize
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
= s3_uploader_fields(:aws_acl => aws_acl)
|
|
4
4
|
|
|
5
5
|
- if drop_files
|
|
6
|
-
%p
|
|
6
|
+
%p= drop_files_help_text
|
|
7
7
|
|
|
8
8
|
%span.btn.btn-success.fileinput-button
|
|
9
9
|
%i.glyphicon.glyphicon-upload
|
|
10
|
-
%span
|
|
10
|
+
%span= btn_label
|
|
11
11
|
- if limit > 1
|
|
12
12
|
%input{:type => 'file', :name => 'file', :multiple => 'multiple', :disabled => disabled}
|
|
13
13
|
- else
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: effective_assets
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.3.
|
|
4
|
+
version: 1.3.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Code and Effect
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-04-
|
|
11
|
+
date: 2015-04-20 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|